Mercurial > libavcodec.hg
annotate Makefile @ 62:4bfc845cdfea libavcodec
arm optimizations
author | glantau |
---|---|
date | Mon, 13 Aug 2001 21:45:36 +0000 |
parents | ab64a3fc62bf |
children | d7603c46c52f |
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 \ | |
23 | 7 mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \ |
0 | 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) |
22
c31fb57d17a6
Suppressing external gas stuff to improve portability to Win32
nickols_k
parents:
17
diff
changeset
|
28 ASM_OBJS += i386/fdct_mmx.o i386/sad_mmx.o |
2 | 29 OBJS += i386/fdctdata.o i386/cputest.o \ |
32 | 30 i386/dsputil_mmx.o i386/mpegvideo_mmx.o \ |
31 i386/idct_mmx.o | |
0 | 32 endif |
33 | |
62 | 34 # armv4l specific stuff |
35 ifeq ($(TARGET_ARCH_ARMV4L),yes) | |
36 ASM_OBJS += armv4l/jrevdct_arm.o | |
37 OBJS += armv4l/dsputil_arm.o | |
38 endif | |
39 | |
2 | 40 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s) |
41 | |
0 | 42 LIB= libavcodec.a |
43 TESTS= imgresample-test dct-test | |
44 | |
17
b69fe46fd708
Adding fastmemcpy stuff to speedup mplayer project
nickols_k
parents:
15
diff
changeset
|
45 all: $(LIB) |
43 | 46 tests: apiexample cpuid_test $(TESTS) |
0 | 47 |
2 | 48 $(LIB): $(OBJS) $(ASM_OBJS) |
0 | 49 rm -f $@ |
2 | 50 $(AR) rcs $@ $(OBJS) $(ASM_OBJS) |
0 | 51 |
52 dsputil.o: dsputil.c dsputil.h | |
53 | |
54 %.o: %.c | |
55 $(CC) $(CFLAGS) -c -o $@ $< | |
56 | |
62 | 57 %.o: %.S |
58 $(CC) $(CFLAGS) -c -o $@ $< | |
59 | |
0 | 60 %.o: %.s |
61 nasm -f elf -o $@ $< | |
62 | |
2 | 63 # depend only used by mplayer now |
64 dep: depend | |
65 | |
66 depend: | |
67 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
68 | |
0 | 69 clean: |
70 rm -f *.o *~ *.a i386/*.o i386/*~ \ | |
62 | 71 armv4l/*.o armv4l/*~ \ |
0 | 72 libac3/*.o libac3/*~ \ |
73 mpglib/*.o mpglib/*~ \ | |
74 apiexample $(TESTS) | |
75 | |
2 | 76 distclean: clean |
77 rm -f Makefile.bak .depend | |
78 | |
0 | 79 # api example program |
80 apiexample: apiexample.c $(LIB) | |
81 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm | |
82 | |
43 | 83 # cpuid test |
84 cpuid_test: i386/cputest.c | |
85 $(CC) $(CFLAGS) -D__TEST__ -o $@ $< | |
86 | |
0 | 87 # testing progs |
88 | |
89 imgresample-test: imgresample.c | |
90 $(CC) $(CFLAGS) -DTEST -o $@ $^ | |
91 | |
32 | 92 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o i386/fdctdata.o \ |
93 fdctref.o jrevdct.o i386/idct_mmx.o | |
0 | 94 $(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
|
95 |
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
|
96 # |
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
|
97 # 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
|
98 # |
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
|
99 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
|
100 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
|
101 endif |