Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 20944:20910582789d
cosmetics: Restore alphabetical order, align both tables.
author | diego |
---|---|
date | Thu, 16 Nov 2006 13:15:05 +0000 |
parents | c6b69870fcd5 |
children | c7d3523c74ee |
rev | line source |
---|---|
1 | 1 |
1258 | 2 include ../config.mak |
1 | 3 |
2450 | 4 ifeq ($(TARGET_ARCH_SGI_MIPS),yes) |
5 OPTFLAGS := $(OPTFLAGS:-O4=-O0) | |
6 endif | |
19037 | 7 CFLAGS = -I.. $(OPTFLAGS) |
20306 | 8 |
9 SRCS = sr1.c | |
20575 | 10 ifeq ($(TARGET_ARCH_X86_32),yes) |
4262 | 11 SRCS += decode_i586.c |
19131
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
12 ifeq ($(TARGET_MMX),yes) |
4165 | 13 SRCS += decode_MMX.c dct64_MMX.c tabinit_MMX.c |
19131
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
14 endif |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
15 ifeq ($(TARGET_3DNOW),yes) |
10322
9163bdb578a6
moved 3dnow and 3dnowex dct36 optimisations into gcc inline assembly
alex
parents:
9771
diff
changeset
|
16 SRCS += dct36_3dnow.c dct64_3dnow.c |
19131
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
17 endif |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
18 ifeq ($(TARGET_3DNOWEX),yes) |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
19 SRCS += dct36_k7.c dct64_k7.c |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
20 endif |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
21 ifeq ($(TARGET_SSE),yes) |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
22 SRCS += dct64_sse.c |
078479215e54
do not compile mmx/sse/3dnow code if not available
rfelker
parents:
19037
diff
changeset
|
23 endif |
1258 | 24 endif |
9002 | 25 ifeq ($(TARGET_ARCH_POWERPC),yes) |
26 ifeq ($(TARGET_ALTIVEC),yes) | |
27 SRCS += dct64_altivec.c | |
9122 | 28 ifeq ($(TARGET_OS),Darwin) |
9002 | 29 CFLAGS += -faltivec |
9122 | 30 else |
31 CFLAGS += -maltivec -mabi=altivec | |
32 endif | |
9002 | 33 endif |
34 endif | |
1 | 35 |
20306 | 36 OBJS=$(SRCS:.c=.o) |
37 | |
1 | 38 .SUFFIXES: .c .o |
39 | |
40 # .PHONY: all clean | |
41 | |
8543 | 42 all: libMP3.a |
43 | |
1 | 44 .c.o: |
45 $(CC) -c $(CFLAGS) -o $@ $< | |
46 | |
8543 | 47 decode_i586.o: decode_i586.c |
48 $(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $< | |
49 | |
1 | 50 .s.o: |
51 $(CC) -c $(CFLAGS) -o $@ $< | |
52 | |
1010 | 53 libMP3.a: $(OBJS) |
1 | 54 $(AR) r libMP3.a $(OBJS) |
12632 | 55 $(RANLIB) libMP3.a |
56 | |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
57 test1: libMP3.a test.c |
7234 | 58 $(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
|
59 |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
60 test2: libMP3.a test2.c |
7234 | 61 $(CC) $(CFLAGS) test2.c ../libvo/aclib.c -o test2 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm |
788 | 62 |
1 | 63 clean: |
11241 | 64 rm -f *~ *.o *.a test1 test2 |
1 | 65 |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
13787
diff
changeset
|
66 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
13787
diff
changeset
|
67 rm -f .depend |
26 | 68 |
69 dep: depend | |
1 | 70 |
1010 | 71 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
826
diff
changeset
|
72 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 73 |
26 | 74 # |
75 # include dependency files if they exist | |
76 # | |
77 ifneq ($(wildcard .depend),) | |
78 include .depend | |
79 endif |