Mercurial > mplayer.hg
comparison tremor/Makefile @ 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 | 68df3b19a160 |
children | 8bcff5c7e387 |
comparison
equal
deleted
inserted
replaced
21258:ed01090d1192 | 21259:92b122592776 |
---|---|
16 res012.c \ | 16 res012.c \ |
17 sharedbook.c \ | 17 sharedbook.c \ |
18 synthesis.c \ | 18 synthesis.c \ |
19 window.c \ | 19 window.c \ |
20 | 20 |
21 OBJS = $(SRCS:.c=.o) | 21 CFLAGS = $(TREMOR_FLAGS) |
22 INCLUDE = -I. -I.. | |
23 CFLAGS = $(OPTFLAGS) $(INCLUDE) $(TREMOR_FLAGS) | |
24 | 22 |
25 .SUFFIXES: .c .o | 23 include ../mpcommon.mak |
26 | |
27 # .PHONY: all clean | |
28 | |
29 .c.o: | |
30 $(CC) -c $(CFLAGS) -o $@ $< | |
31 | |
32 $(LIBNAME): $(OBJS) | |
33 $(AR) r $(LIBNAME) $(OBJS) | |
34 $(RANLIB) $(LIBNAME) | |
35 | |
36 all: $(LIBNAME) | |
37 | |
38 clean: | |
39 rm -f *.o *.a *~ | |
40 | |
41 distclean: clean | |
42 rm -f .depend | |
43 | |
44 dep depend: | |
45 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
46 | |
47 ifneq ($(wildcard .depend),) | |
48 include .depend | |
49 endif |