Mercurial > mplayer.hg
changeset 21338:c74dbfe68bb3
Generate OBJS from SRCS in a more elegant and less redundant way.
author | diego |
---|---|
date | Tue, 28 Nov 2006 11:54:12 +0000 |
parents | c2b31c3f1fa6 |
children | 4556f7c82535 |
files | mpcommon.mak |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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)