synced with r21989
[mplayer/greg.git] / mpcommon.mak
blobe439eb26ad88768bd97bce488a4764614cea0d1e
1 SRCS += $(SRCS-yes)
2 SRCS2 += $(SRCS2-yes)
3 CFLAGS += $(CFLAGS-yes)
5 OBJS = $(addsuffix .o, $(basename $(SRCS)) )
6 OBJS2 = $(addsuffix .o, $(basename $(SRCS2)) )
8 CFLAGS += -I. -I.. $(OPTFLAGS)
10 LIBS = $(LIBNAME) $(LIBNAME2)
12 all: $(LIBS)
14 $(LIBNAME): $(OBJS)
15 $(AR) r $@ $^
16 $(RANLIB) $@
18 $(LIBNAME2): $(OBJS2)
19 $(AR) r $@ $^
20 $(RANLIB) $@
22 clean::
23 rm -f *.o *.a *~
25 distclean:: clean
26 rm -f .depend
28 dep depend:
29 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
31 ifneq ($(wildcard .depend),)
32 include .depend
33 endif