Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 1013:74d55f3c4680
libao->libao2 because of conflict with OMS's libao
author | arpi_esp |
---|---|
date | Mon, 04 Jun 2001 21:00:47 +0000 |
parents | 6d3a6d42c831 |
children | dfccdda074e5 |
rev | line source |
---|---|
1 | 1 |
2 include config.mak | |
3 | |
4 SRCS = sr1.c d_cpu.s decode_i586.s $(OPTIONAL_SRCS) | |
5 OBJS = sr1.o d_cpu.o decode_i586.o $(OPTIONAL_OBJS) | |
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) |
1 | 7 CFLAGS = $(OPTFLAGS) |
8 | |
9 .SUFFIXES: .c .o | |
10 | |
11 # .PHONY: all clean | |
12 | |
13 .c.o: | |
14 $(CC) -c $(CFLAGS) -o $@ $< | |
15 | |
16 .s.o: | |
17 $(CC) -c $(CFLAGS) -o $@ $< | |
18 | |
1010 | 19 libMP3.a: $(OBJS) |
1 | 20 $(AR) r libMP3.a $(OBJS) |
21 | |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
22 test1: libMP3.a test.c |
826 | 23 $(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
|
24 |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
25 test2: libMP3.a test2.c |
826 | 26 $(CC) $(CFLAGS) test2.c -o test2 -I.. -L. -lMP3 -lm |
788 | 27 |
1 | 28 all: libMP3.a |
29 | |
30 clean: | |
31 rm -f *~ *.o *.a | |
32 | |
33 distclean: | |
26 | 34 rm -f *~ *.o *.a Makefile.bak .depend |
35 | |
36 dep: depend | |
1 | 37 |
1010 | 38 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
826
diff
changeset
|
39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 40 |
26 | 41 # |
42 # include dependency files if they exist | |
43 # | |
44 ifneq ($(wildcard .depend),) | |
45 include .depend | |
46 endif |