Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 1373:d1d37abe6389
only FAQ and SOUNDCARDS stuff not formatted/missing
author | gabucino |
---|---|
date | Sat, 21 Jul 2001 13:24:41 +0000 |
parents | 8a9fa696b77d |
children | 5eef9e69b145 |
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 | |
15 ifeq ($(TARGET_3DNOW),yes) | |
16 SRCS += dct36_3dnow.s dct64_3dnow.s | |
17 OBJS += dct36_3dnow.o dct64_3dnow.o | |
18 endif | |
19 ifeq ($(TARGET_3DNOWEX),yes) | |
20 SRCS += dct36_k7.s dct64_k7.s | |
21 OBJS += dct36_k7.o dct64_k7.o | |
22 endif | |
23 endif | |
1 | 24 |
25 .SUFFIXES: .c .o | |
26 | |
27 # .PHONY: all clean | |
28 | |
29 .c.o: | |
30 $(CC) -c $(CFLAGS) -o $@ $< | |
31 | |
32 .s.o: | |
33 $(CC) -c $(CFLAGS) -o $@ $< | |
34 | |
1010 | 35 libMP3.a: $(OBJS) |
1 | 36 $(AR) r libMP3.a $(OBJS) |
37 | |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
38 test1: libMP3.a test.c |
826 | 39 $(CC) $(CFLAGS) test.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
|
40 |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
41 test2: libMP3.a test2.c |
826 | 42 $(CC) $(CFLAGS) test2.c -o test2 -I.. -L. -lMP3 -lm |
788 | 43 |
1 | 44 all: libMP3.a |
45 | |
46 clean: | |
47 rm -f *~ *.o *.a | |
48 | |
49 distclean: | |
26 | 50 rm -f *~ *.o *.a Makefile.bak .depend |
51 | |
52 dep: depend | |
1 | 53 |
1010 | 54 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
826
diff
changeset
|
55 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 56 |
26 | 57 # |
58 # include dependency files if they exist | |
59 # | |
60 ifneq ($(wildcard .depend),) | |
61 include .depend | |
62 endif |