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)
|
SRCS2 += $(SRCS2-yes)
|
||||||
LIBAV_INC += $(LIBAV_INC-yes)
|
LIBAV_INC += $(LIBAV_INC-yes)
|
||||||
|
|
||||||
OBJS = $(SRCS:.c=.o)
|
OBJS = $(addsuffix .o, $(basename $(SRCS)) )
|
||||||
OBJS := $(OBJS:.S=.o)
|
OBJS2 = $(addsuffix .o, $(basename $(SRCS2)) )
|
||||||
OBJS := $(OBJS:.cpp=.o)
|
|
||||||
OBJS := $(OBJS:.m=.o)
|
|
||||||
OBJS2 = $(SRCS2:.c=.o)
|
|
||||||
|
|
||||||
CFLAGS += -I. -I.. $(OPTFLAGS)
|
CFLAGS += -I. -I.. $(OPTFLAGS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue