Mercurial > libavcodec.hg
annotate Makefile @ 248:56ee684c48bb libavcodec
- H.263+ decoder support for Advanded INTRA Coding (buggy)
author | pulento |
---|---|
date | Mon, 18 Feb 2002 19:33:27 +0000 |
parents | 73df666cacc7 |
children | ddb1a0e94cf4 |
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 \ |
174
ac5075a55488
new IDCT code by Michael Niedermayer (michaelni@gmx.at) - #define SIMPLE_IDCT to enable
arpi_esp
parents:
138
diff
changeset
|
9 mpeg12.o h263dec.o rv10.o mpegaudiodec.o pcm.o simple_idct.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 \ |
174
ac5075a55488
new IDCT code by Michael Niedermayer (michaelni@gmx.at) - #define SIMPLE_IDCT to enable
arpi_esp
parents:
138
diff
changeset
|
23 i386/idct_mmx.o i386/motion_est_mmx.o \ |
ac5075a55488
new IDCT code by Michael Niedermayer (michaelni@gmx.at) - #define SIMPLE_IDCT to enable
arpi_esp
parents:
138
diff
changeset
|
24 i386/simple_idct_mmx.o |
0 | 25 endif |
26 | |
62 | 27 # armv4l specific stuff |
28 ifeq ($(TARGET_ARCH_ARMV4L),yes) | |
29 ASM_OBJS += armv4l/jrevdct_arm.o | |
30 OBJS += armv4l/dsputil_arm.o | |
31 endif | |
32 | |
88 | 33 # sun mediaLib specific stuff |
34 # currently only works when libavcodec is used in mplayer | |
35 ifeq ($(HAVE_MLIB),yes) | |
36 OBJS += mlib/dsputil_mlib.o | |
37 CFLAGS += $(MLIB_INC) | |
38 endif | |
39 | |
214
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
40 # alpha specific stuff |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
41 ifeq ($(TARGET_ARCH_ALPHA),yes) |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
42 OBJS += alpha/dsputil_alpha.o alpha/mpegvideo_alpha.o |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
43 CFLAGS += -Wa,-mpca56 |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
44 endif |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
45 |
2 | 46 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s) |
47 | |
0 | 48 LIB= libavcodec.a |
136 | 49 ifeq ($(BUILD_SHARED),yes) |
50 SLIB= libffmpeg-$(VERSION).so | |
51 endif | |
74 | 52 TESTS= imgresample-test dct-test motion-test |
0 | 53 |
136 | 54 all: $(LIB) $(SLIB) |
43 | 55 tests: apiexample cpuid_test $(TESTS) |
0 | 56 |
2 | 57 $(LIB): $(OBJS) $(ASM_OBJS) |
0 | 58 rm -f $@ |
2 | 59 $(AR) rcs $@ $(OBJS) $(ASM_OBJS) |
0 | 60 |
136 | 61 $(SLIB): $(OBJS) $(ASM_OBJS) |
62 rm -f $@ | |
63 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) | |
64 ln -sf $@ libffmpeg.so | |
0 | 65 dsputil.o: dsputil.c dsputil.h |
66 | |
67 %.o: %.c | |
68 $(CC) $(CFLAGS) -c -o $@ $< | |
69 | |
62 | 70 %.o: %.S |
71 $(CC) $(CFLAGS) -c -o $@ $< | |
72 | |
2 | 73 # depend only used by mplayer now |
74 dep: depend | |
75 | |
76 depend: | |
77 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
78 | |
0 | 79 clean: |
136 | 80 rm -f *.o *~ $(LIB) $(SLIB) *.so i386/*.o i386/*~ \ |
62 | 81 armv4l/*.o armv4l/*~ \ |
88 | 82 mlib/*.o mlib/*~ \ |
214
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
83 alpha/*.o alpha/*~ \ |
0 | 84 libac3/*.o libac3/*~ \ |
85 apiexample $(TESTS) | |
86 | |
2 | 87 distclean: clean |
88 rm -f Makefile.bak .depend | |
89 | |
0 | 90 # api example program |
91 apiexample: apiexample.c $(LIB) | |
92 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm | |
93 | |
43 | 94 # cpuid test |
95 cpuid_test: i386/cputest.c | |
96 $(CC) $(CFLAGS) -D__TEST__ -o $@ $< | |
97 | |
0 | 98 # testing progs |
99 | |
100 imgresample-test: imgresample.c | |
101 $(CC) $(CFLAGS) -DTEST -o $@ $^ | |
102 | |
74 | 103 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o \ |
32 | 104 fdctref.o jrevdct.o i386/idct_mmx.o |
0 | 105 $(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
|
106 |
74 | 107 motion-test: motion_test.o $(LIB) |
108 $(CC) -o $@ $^ | |
109 | |
136 | 110 install: all |
137 | 111 # install -m 644 $(LIB) $(prefix)/lib |
136 | 112 ifeq ($(BUILD_SHARED),yes) |
113 install -s -m 755 $(SLIB) $(prefix)/lib | |
114 ln -sf $(prefix)/lib/$(SLIB) $(prefix)/lib/libffmpeg.so | |
115 ldconfig | |
137 | 116 mkdir -p $(prefix)/include/libffmpeg |
117 install -m 644 avcodec.h $(prefix)/include/libffmpeg/avcodec.h | |
138 | 118 install -m 644 common.h $(prefix)/include/libffmpeg/common.h |
136 | 119 endif |
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
|
120 # |
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
|
121 # 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
|
122 # |
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
|
123 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
|
124 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
|
125 endif |