Mercurial > libavcodec.hg
annotate Makefile @ 127:2fe8f116576c libavcodec
Independed compilation of SUBDIRS
author | nick |
---|---|
date | Wed, 24 Oct 2001 07:34:41 +0000 |
parents | 1d3eb6cdc6b5 |
children | 669955525b67 |
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 \ |
92 | 9 mpeg12.o h263dec.o rv10.o mpegaudiodec.o pcm.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 # i386 mmx specific stuff | |
2 | 20 ifeq ($(TARGET_MMX),yes) |
74 | 21 OBJS += i386/fdct_mmx.o i386/cputest.o \ |
32 | 22 i386/dsputil_mmx.o i386/mpegvideo_mmx.o \ |
74 | 23 i386/idct_mmx.o i386/motion_est_mmx.o |
0 | 24 endif |
25 | |
62 | 26 # armv4l specific stuff |
27 ifeq ($(TARGET_ARCH_ARMV4L),yes) | |
28 ASM_OBJS += armv4l/jrevdct_arm.o | |
29 OBJS += armv4l/dsputil_arm.o | |
30 endif | |
31 | |
88 | 32 # sun mediaLib specific stuff |
33 # currently only works when libavcodec is used in mplayer | |
34 ifeq ($(HAVE_MLIB),yes) | |
35 OBJS += mlib/dsputil_mlib.o | |
36 CFLAGS += $(MLIB_INC) | |
37 endif | |
38 | |
2 | 39 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s) |
40 | |
0 | 41 LIB= libavcodec.a |
74 | 42 TESTS= imgresample-test dct-test motion-test |
0 | 43 |
17
b69fe46fd708
Adding fastmemcpy stuff to speedup mplayer project
nickols_k
parents:
15
diff
changeset
|
44 all: $(LIB) |
43 | 45 tests: apiexample cpuid_test $(TESTS) |
0 | 46 |
2 | 47 $(LIB): $(OBJS) $(ASM_OBJS) |
0 | 48 rm -f $@ |
2 | 49 $(AR) rcs $@ $(OBJS) $(ASM_OBJS) |
0 | 50 |
51 dsputil.o: dsputil.c dsputil.h | |
52 | |
53 %.o: %.c | |
54 $(CC) $(CFLAGS) -c -o $@ $< | |
55 | |
62 | 56 %.o: %.S |
57 $(CC) $(CFLAGS) -c -o $@ $< | |
58 | |
2 | 59 # depend only used by mplayer now |
60 dep: depend | |
61 | |
62 depend: | |
63 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
64 | |
0 | 65 clean: |
66 rm -f *.o *~ *.a i386/*.o i386/*~ \ | |
62 | 67 armv4l/*.o armv4l/*~ \ |
88 | 68 mlib/*.o mlib/*~ \ |
0 | 69 libac3/*.o libac3/*~ \ |
70 apiexample $(TESTS) | |
71 | |
2 | 72 distclean: clean |
73 rm -f Makefile.bak .depend | |
74 | |
0 | 75 # api example program |
76 apiexample: apiexample.c $(LIB) | |
77 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm | |
78 | |
43 | 79 # cpuid test |
80 cpuid_test: i386/cputest.c | |
81 $(CC) $(CFLAGS) -D__TEST__ -o $@ $< | |
82 | |
0 | 83 # testing progs |
84 | |
85 imgresample-test: imgresample.c | |
86 $(CC) $(CFLAGS) -DTEST -o $@ $^ | |
87 | |
74 | 88 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o \ |
32 | 89 fdctref.o jrevdct.o i386/idct_mmx.o |
0 | 90 $(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
|
91 |
74 | 92 motion-test: motion_test.o $(LIB) |
93 $(CC) -o $@ $^ | |
94 | |
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 # 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
|
97 # |
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 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
|
99 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
|
100 endif |