Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 5513:73696051e3ce
mpeg+pp0 fixed
author | arpi |
---|---|
date | Sun, 07 Apr 2002 03:25:25 +0000 |
parents | 2935211e4f9b |
children | 1972c3475d93 |
rev | line source |
---|---|
1 | 1 |
1258 | 2 include ../config.mak |
1 | 3 |
1270 | 4 SRCS = sr1.c |
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) |
2450 | 7 ifeq ($(TARGET_ARCH_SGI_MIPS),yes) |
8 OPTFLAGS := $(OPTFLAGS:-O4=-O0) | |
9 endif | |
1234 | 10 CFLAGS = $(OPTFLAGS) $(EXTRA_INC) |
1258 | 11 ifeq ($(TARGET_ARCH_X86),yes) |
4262 | 12 SRCS += decode_i586.c |
13 OBJS += decode_i586.o | |
4165 | 14 SRCS += decode_MMX.c dct64_MMX.c tabinit_MMX.c |
1258 | 15 OBJS += decode_MMX.o dct64_MMX.o tabinit_MMX.o |
3203
8312f4bc8dab
Disable SSE code and reenable FPU dct for SSE cpus (fpu code is 0.3% faster and I don't get data aligned in dct64_sse.s, so I can't finish optimizing it)
atmos4
parents:
2450
diff
changeset
|
16 #ifeq ($(TARGET_SSE),yes) |
8312f4bc8dab
Disable SSE code and reenable FPU dct for SSE cpus (fpu code is 0.3% faster and I don't get data aligned in dct64_sse.s, so I can't finish optimizing it)
atmos4
parents:
2450
diff
changeset
|
17 #SRCS += dct64_sse.s |
8312f4bc8dab
Disable SSE code and reenable FPU dct for SSE cpus (fpu code is 0.3% faster and I don't get data aligned in dct64_sse.s, so I can't finish optimizing it)
atmos4
parents:
2450
diff
changeset
|
18 #OBJS += dct64_sse.o |
8312f4bc8dab
Disable SSE code and reenable FPU dct for SSE cpus (fpu code is 0.3% faster and I don't get data aligned in dct64_sse.s, so I can't finish optimizing it)
atmos4
parents:
2450
diff
changeset
|
19 #endif |
4148 | 20 SRCS += dct36_3dnow.s dct64_3dnow.c |
1258 | 21 OBJS += dct36_3dnow.o dct64_3dnow.o |
4266 | 22 SRCS += dct36_k7.c dct64_k7.c |
1258 | 23 OBJS += dct36_k7.o dct64_k7.o |
24 endif | |
1 | 25 |
26 .SUFFIXES: .c .o | |
27 | |
28 # .PHONY: all clean | |
29 | |
30 .c.o: | |
31 $(CC) -c $(CFLAGS) -o $@ $< | |
32 | |
33 .s.o: | |
34 $(CC) -c $(CFLAGS) -o $@ $< | |
35 | |
1010 | 36 libMP3.a: $(OBJS) |
1 | 37 $(AR) r libMP3.a $(OBJS) |
4244 | 38 ifeq ($(TARGET_OS),CYGWIN) |
39 ./mp3lib_objfix.sh | |
40 endif | |
1 | 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 | 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 | 46 $(CC) $(CFLAGS) test2.c ../libvo/aclib.c -o test2 -I.. -L. -lMP3 -lm |
788 | 47 |
1 | 48 all: libMP3.a |
49 | |
50 clean: | |
51 rm -f *~ *.o *.a | |
52 | |
53 distclean: | |
26 | 54 rm -f *~ *.o *.a Makefile.bak .depend |
55 | |
56 dep: depend | |
1 | 57 |
1010 | 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 | 60 |
26 | 61 # |
62 # include dependency files if they exist | |
63 # | |
64 ifneq ($(wildcard .depend),) | |
65 include .depend | |
66 endif |