annotate liba52/Makefile @ 20189:638b26a0b85f

some minor fixes & sync to r20194
author ptt
date Thu, 12 Oct 2006 23:13:09 +0000
parents 4f71ed7cb512
children 618d1857f4c4
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
17943
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17488
diff changeset
6 SRCS = crc.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17488
diff changeset
7 resample.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17488
diff changeset
8 bit_allocate.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17488
diff changeset
9 bitstream.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17488
diff changeset
10 downmix.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17488
diff changeset
11 imdct.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17488
diff changeset
12 parse.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17488
diff changeset
13
3407
arpi
parents:
diff changeset
14 OBJS = $(SRCS:.c=.o)
arpi
parents:
diff changeset
15
19420
4f71ed7cb512 Move all internal -I parameters to the front of CFLAGS to avoid using external
diego
parents: 18720
diff changeset
16 CFLAGS = -I.. $(OPTFLAGS)
3407
arpi
parents:
diff changeset
17
arpi
parents:
diff changeset
18 .SUFFIXES: .c .o
arpi
parents:
diff changeset
19
arpi
parents:
diff changeset
20 # .PHONY: all clean
arpi
parents:
diff changeset
21
arpi
parents:
diff changeset
22 .c.o:
arpi
parents:
diff changeset
23 $(CC) -c $(CFLAGS) -o $@ $<
arpi
parents:
diff changeset
24
arpi
parents:
diff changeset
25 $(LIBNAME): $(OBJS)
arpi
parents:
diff changeset
26 $(AR) r $(LIBNAME) $(OBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 10572
diff changeset
27 $(RANLIB) $(LIBNAME)
3407
arpi
parents:
diff changeset
28
arpi
parents:
diff changeset
29 test: $(LIBNAME) test.c
12966
4e7d8679d6d8 compilation fix for test program
reimar
parents: 12632
diff changeset
30 $(CC) $(CFLAGS) test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm
3407
arpi
parents:
diff changeset
31
arpi
parents:
diff changeset
32 test2: $(LIBNAME) test.c
7148
d48db6256efb use dir/libname.a instead of -Ldir -lname
arpi
parents: 3890
diff changeset
33 $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm
3407
arpi
parents:
diff changeset
34
arpi
parents:
diff changeset
35 all: $(LIBNAME)
arpi
parents:
diff changeset
36
arpi
parents:
diff changeset
37 clean:
arpi
parents:
diff changeset
38 rm -f *.o *.a *~
arpi
parents:
diff changeset
39
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17101
diff changeset
40 distclean: clean
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17101
diff changeset
41 rm -f .depend test
3407
arpi
parents:
diff changeset
42
arpi
parents:
diff changeset
43 dep: depend
arpi
parents:
diff changeset
44
arpi
parents:
diff changeset
45 depend:
arpi
parents:
diff changeset
46 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
arpi
parents:
diff changeset
47
arpi
parents:
diff changeset
48 #
arpi
parents:
diff changeset
49 # include dependency files if they exist
arpi
parents:
diff changeset
50 #
arpi
parents:
diff changeset
51 ifneq ($(wildcard .depend),)
arpi
parents:
diff changeset
52 include .depend
arpi
parents:
diff changeset
53 endif