Mercurial > mplayer.hg
comparison libmenu/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 | ef59ac68c9b6 |
comparison
equal
deleted
inserted
replaced
21258:ed01090d1192 | 21259:92b122592776 |
---|---|
14 menu_param.c \ | 14 menu_param.c \ |
15 | 15 |
16 ifeq ($(DVBIN),yes) | 16 ifeq ($(DVBIN),yes) |
17 SRCS += menu_dvbin.c | 17 SRCS += menu_dvbin.c |
18 endif | 18 endif |
19 OBJS=$(SRCS:.c=.o) | |
20 | 19 |
21 CFLAGS = -I. -I.. $(OPTFLAGS) | 20 include ../mpcommon.mak |
22 | |
23 .SUFFIXES: .c .o | |
24 | |
25 | |
26 .c.o: | |
27 $(CC) -c $(CFLAGS) -o $@ $< | |
28 | |
29 $(LIBNAME): $(OBJS) | |
30 $(AR) r $(LIBNAME) $(OBJS) | |
31 $(RANLIB) $(LIBNAME) | |
32 | |
33 all: $(LIBNAME) | |
34 | |
35 clean: | |
36 rm -f *.o *.a *~ | |
37 | |
38 distclean: clean | |
39 rm -f .depend | |
40 | |
41 dep depend: | |
42 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
43 | |
44 ifneq ($(wildcard .depend),) | |
45 include .depend | |
46 endif |