Mercurial > mplayer.hg
comparison mpcommon.mak @ 21259:92b122592776
Merge common parts of all Makefiles into one file included by all.
author | diego |
---|---|
date | Sun, 26 Nov 2006 18:12:36 +0000 |
parents | |
children | f423ce0a1c36 |
comparison
equal
deleted
inserted
replaced
21258:ed01090d1192 | 21259:92b122592776 |
---|---|
1 OBJS = $(SRCS:.c=.o) | |
2 OBJS := $(OBJS:.S=.o) | |
3 OBJS := $(OBJS:.s=.o) | |
4 OBJS := $(OBJS:.cpp=.o) | |
5 | |
6 CFLAGS += -I. -I.. $(OPTFLAGS) | |
7 | |
8 .SUFFIXES: .c .o | |
9 | |
10 .c.o: | |
11 $(CC) -c $(CFLAGS) -o $@ $< | |
12 | |
13 all: $(LIBNAME) | |
14 | |
15 $(LIBNAME): $(OBJS) | |
16 $(AR) r $@ $^ | |
17 $(RANLIB) $@ | |
18 | |
19 clean:: | |
20 rm -f *.o *.a *~ | |
21 | |
22 distclean:: clean | |
23 rm -f .depend | |
24 | |
25 dep depend: | |
26 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
27 | |
28 ifneq ($(wildcard .depend),) | |
29 include .depend | |
30 endif |