Mercurial > libavcodec.hg
annotate Makefile @ 347:3c5266cda02d libavcodec
fixing msmpeg4v3 dc-scale for quantizers 24-31
author | michaelni |
---|---|
date | Tue, 30 Apr 2002 01:29:29 +0000 |
parents | 9211a0c9466a |
children | ae9e9af0b627 |
rev | line source |
---|---|
2 | 1 include ../config.mak |
2 | |
340 | 3 CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H -I. -I.. |
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 \ |
329 | 9 mpeg12.o h263dec.o rv10.o mpegaudiodec.o pcm.o simple_idct.o \ |
10 ratecontrol.o | |
2 | 11 ASM_OBJS= |
0 | 12 |
338 | 13 # currently using liba52 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
|
14 ifeq ($(CONFIG_AC3),yes) |
338 | 15 OBJS+= a52dec.o |
16 endif | |
17 | |
18 # using builtin liba52 or runtime linked liba52.so.0 | |
19 ifeq ($(CONFIG_A52BIN),no) | |
20 OBJS+= liba52/bit_allocate.o liba52/bitstream.o liba52/downmix.o \ | |
21 liba52/imdct.o liba52/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
|
22 endif |
0 | 23 |
258
9c975237ec64
- Added MP3 encoding through libmp3lame contributed by Lennert Buytenhek.
pulento
parents:
252
diff
changeset
|
24 ifeq ($(CONFIG_MP3LAME),yes) |
9c975237ec64
- Added MP3 encoding through libmp3lame contributed by Lennert Buytenhek.
pulento
parents:
252
diff
changeset
|
25 OBJS += mp3lameaudio.o |
9c975237ec64
- Added MP3 encoding through libmp3lame contributed by Lennert Buytenhek.
pulento
parents:
252
diff
changeset
|
26 endif |
9c975237ec64
- Added MP3 encoding through libmp3lame contributed by Lennert Buytenhek.
pulento
parents:
252
diff
changeset
|
27 |
252
ddb1a0e94cf4
- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
pulento
parents:
214
diff
changeset
|
28 ifeq ($(TARGET_GPROF),yes) |
ddb1a0e94cf4
- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
pulento
parents:
214
diff
changeset
|
29 CFLAGS+=-p |
ddb1a0e94cf4
- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
pulento
parents:
214
diff
changeset
|
30 LDFLAGS+=-p |
ddb1a0e94cf4
- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
pulento
parents:
214
diff
changeset
|
31 endif |
ddb1a0e94cf4
- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
pulento
parents:
214
diff
changeset
|
32 |
0 | 33 # i386 mmx specific stuff |
2 | 34 ifeq ($(TARGET_MMX),yes) |
74 | 35 OBJS += i386/fdct_mmx.o i386/cputest.o \ |
32 | 36 i386/dsputil_mmx.o i386/mpegvideo_mmx.o \ |
338 | 37 i386/idct_mmx.o i386/motion_est_mmx.o \ |
174
ac5075a55488
new IDCT code by Michael Niedermayer (michaelni@gmx.at) - #define SIMPLE_IDCT to enable
arpi_esp
parents:
138
diff
changeset
|
38 i386/simple_idct_mmx.o |
0 | 39 endif |
40 | |
62 | 41 # armv4l specific stuff |
42 ifeq ($(TARGET_ARCH_ARMV4L),yes) | |
43 ASM_OBJS += armv4l/jrevdct_arm.o | |
44 OBJS += armv4l/dsputil_arm.o | |
45 endif | |
46 | |
88 | 47 # sun mediaLib specific stuff |
48 # currently only works when libavcodec is used in mplayer | |
49 ifeq ($(HAVE_MLIB),yes) | |
50 OBJS += mlib/dsputil_mlib.o | |
51 CFLAGS += $(MLIB_INC) | |
52 endif | |
53 | |
214
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
54 # alpha specific stuff |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
55 ifeq ($(TARGET_ARCH_ALPHA),yes) |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
56 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
|
57 CFLAGS += -Wa,-mpca56 |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
58 endif |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
59 |
2 | 60 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s) |
61 | |
0 | 62 LIB= libavcodec.a |
136 | 63 ifeq ($(BUILD_SHARED),yes) |
64 SLIB= libffmpeg-$(VERSION).so | |
65 endif | |
74 | 66 TESTS= imgresample-test dct-test motion-test |
0 | 67 |
136 | 68 all: $(LIB) $(SLIB) |
43 | 69 tests: apiexample cpuid_test $(TESTS) |
0 | 70 |
2 | 71 $(LIB): $(OBJS) $(ASM_OBJS) |
0 | 72 rm -f $@ |
2 | 73 $(AR) rcs $@ $(OBJS) $(ASM_OBJS) |
0 | 74 |
136 | 75 $(SLIB): $(OBJS) $(ASM_OBJS) |
76 rm -f $@ | |
77 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) | |
78 ln -sf $@ libffmpeg.so | |
0 | 79 dsputil.o: dsputil.c dsputil.h |
80 | |
81 %.o: %.c | |
82 $(CC) $(CFLAGS) -c -o $@ $< | |
83 | |
62 | 84 %.o: %.S |
85 $(CC) $(CFLAGS) -c -o $@ $< | |
86 | |
2 | 87 # depend only used by mplayer now |
88 dep: depend | |
89 | |
90 depend: | |
91 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
92 | |
0 | 93 clean: |
343 | 94 rm -f *.o *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \ |
62 | 95 armv4l/*.o armv4l/*~ \ |
88 | 96 mlib/*.o mlib/*~ \ |
214
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
97 alpha/*.o alpha/*~ \ |
338 | 98 liba52/*.o liba52/*~ \ |
99 apiexample $(TESTS) | |
0 | 100 |
2 | 101 distclean: clean |
102 rm -f Makefile.bak .depend | |
103 | |
0 | 104 # api example program |
105 apiexample: apiexample.c $(LIB) | |
106 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm | |
107 | |
43 | 108 # cpuid test |
109 cpuid_test: i386/cputest.c | |
110 $(CC) $(CFLAGS) -D__TEST__ -o $@ $< | |
111 | |
0 | 112 # testing progs |
113 | |
114 imgresample-test: imgresample.c | |
115 $(CC) $(CFLAGS) -DTEST -o $@ $^ | |
116 | |
74 | 117 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o \ |
32 | 118 fdctref.o jrevdct.o i386/idct_mmx.o |
0 | 119 $(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
|
120 |
74 | 121 motion-test: motion_test.o $(LIB) |
122 $(CC) -o $@ $^ | |
123 | |
136 | 124 install: all |
137 | 125 # install -m 644 $(LIB) $(prefix)/lib |
136 | 126 ifeq ($(BUILD_SHARED),yes) |
127 install -s -m 755 $(SLIB) $(prefix)/lib | |
128 ln -sf $(prefix)/lib/$(SLIB) $(prefix)/lib/libffmpeg.so | |
129 ldconfig | |
137 | 130 mkdir -p $(prefix)/include/libffmpeg |
131 install -m 644 avcodec.h $(prefix)/include/libffmpeg/avcodec.h | |
138 | 132 install -m 644 common.h $(prefix)/include/libffmpeg/common.h |
136 | 133 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
|
134 # |
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
|
135 # 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
|
136 # |
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
|
137 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
|
138 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
|
139 endif |