Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 2662:994b95f443f2
avoids spitting bad compilation messages at the user when sthg does not work
author | pl |
---|---|
date | Sat, 03 Nov 2001 23:15:44 +0000 |
parents | f51307170f69 |
children | 8312f4bc8dab |
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) |
1270 | 12 SRCS += d_cpu.s decode_i586.s |
13 OBJS += d_cpu.o decode_i586.o | |
1258 | 14 ifeq ($(TARGET_MMX),yes) |
15 SRCS += decode_MMX.s dct64_MMX.s tabinit_MMX.s | |
16 OBJS += decode_MMX.o dct64_MMX.o tabinit_MMX.o | |
17 endif | |
1393 | 18 ifeq ($(TARGET_SSE),yes) |
19 SRCS += dct64_sse.s | |
20 OBJS += dct64_sse.o | |
21 endif | |
1258 | 22 ifeq ($(TARGET_3DNOW),yes) |
23 SRCS += dct36_3dnow.s dct64_3dnow.s | |
24 OBJS += dct36_3dnow.o dct64_3dnow.o | |
25 endif | |
26 ifeq ($(TARGET_3DNOWEX),yes) | |
27 SRCS += dct36_k7.s dct64_k7.s | |
28 OBJS += dct36_k7.o dct64_k7.o | |
29 endif | |
30 endif | |
1 | 31 |
32 .SUFFIXES: .c .o | |
33 | |
34 # .PHONY: all clean | |
35 | |
36 .c.o: | |
37 $(CC) -c $(CFLAGS) -o $@ $< | |
38 | |
39 .s.o: | |
40 $(CC) -c $(CFLAGS) -o $@ $< | |
41 | |
1010 | 42 libMP3.a: $(OBJS) |
1 | 43 $(AR) r libMP3.a $(OBJS) |
44 | |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
45 test1: libMP3.a test.c |
1461 | 46 $(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
|
47 |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
48 test2: libMP3.a test2.c |
1461 | 49 $(CC) $(CFLAGS) test2.c ../libvo/aclib.c -o test2 -I.. -L. -lMP3 -lm |
788 | 50 |
1 | 51 all: libMP3.a |
52 | |
53 clean: | |
54 rm -f *~ *.o *.a | |
55 | |
56 distclean: | |
26 | 57 rm -f *~ *.o *.a Makefile.bak .depend |
58 | |
59 dep: depend | |
1 | 60 |
1010 | 61 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
826
diff
changeset
|
62 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 63 |
26 | 64 # |
65 # include dependency files if they exist | |
66 # | |
67 ifneq ($(wildcard .depend),) | |
68 include .depend | |
69 endif |