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:
diego 2006-11-28 11:54:12 +00:00
parent 31844ae22d
commit 513971a1b0
1 changed files with 2 additions and 5 deletions

View File

@ -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)