Mercurial > libavcodec.hg
comparison Makefile @ 2:2e2c46c87460 libavcodec
fixed config for direct mplayer build compatibility
author | glantau |
---|---|
date | Mon, 23 Jul 2001 20:06:54 +0000 |
parents | 986e461dc072 |
children | 1bdbd869c1f0 |
comparison
equal
deleted
inserted
replaced
1:383bfb30fc84 | 2:2e2c46c87460 |
---|---|
1 include ../config.mk | 1 include ../config.mak |
2 CFLAGS= -O2 -Wall -g | 2 |
3 CFLAGS= $(OPTFLAGS) -Wall -g | |
3 LDFLAGS= -g | 4 LDFLAGS= -g |
4 | 5 |
5 OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \ | 6 OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \ |
6 mpegaudio.o ac3enc.o mjpegenc.o resample.o dsputil.o \ | 7 mpegaudio.o ac3enc.o mjpegenc.o resample.o dsputil.o \ |
7 motion_est.o imgconvert.o imgresample.o msmpeg4.o \ | 8 motion_est.o imgconvert.o imgresample.o msmpeg4.o \ |
8 mpeg12.o h263dec.o rv10.o | 9 mpeg12.o h263dec.o rv10.o |
10 ASM_OBJS= | |
9 | 11 |
10 # currently using libac3 for ac3 decoding | 12 # currently using libac3 for ac3 decoding |
11 OBJS+= ac3dec.o \ | 13 OBJS+= ac3dec.o \ |
12 libac3/bit_allocate.o libac3/bitstream.o libac3/downmix.o \ | 14 libac3/bit_allocate.o libac3/bitstream.o libac3/downmix.o \ |
13 libac3/imdct.o libac3/parse.o | 15 libac3/imdct.o libac3/parse.o |
16 OBJS+= mpegaudiodec.o \ | 18 OBJS+= mpegaudiodec.o \ |
17 mpglib/layer1.o mpglib/layer2.o mpglib/layer3.o \ | 19 mpglib/layer1.o mpglib/layer2.o mpglib/layer3.o \ |
18 mpglib/dct64_i386.o mpglib/decode_i386.o mpglib/tabinit.o | 20 mpglib/dct64_i386.o mpglib/decode_i386.o mpglib/tabinit.o |
19 | 21 |
20 # i386 mmx specific stuff | 22 # i386 mmx specific stuff |
21 ifdef CONFIG_MMX | 23 ifeq ($(TARGET_MMX),yes) |
22 OBJS += i386/fdct_mmx.o i386/fdctdata.o i386/sad_mmx.o i386/cputest.o \ | 24 ASM_OBJS += i386/fdct_mmx.o i386/sad_mmx.o |
25 OBJS += i386/fdctdata.o i386/cputest.o \ | |
23 i386/dsputil_mmx.o | 26 i386/dsputil_mmx.o |
24 endif | 27 endif |
28 | |
29 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s) | |
25 | 30 |
26 LIB= libavcodec.a | 31 LIB= libavcodec.a |
27 TESTS= imgresample-test dct-test | 32 TESTS= imgresample-test dct-test |
28 | 33 |
29 all: $(LIB) apiexample | 34 all: $(LIB) apiexample |
30 | 35 |
31 $(LIB): $(OBJS) | 36 $(LIB): $(OBJS) $(ASM_OBJS) |
32 rm -f $@ | 37 rm -f $@ |
33 $(AR) rcs $@ $(OBJS) | 38 $(AR) rcs $@ $(OBJS) $(ASM_OBJS) |
34 | 39 |
35 dsputil.o: dsputil.c dsputil.h | 40 dsputil.o: dsputil.c dsputil.h |
36 | 41 |
37 %.o: %.c | 42 %.o: %.c |
38 $(CC) $(CFLAGS) -c -o $@ $< | 43 $(CC) $(CFLAGS) -c -o $@ $< |
39 | 44 |
40 %.o: %.s | 45 %.o: %.s |
41 nasm -f elf -o $@ $< | 46 nasm -f elf -o $@ $< |
42 | 47 |
48 # depend only used by mplayer now | |
49 dep: depend | |
50 | |
51 depend: | |
52 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
53 | |
43 clean: | 54 clean: |
44 rm -f *.o *~ *.a i386/*.o i386/*~ \ | 55 rm -f *.o *~ *.a i386/*.o i386/*~ \ |
45 libac3/*.o libac3/*~ \ | 56 libac3/*.o libac3/*~ \ |
46 mpglib/*.o mpglib/*~ \ | 57 mpglib/*.o mpglib/*~ \ |
47 apiexample $(TESTS) | 58 apiexample $(TESTS) |
59 | |
60 distclean: clean | |
61 rm -f Makefile.bak .depend | |
48 | 62 |
49 # api example program | 63 # api example program |
50 apiexample: apiexample.c $(LIB) | 64 apiexample: apiexample.c $(LIB) |
51 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm | 65 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm |
52 | 66 |