comparison liba52/Makefile @ 3407:b33d04167063

10l?
author arpi
date Sun, 09 Dec 2001 18:04:17 +0000
parents
children 21d65a4ae3c9
comparison
equal deleted inserted replaced
3406:fae985b5566d 3407:b33d04167063
1
2 LIBNAME = liba52.a
3
4 include ../config.mak
5
6 SRCS = bit_allocate.c bitstream.c downmix.c imdct.c imdct_mlib.c parse.c
7 OBJS = $(SRCS:.c=.o)
8
9 CFLAGS = $(OPTFLAGS)
10
11 .SUFFIXES: .c .o
12
13 # .PHONY: all clean
14
15 .c.o:
16 $(CC) -c $(CFLAGS) -o $@ $<
17
18 $(LIBNAME): $(OBJS)
19 $(AR) r $(LIBNAME) $(OBJS)
20
21 test: $(LIBNAME) test.c
22 $(CC) $(CFLAGS) test.c -o test -L. -la52
23
24 test2: $(LIBNAME) test.c
25 $(CC) $(CFLAGS) test.c -o test2 -L../libac3 -lac3 -L. -la52
26
27 all: $(LIBNAME)
28
29 clean:
30 rm -f *.o *.a *~
31
32 distclean:
33 rm -f test *.o *.a *~ .depend
34
35 dep: depend
36
37 depend:
38 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
39
40 #
41 # include dependency files if they exist
42 #
43 ifneq ($(wildcard .depend),)
44 include .depend
45 endif