From 513971a1b0fe1ad295e1f332c4ec30acfb480265 Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 28 Nov 2006 11:54:12 +0000 Subject: 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 --- mpcommon.mak | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'mpcommon.mak') diff --git a/mpcommon.mak b/mpcommon.mak index 72a3f3de11..ed66d463a3 100644 --- a/mpcommon.mak +++ b/mpcommon.mak @@ -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) -- cgit v1.2.3