annotate liba52/Makefile @ 6653:f68733ccef9d

typo
author nexus
date Sat, 06 Jul 2002 08:01:12 +0000
parents c3e62caf9ec6
children d48db6256efb
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
3579
831860fada69 runtime cpu detection for the idct
michael
parents: 3493
diff changeset
22 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test -L. -la52 -lm
3407
arpi
parents:
diff changeset
23
arpi
parents:
diff changeset
24 test2: $(LIBNAME) test.c
arpi
parents:
diff changeset
25 $(CC) $(CFLAGS) test.c -o test2 -L../libac3 -lac3 -L. -la52
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