Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 2424:ff50f2a576f2
ima4 type warning fixed
author | arpi |
---|---|
date | Tue, 23 Oct 2001 14:11:53 +0000 |
parents | 5a748a93b7b4 |
children | f51307170f69 |
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) |
1234 | 7 CFLAGS = $(OPTFLAGS) $(EXTRA_INC) |
1258 | 8 ifeq ($(TARGET_ARCH_X86),yes) |
1270 | 9 SRCS += d_cpu.s decode_i586.s |
10 OBJS += d_cpu.o decode_i586.o | |
1258 | 11 ifeq ($(TARGET_MMX),yes) |
12 SRCS += decode_MMX.s dct64_MMX.s tabinit_MMX.s | |
13 OBJS += decode_MMX.o dct64_MMX.o tabinit_MMX.o | |
14 endif | |
1393 | 15 ifeq ($(TARGET_SSE),yes) |
16 SRCS += dct64_sse.s | |
17 OBJS += dct64_sse.o | |
18 endif | |
1258 | 19 ifeq ($(TARGET_3DNOW),yes) |
20 SRCS += dct36_3dnow.s dct64_3dnow.s | |
21 OBJS += dct36_3dnow.o dct64_3dnow.o | |
22 endif | |
23 ifeq ($(TARGET_3DNOWEX),yes) | |
24 SRCS += dct36_k7.s dct64_k7.s | |
25 OBJS += dct36_k7.o dct64_k7.o | |
26 endif | |
27 endif | |
1 | 28 |
29 .SUFFIXES: .c .o | |
30 | |
31 # .PHONY: all clean | |
32 | |
33 .c.o: | |
34 $(CC) -c $(CFLAGS) -o $@ $< | |
35 | |
36 .s.o: | |
37 $(CC) -c $(CFLAGS) -o $@ $< | |
38 | |
1010 | 39 libMP3.a: $(OBJS) |
1 | 40 $(AR) r libMP3.a $(OBJS) |
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 |