# HG changeset patch # User diego # Date 1164714852 0 # Node ID c74dbfe68bb323119df399bd294138a19a275d8d # Parent c2b31c3f1fa6785c452adb6ec39aa60e311410ca Generate OBJS from SRCS in a more elegant and less redundant way. diff -r c2b31c3f1fa6 -r c74dbfe68bb3 mpcommon.mak --- a/mpcommon.mak Tue Nov 28 11:53:08 2006 +0000 +++ b/mpcommon.mak Tue Nov 28 11:54:12 2006 +0000 @@ -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)