annotate liba52/Makefile @ 13213:45f7d0200573

synced with 1.692 + random fixes
author paszczi
date Tue, 31 Aug 2004 09:17:17 +0000
parents 4e7d8679d6d8
children 16b1de65666b
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
3493
a4721884eaf5 Fix mediaLib compilation problem on solaris.
jkeil
parents: 3412
diff changeset
9 CFLAGS = $(MLIB_INC) $(OPTFLAGS)
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
arpi
parents:
diff changeset
33 distclean:
arpi
parents:
diff changeset
34 rm -f test *.o *.a *~ .depend
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