Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 10296:6401bb43c955
1000l, stupid bash/ksh/etc specific crap. PLEASE learn bourne shell
scripting, people!
author | rfelker |
---|---|
date | Tue, 17 Jun 2003 16:16:47 +0000 |
parents | 25614fe4ed1a |
children | 9163bdb578a6 |
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 |
5607 | 22 SRCS += dct36_k7.s dct64_k7.c |
1258 | 23 OBJS += dct36_k7.o dct64_k7.o |
24 endif | |
9002 | 25 ifeq ($(TARGET_ARCH_POWERPC),yes) |
26 ifeq ($(TARGET_ALTIVEC),yes) | |
27 SRCS += dct64_altivec.c | |
28 OBJS += dct64_altivec.o | |
9122 | 29 ifeq ($(TARGET_OS),Darwin) |
9002 | 30 CFLAGS += -faltivec |
9122 | 31 else |
32 CFLAGS += -maltivec -mabi=altivec | |
33 endif | |
9002 | 34 endif |
35 endif | |
1 | 36 |
37 .SUFFIXES: .c .o | |
38 | |
39 # .PHONY: all clean | |
40 | |
8543 | 41 all: libMP3.a |
42 | |
1 | 43 .c.o: |
44 $(CC) -c $(CFLAGS) -o $@ $< | |
45 | |
8543 | 46 decode_i586.o: decode_i586.c |
47 $(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $< | |
48 | |
1 | 49 .s.o: |
50 $(CC) -c $(CFLAGS) -o $@ $< | |
51 | |
1010 | 52 libMP3.a: $(OBJS) |
1 | 53 $(AR) r libMP3.a $(OBJS) |
4244 | 54 ifeq ($(TARGET_OS),CYGWIN) |
55 ./mp3lib_objfix.sh | |
56 endif | |
9771 | 57 ifeq ($(TARGET_MINGW32),yes) |
58 ./mp3lib_objfix.sh | |
59 endif | |
5909
adc04b7ed226
OpenBSD patch - by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
5607
diff
changeset
|
60 ifeq ($(TARGET_OS),OpenBSD) |
adc04b7ed226
OpenBSD patch - by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
5607
diff
changeset
|
61 ./mp3lib_objfix.sh |
adc04b7ed226
OpenBSD patch - by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
5607
diff
changeset
|
62 endif |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
63 test1: libMP3.a test.c |
7234 | 64 $(CC) $(CFLAGS) test.c ../libvo/aclib.c -o test1 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
65 |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
66 test2: libMP3.a test2.c |
7234 | 67 $(CC) $(CFLAGS) test2.c ../libvo/aclib.c -o test2 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm |
788 | 68 |
1 | 69 clean: |
70 rm -f *~ *.o *.a | |
71 | |
72 distclean: | |
26 | 73 rm -f *~ *.o *.a Makefile.bak .depend |
74 | |
75 dep: depend | |
1 | 76 |
1010 | 77 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
826
diff
changeset
|
78 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 79 |
26 | 80 # |
81 # include dependency files if they exist | |
82 # | |
83 ifneq ($(wildcard .depend),) | |
84 include .depend | |
85 endif |