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