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