comparison input/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
9 endif 9 endif
10 ifeq ($(LIRC),yes) 10 ifeq ($(LIRC),yes)
11 SRCS += lirc.c 11 SRCS += lirc.c
12 endif 12 endif
13 13
14 OBJS=$(SRCS:.c=.o) 14 include ../mpcommon.mak
15
16 CFLAGS = -I. -I.. $(OPTFLAGS)
17
18 .SUFFIXES: .c .o
19
20
21 .c.o:
22 $(CC) -c $(CFLAGS) -o $@ $<
23
24 $(LIBNAME): $(OBJS)
25 $(AR) r $(LIBNAME) $(OBJS)
26 $(RANLIB) $(LIBNAME)
27
28 all: $(LIBNAME)
29
30 clean:
31 rm -f *.o *.a *~
32
33 distclean: clean
34 rm -f .depend
35
36 dep depend:
37 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
38
39 ifneq ($(wildcard .depend),)
40 include .depend
41 endif