annotate Makefile @ 322:ce35fd27bbb0 libavcodec

- Versions defined for libav/libavcodec. - Bug fix in wav muxer for MP2 audio. - ffmpeg/libavcodec version in MPEG-4 user data.
author pulento
date Mon, 15 Apr 2002 02:28:05 +0000
parents 9c975237ec64
children 5cc47d0ba53e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
1 include ../config.mak
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
2
9
0dd0178a24c5 added mpegvideo_mmx.c - added HAVE_AV_CONFIG_H
glantau
parents: 8
diff changeset
3 CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
4 LDFLAGS= -g
986e461dc072 Initial revision
glantau
parents:
diff changeset
5
986e461dc072 Initial revision
glantau
parents:
diff changeset
6 OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \
23
1e131bc21101 added MJPEG decoder, renamed mjpegenc.c to mjpeg.c
glantau
parents: 22
diff changeset
7 mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
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
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
10 ASM_OBJS=
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
11
986e461dc072 Initial revision
glantau
parents:
diff changeset
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
986e461dc072 Initial revision
glantau
parents:
diff changeset
14 OBJS+= ac3dec.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
15 libac3/bit_allocate.o libac3/bitstream.o libac3/downmix.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
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
986e461dc072 Initial revision
glantau
parents:
diff changeset
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
986e461dc072 Initial revision
glantau
parents:
diff changeset
28 # i386 mmx specific stuff
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
29 ifeq ($(TARGET_MMX),yes)
74
d7603c46c52f suppressed nasm stuff
glantau
parents: 62
diff changeset
30 OBJS += i386/fdct_mmx.o i386/cputest.o \
32
a524484f9adf added idct mmx
glantau
parents: 23
diff changeset
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
986e461dc072 Initial revision
glantau
parents:
diff changeset
34 endif
986e461dc072 Initial revision
glantau
parents:
diff changeset
35
62
4bfc845cdfea arm optimizations
glantau
parents: 43
diff changeset
36 # armv4l specific stuff
4bfc845cdfea arm optimizations
glantau
parents: 43
diff changeset
37 ifeq ($(TARGET_ARCH_ARMV4L),yes)
4bfc845cdfea arm optimizations
glantau
parents: 43
diff changeset
38 ASM_OBJS += armv4l/jrevdct_arm.o
4bfc845cdfea arm optimizations
glantau
parents: 43
diff changeset
39 OBJS += armv4l/dsputil_arm.o
4bfc845cdfea arm optimizations
glantau
parents: 43
diff changeset
40 endif
4bfc845cdfea arm optimizations
glantau
parents: 43
diff changeset
41
88
06f63b58d2a8 mlib merge
glantau
parents: 81
diff changeset
42 # sun mediaLib specific stuff
06f63b58d2a8 mlib merge
glantau
parents: 81
diff changeset
43 # currently only works when libavcodec is used in mplayer
06f63b58d2a8 mlib merge
glantau
parents: 81
diff changeset
44 ifeq ($(HAVE_MLIB),yes)
06f63b58d2a8 mlib merge
glantau
parents: 81
diff changeset
45 OBJS += mlib/dsputil_mlib.o
06f63b58d2a8 mlib merge
glantau
parents: 81
diff changeset
46 CFLAGS += $(MLIB_INC)
06f63b58d2a8 mlib merge
glantau
parents: 81
diff changeset
47 endif
06f63b58d2a8 mlib merge
glantau
parents: 81
diff changeset
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
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
55 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
56
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
57 LIB= libavcodec.a
136
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
58 ifeq ($(BUILD_SHARED),yes)
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
59 SLIB= libffmpeg-$(VERSION).so
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
60 endif
74
d7603c46c52f suppressed nasm stuff
glantau
parents: 62
diff changeset
61 TESTS= imgresample-test dct-test motion-test
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
62
136
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
63 all: $(LIB) $(SLIB)
43
ab64a3fc62bf Portability and testing issues
nickols_k
parents: 32
diff changeset
64 tests: apiexample cpuid_test $(TESTS)
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
65
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
66 $(LIB): $(OBJS) $(ASM_OBJS)
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
67 rm -f $@
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
68 $(AR) rcs $@ $(OBJS) $(ASM_OBJS)
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
69
136
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
70 $(SLIB): $(OBJS) $(ASM_OBJS)
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
71 rm -f $@
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
72 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS)
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
73 ln -sf $@ libffmpeg.so
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
74 dsputil.o: dsputil.c dsputil.h
986e461dc072 Initial revision
glantau
parents:
diff changeset
75
986e461dc072 Initial revision
glantau
parents:
diff changeset
76 %.o: %.c
986e461dc072 Initial revision
glantau
parents:
diff changeset
77 $(CC) $(CFLAGS) -c -o $@ $<
986e461dc072 Initial revision
glantau
parents:
diff changeset
78
62
4bfc845cdfea arm optimizations
glantau
parents: 43
diff changeset
79 %.o: %.S
4bfc845cdfea arm optimizations
glantau
parents: 43
diff changeset
80 $(CC) $(CFLAGS) -c -o $@ $<
4bfc845cdfea arm optimizations
glantau
parents: 43
diff changeset
81
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
82 # depend only used by mplayer now
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
83 dep: depend
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
84
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
85 depend:
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
86 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
87
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
88 clean:
136
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
89 rm -f *.o *~ $(LIB) $(SLIB) *.so i386/*.o i386/*~ \
62
4bfc845cdfea arm optimizations
glantau
parents: 43
diff changeset
90 armv4l/*.o armv4l/*~ \
88
06f63b58d2a8 mlib merge
glantau
parents: 81
diff changeset
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
986e461dc072 Initial revision
glantau
parents:
diff changeset
93 libac3/*.o libac3/*~ \
986e461dc072 Initial revision
glantau
parents:
diff changeset
94 apiexample $(TESTS)
986e461dc072 Initial revision
glantau
parents:
diff changeset
95
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
96 distclean: clean
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
97 rm -f Makefile.bak .depend
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
98
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
99 # api example program
986e461dc072 Initial revision
glantau
parents:
diff changeset
100 apiexample: apiexample.c $(LIB)
986e461dc072 Initial revision
glantau
parents:
diff changeset
101 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm
986e461dc072 Initial revision
glantau
parents:
diff changeset
102
43
ab64a3fc62bf Portability and testing issues
nickols_k
parents: 32
diff changeset
103 # cpuid test
ab64a3fc62bf Portability and testing issues
nickols_k
parents: 32
diff changeset
104 cpuid_test: i386/cputest.c
ab64a3fc62bf Portability and testing issues
nickols_k
parents: 32
diff changeset
105 $(CC) $(CFLAGS) -D__TEST__ -o $@ $<
ab64a3fc62bf Portability and testing issues
nickols_k
parents: 32
diff changeset
106
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
107 # testing progs
986e461dc072 Initial revision
glantau
parents:
diff changeset
108
986e461dc072 Initial revision
glantau
parents:
diff changeset
109 imgresample-test: imgresample.c
986e461dc072 Initial revision
glantau
parents:
diff changeset
110 $(CC) $(CFLAGS) -DTEST -o $@ $^
986e461dc072 Initial revision
glantau
parents:
diff changeset
111
74
d7603c46c52f suppressed nasm stuff
glantau
parents: 62
diff changeset
112 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o \
32
a524484f9adf added idct mmx
glantau
parents: 23
diff changeset
113 fdctref.o jrevdct.o i386/idct_mmx.o
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
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
d7603c46c52f suppressed nasm stuff
glantau
parents: 62
diff changeset
116 motion-test: motion_test.o $(LIB)
d7603c46c52f suppressed nasm stuff
glantau
parents: 62
diff changeset
117 $(CC) -o $@ $^
d7603c46c52f suppressed nasm stuff
glantau
parents: 62
diff changeset
118
136
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
119 install: all
137
21532c56ed8b headers installation
nickols_k
parents: 136
diff changeset
120 # install -m 644 $(LIB) $(prefix)/lib
136
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
121 ifeq ($(BUILD_SHARED),yes)
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
122 install -s -m 755 $(SLIB) $(prefix)/lib
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
123 ln -sf $(prefix)/lib/$(SLIB) $(prefix)/lib/libffmpeg.so
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
124 ldconfig
137
21532c56ed8b headers installation
nickols_k
parents: 136
diff changeset
125 mkdir -p $(prefix)/include/libffmpeg
21532c56ed8b headers installation
nickols_k
parents: 136
diff changeset
126 install -m 644 avcodec.h $(prefix)/include/libffmpeg/avcodec.h
138
8b7772ef26a0 missing header
nickols_k
parents: 137
diff changeset
127 install -m 644 common.h $(prefix)/include/libffmpeg/common.h
136
669955525b67 Shared objects support
nickols_k
parents: 92
diff changeset
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