annotate mp3lib/Makefile @ 1245:03b7e2955a20

Added newest MMX-optimized decore which speedups decoding at least on 13% for any cpu.
author nick
date Fri, 29 Jun 2001 17:55:35 +0000
parents dfccdda074e5
children 50b8a3a5eeed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 include config.mak
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
1245
03b7e2955a20 Added newest MMX-optimized decore which speedups decoding at least on 13% for any cpu.
nick
parents: 1234
diff changeset
4 SRCS = sr1.c d_cpu.s decode_i586.s dct64_MMX.s decode_MMX.s tabinit_MMX.s\
03b7e2955a20 Added newest MMX-optimized decore which speedups decoding at least on 13% for any cpu.
nick
parents: 1234
diff changeset
5 dct36_3dnow.s dct64_3dnow.s dct36_k7.s dct64_k7.s
03b7e2955a20 Added newest MMX-optimized decore which speedups decoding at least on 13% for any cpu.
nick
parents: 1234
diff changeset
6 OBJS = sr1.o d_cpu.o decode_i586.o dct64_MMX.o decode_MMX.o tabinit_MMX.o\
03b7e2955a20 Added newest MMX-optimized decore which speedups decoding at least on 13% for any cpu.
nick
parents: 1234
diff changeset
7 dct36_3dnow.o dct64_3dnow.o dct36_k7.o dct64_k7.o
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 826
diff changeset
8 # OBJS = $(SRCS:.c,.s=.o)
1234
dfccdda074e5 OPTFLAGS vs. INCLUDES cleanup
arpi
parents: 1010
diff changeset
9 CFLAGS = $(OPTFLAGS) $(EXTRA_INC)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 .SUFFIXES: .c .o
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 # .PHONY: all clean
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 .c.o:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 $(CC) -c $(CFLAGS) -o $@ $<
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 .s.o:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 $(CC) -c $(CFLAGS) -o $@ $<
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20
1010
6d3a6d42c831 dependency stuff fixed
arpi_esp
parents: 866
diff changeset
21 libMP3.a: $(OBJS)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 $(AR) r libMP3.a $(OBJS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23
789
989b921361d0 test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents: 788
diff changeset
24 test1: libMP3.a test.c
826
93304e7353c8 Added missing mathlib for linking.
atmosfear
parents: 789
diff changeset
25 $(CC) $(CFLAGS) test.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
26
989b921361d0 test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents: 788
diff changeset
27 test2: libMP3.a test2.c
826
93304e7353c8 Added missing mathlib for linking.
atmosfear
parents: 789
diff changeset
28 $(CC) $(CFLAGS) test2.c -o test2 -I.. -L. -lMP3 -lm
788
214ea3f02d13 test.c added for benchmarking
arpi_esp
parents: 26
diff changeset
29
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 all: libMP3.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 clean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 rm -f *~ *.o *.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 distclean:
26
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
36 rm -f *~ *.o *.a Makefile.bak .depend
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
37
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
38 dep: depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39
1010
6d3a6d42c831 dependency stuff fixed
arpi_esp
parents: 866
diff changeset
40 depend:
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 826
diff changeset
41 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42
26
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
43 #
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
44 # include dependency files if they exist
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
45 #
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
46 ifneq ($(wildcard .depend),)
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
47 include .depend
8ee4acebff58 New dependency system
arpi_esp
parents: 1
diff changeset
48 endif