[MPlayer-cvslog] r21354 - trunk/mpcommon.mak

diego subversion at mplayerhq.hu
Tue Nov 28 12:54:12 CET 2006


Author: diego
Date: Tue Nov 28 12:54:12 2006
New Revision: 21354

Modified:
   trunk/mpcommon.mak

Log:
Generate OBJS from SRCS in a more elegant and less redundant way.


Modified: trunk/mpcommon.mak
==============================================================================
--- trunk/mpcommon.mak	(original)
+++ trunk/mpcommon.mak	Tue Nov 28 12:54:12 2006
@@ -2,11 +2,8 @@
 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)
 



More information about the MPlayer-cvslog mailing list