annotate liba52/Makefile @ 7238:6f44ed6c4568

FreeBSD fix
author nexus
date Sun, 01 Sep 2002 23:06:15 +0000
parents d48db6256efb
children 01a9cf43074c
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)
arpi
parents:
diff changeset
20
arpi
parents:
diff changeset
21 test: $(LIBNAME) test.c
7148
d48db6256efb use dir/libname.a instead of -Ldir -lname
arpi
parents: 3890
diff changeset
22 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ./liba52.a -lm
3407
arpi
parents:
diff changeset
23
arpi
parents:
diff changeset
24 test2: $(LIBNAME) test.c
7148
d48db6256efb use dir/libname.a instead of -Ldir -lname
arpi
parents: 3890
diff changeset
25 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm
3407
arpi
parents:
diff changeset
26
arpi
parents:
diff changeset
27 all: $(LIBNAME)
arpi
parents:
diff changeset
28
arpi
parents:
diff changeset
29 clean:
arpi
parents:
diff changeset
30 rm -f *.o *.a *~
arpi
parents:
diff changeset
31
arpi
parents:
diff changeset
32 distclean:
arpi
parents:
diff changeset
33 rm -f test *.o *.a *~ .depend
arpi
parents:
diff changeset
34
arpi
parents:
diff changeset
35 dep: depend
arpi
parents:
diff changeset
36
arpi
parents:
diff changeset
37 depend:
arpi
parents:
diff changeset
38 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
arpi
parents:
diff changeset
39
arpi
parents:
diff changeset
40 #
arpi
parents:
diff changeset
41 # include dependency files if they exist
arpi
parents:
diff changeset
42 #
arpi
parents:
diff changeset
43 ifneq ($(wildcard .depend),)
arpi
parents:
diff changeset
44 include .depend
arpi
parents:
diff changeset
45 endif