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