Mercurial > mplayer.hg
annotate mp3lib/Makefile @ 789:989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
author | arpi_esp |
---|---|
date | Sun, 13 May 2001 19:18:52 +0000 |
parents | 214ea3f02d13 |
children | 93304e7353c8 |
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) | |
6 CFLAGS = $(OPTFLAGS) | |
7 | |
8 .SUFFIXES: .c .o | |
9 | |
10 # .PHONY: all clean | |
11 | |
12 .c.o: | |
13 $(CC) -c $(CFLAGS) -o $@ $< | |
14 | |
15 .s.o: | |
16 $(CC) -c $(CFLAGS) -o $@ $< | |
17 | |
26 | 18 libMP3.a: .depend $(OBJS) |
1 | 19 $(AR) r libMP3.a $(OBJS) |
20 | |
789
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
21 test1: libMP3.a test.c |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
22 $(CC) $(CFLAGS) test.c -o test1 -I.. -L. -lMP3 |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
23 |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
24 test2: libMP3.a test2.c |
989b921361d0
test2 added for playback test, testreanmed to test1 to make Atmosfear happy...
arpi_esp
parents:
788
diff
changeset
|
25 $(CC) $(CFLAGS) test2.c -o test2 -I.. -L. -lMP3 |
788 | 26 |
1 | 27 all: libMP3.a |
28 | |
29 clean: | |
30 rm -f *~ *.o *.a | |
31 | |
32 distclean: | |
26 | 33 rm -f *~ *.o *.a Makefile.bak .depend |
34 | |
35 dep: depend | |
36 depend: .depend | |
1 | 37 |
26 | 38 .depend: Makefile config.mak ../config.mak ../config.h |
39 makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null | |
1 | 40 |
26 | 41 # |
42 # include dependency files if they exist | |
43 # | |
44 ifneq ($(wildcard .depend),) | |
45 include .depend | |
46 endif |