comparison libfaad2/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
40 ssr_fb.c \ 40 ssr_fb.c \
41 ssr_ipqf.c \ 41 ssr_ipqf.c \
42 syntax.c \ 42 syntax.c \
43 tns.c \ 43 tns.c \
44 44
45 OBJS = $(SRCS:.c=.o) 45 CFLAGS = -D_GNU_SOURCE
46
47 CFLAGS = -I. $(OPTFLAGS) -D_GNU_SOURCE
48 46
49 # The FIXED_POINT implementation of FAAD2 improves performance 47 # The FIXED_POINT implementation of FAAD2 improves performance
50 # on some platforms, especially for SBR files. 48 # on some platforms, especially for SBR files.
51 ifeq ($(FAAD_FIXED),yes) 49 ifeq ($(FAAD_FIXED),yes)
52 CFLAGS += -DFIXED_POINT 50 CFLAGS += -DFIXED_POINT
53 endif 51 endif
54 52
55 .SUFFIXES: .c .o 53 include ../mpcommon.mak
56
57 # .PHONY: all clean
58
59 .c.o:
60 $(CC) -c $(CFLAGS) -o $@ $<
61
62 $(LIBNAME): $(OBJS)
63 $(AR) r $(LIBNAME) $(OBJS)
64 $(RANLIB) $(LIBNAME)
65
66 all: $(LIBNAME)
67
68 clean:
69 rm -f *.o *.a *~
70
71 distclean: clean
72 rm -f .depend test
73
74 dep depend:
75 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
76
77 ifneq ($(wildcard .depend),)
78 include .depend
79 endif