14280
|
1
|
|
2 LIBNAME = libvorbisidec.a
|
|
3
|
|
4 include ../config.mak
|
|
5
|
|
6 SRCS = bitwise.c block.c codebook.c floor0.c floor1.c framing.c info.c \
|
|
7 mapping0.c mdct.c registry.c res012.c sharedbook.c synthesis.c window.c
|
|
8
|
|
9 OBJS = $(SRCS:.c=.o)
|
|
10 INCLUDE = -I. -I.. $(EXTRA_INC)
|
|
11 CFLAGS = $(OPTFLAGS) $(INCLUDE) $(TREMOR_FLAGS)
|
|
12
|
|
13 .SUFFIXES: .c .o
|
|
14
|
|
15 # .PHONY: all clean
|
|
16
|
|
17 .c.o:
|
|
18 $(CC) -c $(CFLAGS) -o $@ $<
|
|
19
|
|
20 $(LIBNAME): $(OBJS)
|
|
21 $(AR) r $(LIBNAME) $(OBJS)
|
|
22 $(RANLIB) $(LIBNAME)
|
|
23
|
|
24 all: $(LIBNAME)
|
|
25
|
|
26 clean:
|
|
27 rm -f *.o *.a *~
|
|
28
|
|
29 distclean:
|
|
30 rm -f Makefile.bak *.o *.a *~ .depend
|
|
31
|
|
32 dep: depend
|
|
33
|
|
34 depend:
|
|
35 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
36
|
|
37 #
|
|
38 # include dependency files if they exist
|
|
39 #
|
|
40 ifneq ($(wildcard .depend),)
|
|
41 include .depend
|
|
42 endif
|