7568
|
1 include ../config.mak
|
|
2
|
|
3 LIBNAME = libaf.a
|
|
4
|
|
5 SRCS=af.c af_dummy.c af_delay.c af_channels.c af_format.c af_resample.c window.c filter.c
|
|
6
|
|
7 OBJS=$(SRCS:.c=.o)
|
|
8
|
|
9 CFLAGS = $(OPTFLAGS) -I. -Wall
|
|
10 .SUFFIXES: .c .o
|
|
11
|
|
12 .c.o:
|
|
13 $(CC) -c $(CFLAGS) -o $@ $<
|
|
14
|
|
15 $(LIBNAME): $(OBJS) Makefile
|
|
16 $(AR) r $(LIBNAME) $(OBJS)
|
|
17
|
|
18 $(OBJS):af.h dsp.h filter.h window.h
|
|
19
|
|
20 all: $(LIBNAME)
|
|
21
|
|
22 clean:
|
|
23 rm -f *.o *.a *~
|
|
24
|
|
25 distclean:
|
|
26 rm -f *.o *.a *~ .depend
|
|
27
|
|
28 dep: depend
|
|
29
|
|
30 depend:
|
|
31 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
32
|
|
33 #
|
|
34 # include dependency files if they exist
|
|
35 #
|
|
36 ifneq ($(wildcard .depend),)
|
|
37 include .depend
|
|
38 endif
|