mirror of https://github.com/mpv-player/mpv
Generate OBJS from SRCS in a more elegant and less redundant way.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21354 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
31844ae22d
commit
513971a1b0
|
@ -2,11 +2,8 @@ SRCS += $(SRCS-yes)
|
|||
SRCS2 += $(SRCS2-yes)
|
||||
LIBAV_INC += $(LIBAV_INC-yes)
|
||||
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
OBJS := $(OBJS:.S=.o)
|
||||
OBJS := $(OBJS:.cpp=.o)
|
||||
OBJS := $(OBJS:.m=.o)
|
||||
OBJS2 = $(SRCS2:.c=.o)
|
||||
OBJS = $(addsuffix .o, $(basename $(SRCS)) )
|
||||
OBJS2 = $(addsuffix .o, $(basename $(SRCS2)) )
|
||||
|
||||
CFLAGS += -I. -I.. $(OPTFLAGS)
|
||||
|
||||
|
|
Loading…
Reference in New Issue