Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 4269:68c78efeea2b
Reverted to using software sync again, some day I'll die of a heartattack if I can't get this
m*f*er to work on both fast and slow machines... May all hell be let loose on sigma for not
cooperating with us
author | mswitch |
---|---|
date | Sat, 19 Jan 2002 22:24:30 +0000 |
parents | c9bdfcc8badc |
children | 2935211e4f9b |
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 | |
4266 | 14 #ifeq ($(TARGET_MMX),yes) |
4179
866c74e83b08
Fix "[MPlayer-dev-eng] mp3lib-mmx sig11 with mpeg1layer3 audio after
kmkaplan
parents:
4165
diff
changeset
|
15 CFLAGS += -fomit-frame-pointer |
4165 | 16 SRCS += decode_MMX.c dct64_MMX.c tabinit_MMX.c |
1258 | 17 OBJS += decode_MMX.o dct64_MMX.o tabinit_MMX.o |
4266 | 18 #endif |
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
|
19 #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
|
20 #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
|
21 #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
|
22 #endif |
4266 | 23 #ifeq ($(TARGET_3DNOW),yes) |
4148 | 24 SRCS += dct36_3dnow.s dct64_3dnow.c |
1258 | 25 OBJS += dct36_3dnow.o dct64_3dnow.o |
4266 | 26 #endif |
27 #ifeq ($(TARGET_3DNOWEX),yes) | |
28 SRCS += dct36_k7.c dct64_k7.c | |
1258 | 29 OBJS += dct36_k7.o dct64_k7.o |
4266 | 30 #endif |
1258 | 31 endif |
1 | 32 |
33 .SUFFIXES: .c .o | |
34 | |
35 # .PHONY: all clean | |
36 | |
37 .c.o: | |
38 $(CC) -c $(CFLAGS) -o $@ $< | |
39 | |
40 .s.o: | |
41 $(CC) -c $(CFLAGS) -o $@ $< | |
42 | |
1010 | 43 libMP3.a: $(OBJS) |
1 | 44 $(AR) r libMP3.a $(OBJS) |
4244 | 45 ifeq ($(TARGET_OS),CYGWIN) |
46 ./mp3lib_objfix.sh | |
47 endif | |
1 | 48 |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
49 test1: libMP3.a test.c |
1461 | 50 $(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
|
51 |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
52 test2: libMP3.a test2.c |
1461 | 53 $(CC) $(CFLAGS) test2.c ../libvo/aclib.c -o test2 -I.. -L. -lMP3 -lm |
788 | 54 |
1 | 55 all: libMP3.a |
56 | |
57 clean: | |
58 rm -f *~ *.o *.a | |
59 | |
60 distclean: | |
26 | 61 rm -f *~ *.o *.a Makefile.bak .depend |
62 | |
63 dep: depend | |
1 | 64 |
1010 | 65 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
826
diff
changeset
|
66 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 67 |
26 | 68 # |
69 # include dependency files if they exist | |
70 # | |
71 ifneq ($(wildcard .depend),) | |
72 include .depend | |
73 endif |