1
|
1
|
|
2 include config.mak
|
|
3
|
|
4 SRCS = sr1.c d_cpu.s decode_i586.s $(OPTIONAL_SRCS)
|
|
5 OBJS = sr1.o d_cpu.o decode_i586.o $(OPTIONAL_OBJS)
|
|
6 CFLAGS = $(OPTFLAGS)
|
|
7
|
|
8 .SUFFIXES: .c .o
|
|
9
|
|
10 # .PHONY: all clean
|
|
11
|
|
12 .c.o:
|
|
13 $(CC) -c $(CFLAGS) -o $@ $<
|
|
14
|
|
15 .s.o:
|
|
16 $(CC) -c $(CFLAGS) -o $@ $<
|
|
17
|
26
|
18 libMP3.a: .depend $(OBJS)
|
1
|
19 $(AR) r libMP3.a $(OBJS)
|
|
20
|
|
21 all: libMP3.a
|
|
22
|
|
23 clean:
|
|
24 rm -f *~ *.o *.a
|
|
25
|
|
26 distclean:
|
26
|
27 rm -f *~ *.o *.a Makefile.bak .depend
|
|
28
|
|
29 dep: depend
|
|
30 depend: .depend
|
1
|
31
|
26
|
32 .depend: Makefile config.mak ../config.mak ../config.h
|
|
33 makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null
|
1
|
34
|
26
|
35 #
|
|
36 # include dependency files if they exist
|
|
37 #
|
|
38 ifneq ($(wildcard .depend),)
|
|
39 include .depend
|
|
40 endif
|