annotate liba52/Makefile @ 17542:77554102d21f

Mark ffrv20 as working.
author diego
date Mon, 06 Feb 2006 21:25:17 +0000
parents ce1ba8fd57e7
children c127ce678083
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3407
arpi
parents:
diff changeset
1
arpi
parents:
diff changeset
2 LIBNAME = liba52.a
arpi
parents:
diff changeset
3
arpi
parents:
diff changeset
4 include ../config.mak
arpi
parents:
diff changeset
5
3890
c3e62caf9ec6 CRC code ported from libac3
arpi
parents: 3579
diff changeset
6 SRCS = crc.c resample.c bit_allocate.c bitstream.c downmix.c imdct.c imdct_mlib.c parse.c
3407
arpi
parents:
diff changeset
7 OBJS = $(SRCS:.c=.o)
arpi
parents:
diff changeset
8
17101
16b1de65666b add missing -I..
rathann
parents: 12966
diff changeset
9 CFLAGS = $(MLIB_INC) $(OPTFLAGS) -I..
3407
arpi
parents:
diff changeset
10
arpi
parents:
diff changeset
11 .SUFFIXES: .c .o
arpi
parents:
diff changeset
12
arpi
parents:
diff changeset
13 # .PHONY: all clean
arpi
parents:
diff changeset
14
arpi
parents:
diff changeset
15 .c.o:
arpi
parents:
diff changeset
16 $(CC) -c $(CFLAGS) -o $@ $<
arpi
parents:
diff changeset
17
arpi
parents:
diff changeset
18 $(LIBNAME): $(OBJS)
arpi
parents:
diff changeset
19 $(AR) r $(LIBNAME) $(OBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 10572
diff changeset
20 $(RANLIB) $(LIBNAME)
3407
arpi
parents:
diff changeset
21
arpi
parents:
diff changeset
22 test: $(LIBNAME) test.c
12966
4e7d8679d6d8 compilation fix for test program
reimar
parents: 12632
diff changeset
23 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm
3407
arpi
parents:
diff changeset
24
arpi
parents:
diff changeset
25 test2: $(LIBNAME) test.c
7148
d48db6256efb use dir/libname.a instead of -Ldir -lname
arpi
parents: 3890
diff changeset
26 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm
3407
arpi
parents:
diff changeset
27
arpi
parents:
diff changeset
28 all: $(LIBNAME)
arpi
parents:
diff changeset
29
arpi
parents:
diff changeset
30 clean:
arpi
parents:
diff changeset
31 rm -f *.o *.a *~
arpi
parents:
diff changeset
32
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17101
diff changeset
33 distclean: clean
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17101
diff changeset
34 rm -f .depend test
3407
arpi
parents:
diff changeset
35
arpi
parents:
diff changeset
36 dep: depend
arpi
parents:
diff changeset
37
arpi
parents:
diff changeset
38 depend:
arpi
parents:
diff changeset
39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
arpi
parents:
diff changeset
40
arpi
parents:
diff changeset
41 #
arpi
parents:
diff changeset
42 # include dependency files if they exist
arpi
parents:
diff changeset
43 #
arpi
parents:
diff changeset
44 ifneq ($(wildcard .depend),)
arpi
parents:
diff changeset
45 include .depend
arpi
parents:
diff changeset
46 endif