annotate mp3lib/Makefile @ 1536:e89233dab4da

New feature for option processing: CONF_TYPE_FUNC_FULL
author folke
date Wed, 15 Aug 2001 19:26:22 +0000
parents 5a748a93b7b4
children f51307170f69
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1
1258
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
2 include ../config.mak
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
1270
8a9fa696b77d Minor cleanups
nick
parents: 1258
diff changeset
4 SRCS = sr1.c
8a9fa696b77d Minor cleanups
nick
parents: 1258
diff changeset
5 OBJS = sr1.o
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 826
diff changeset
6 # OBJS = $(SRCS:.c,.s=.o)
1234
dfccdda074e5 OPTFLAGS vs. INCLUDES cleanup
arpi
parents: 1010
diff changeset
7 CFLAGS = $(OPTFLAGS) $(EXTRA_INC)
1258
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
8 ifeq ($(TARGET_ARCH_X86),yes)
1270
8a9fa696b77d Minor cleanups
nick
parents: 1258
diff changeset
9 SRCS += d_cpu.s decode_i586.s
8a9fa696b77d Minor cleanups
nick
parents: 1258
diff changeset
10 OBJS += d_cpu.o decode_i586.o
1258
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
11 ifeq ($(TARGET_MMX),yes)
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
12 SRCS += decode_MMX.s dct64_MMX.s tabinit_MMX.s
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
13 OBJS += decode_MMX.o dct64_MMX.o tabinit_MMX.o
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
14 endif
1393
5eef9e69b145 Beginning sse optimization of dct code.
atmos4
parents: 1270
diff changeset
15 ifeq ($(TARGET_SSE),yes)
5eef9e69b145 Beginning sse optimization of dct code.
atmos4
parents: 1270
diff changeset
16 SRCS += dct64_sse.s
5eef9e69b145 Beginning sse optimization of dct code.
atmos4
parents: 1270
diff changeset
17 OBJS += dct64_sse.o
5eef9e69b145 Beginning sse optimization of dct code.
atmos4
parents: 1270
diff changeset
18 endif
1258
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
19 ifeq ($(TARGET_3DNOW),yes)
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
20 SRCS += dct36_3dnow.s dct64_3dnow.s
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
21 OBJS += dct36_3dnow.o dct64_3dnow.o
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
22 endif
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
23 ifeq ($(TARGET_3DNOWEX),yes)
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
24 SRCS += dct36_k7.s dct64_k7.s
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
25 OBJS += dct36_k7.o dct64_k7.o
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
26 endif
50b8a3a5eeed Portability and old binutils support
nick
parents: 1245
diff changeset
27 endif
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 .SUFFIXES: .c .o
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 # .PHONY: all clean
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 .c.o:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 $(CC) -c $(CFLAGS) -o $@ $<
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 .s.o:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 $(CC) -c $(CFLAGS) -o $@ $<
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38
1010
6d3a6d42c831 dependency stuff fixed
arpi_esp
parents: 866
diff changeset
39 libMP3.a: $(OBJS)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 $(AR) r libMP3.a $(OBJS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41
789
989b921361d0 test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents: 788
diff changeset
42 test1: libMP3.a test.c
1461
5a748a93b7b4 Fixed Makefile for test programs.
atmos4
parents: 1393
diff changeset
43 $(CC) $(CFLAGS) test.c ../libvo/aclib.c -o test1 -I.. -L. -lMP3 -lm
789
989b921361d0 test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents: 788
diff changeset
44
989b921361d0 test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents: 788
diff changeset
45 test2: libMP3.a test2.c
1461
5a748a93b7b4 Fixed Makefile for test programs.
atmos4
parents: 1393
diff changeset
46 $(CC) $(CFLAGS) test2.c ../libvo/aclib.c -o test2 -I.. -L. -lMP3 -lm
788
214ea3f02d13 test.c added for benchmarking
arpi_esp
parents: 26
diff changeset
47
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 all: libMP3.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 clean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 rm -f *~ *.o *.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 distclean:
26
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
54 rm -f *~ *.o *.a Makefile.bak .depend
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
55
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
56 dep: depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57
1010
6d3a6d42c831 dependency stuff fixed
arpi_esp
parents: 866
diff changeset
58 depend:
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 826
diff changeset
59 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60
26
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
61 #
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
62 # include dependency files if they exist
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
63 #
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
64 ifneq ($(wildcard .depend),)
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
65 include .depend
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
66 endif