Mercurial > libavcodec.hg
annotate Makefile @ 15:076bcac8d059 libavcodec
added cpuid.s
author | glantau |
---|---|
date | Mon, 30 Jul 2001 23:50:04 +0000 |
parents | 0dd0178a24c5 |
children | b69fe46fd708 |
rev | line source |
---|---|
2 | 1 include ../config.mak |
2 | |
9 | 3 CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H |
0 | 4 LDFLAGS= -g |
5 | |
6 OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \ | |
7 mpegaudio.o ac3enc.o mjpegenc.o resample.o dsputil.o \ | |
8 motion_est.o imgconvert.o imgresample.o msmpeg4.o \ | |
9 mpeg12.o h263dec.o rv10.o | |
2 | 10 ASM_OBJS= |
0 | 11 |
12 # currently using libac3 for ac3 decoding | |
3
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
13 ifeq ($(CONFIG_AC3),yes) |
0 | 14 OBJS+= ac3dec.o \ |
15 libac3/bit_allocate.o libac3/bitstream.o libac3/downmix.o \ | |
16 libac3/imdct.o libac3/parse.o | |
3
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
17 endif |
0 | 18 |
19 # currently using mpglib for mpeg audio decoding | |
3
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
20 ifeq ($(CONFIG_MPGLIB),yes) |
0 | 21 OBJS+= mpegaudiodec.o \ |
22 mpglib/layer1.o mpglib/layer2.o mpglib/layer3.o \ | |
23 mpglib/dct64_i386.o mpglib/decode_i386.o mpglib/tabinit.o | |
3
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
24 endif |
0 | 25 |
26 # i386 mmx specific stuff | |
2 | 27 ifeq ($(TARGET_MMX),yes) |
15 | 28 ASM_OBJS += i386/fdct_mmx.o i386/sad_mmx.o i386/cpuid.o |
2 | 29 OBJS += i386/fdctdata.o i386/cputest.o \ |
9 | 30 i386/dsputil_mmx.o i386/mpegvideo_mmx.o |
0 | 31 endif |
32 | |
2 | 33 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s) |
34 | |
0 | 35 LIB= libavcodec.a |
36 TESTS= imgresample-test dct-test | |
37 | |
38 all: $(LIB) apiexample | |
39 | |
2 | 40 $(LIB): $(OBJS) $(ASM_OBJS) |
0 | 41 rm -f $@ |
2 | 42 $(AR) rcs $@ $(OBJS) $(ASM_OBJS) |
0 | 43 |
44 dsputil.o: dsputil.c dsputil.h | |
45 | |
46 %.o: %.c | |
47 $(CC) $(CFLAGS) -c -o $@ $< | |
48 | |
15 | 49 i386/cpuid.o: i386/cpuid.s |
50 $(CC) -c -o $@ $< | |
51 | |
0 | 52 %.o: %.s |
53 nasm -f elf -o $@ $< | |
54 | |
2 | 55 # depend only used by mplayer now |
56 dep: depend | |
57 | |
58 depend: | |
59 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
60 | |
0 | 61 clean: |
62 rm -f *.o *~ *.a i386/*.o i386/*~ \ | |
63 libac3/*.o libac3/*~ \ | |
64 mpglib/*.o mpglib/*~ \ | |
65 apiexample $(TESTS) | |
66 | |
2 | 67 distclean: clean |
68 rm -f Makefile.bak .depend | |
69 | |
0 | 70 # api example program |
71 apiexample: apiexample.c $(LIB) | |
72 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm | |
73 | |
74 # testing progs | |
75 | |
76 imgresample-test: imgresample.c | |
77 $(CC) $(CFLAGS) -DTEST -o $@ $^ | |
78 | |
79 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o i386/fdctdata.o fdctref.o | |
80 $(CC) -o $@ $^ | |
3
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
81 |
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
82 # |
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
83 # include dependency files if they exist |
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
84 # |
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
85 ifneq ($(wildcard .depend),) |
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
86 include .depend |
1bdbd869c1f0
added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: don't forget to put CONFIG_DECODERS in mplayer)
glantau
parents:
2
diff
changeset
|
87 endif |