Mercurial > libavcodec.hg
annotate Makefile @ 484:f8bbc8976247 libavcodec
in libavcodec/Makefile there is in line 110: "distclean: clean<binary char>"
this binary char corrupts the makefile and should be removed.
patch by Felix Buenemann <atmosfear@users.sourceforge.net>
author | arpi_esp |
---|---|
date | Fri, 07 Jun 2002 22:01:03 +0000 |
parents | 718a22dc121f |
children | b9fcdf9f4420 |
rev | line source |
---|---|
395 | 1 # |
2 # libavcodec Makefile | |
429 | 3 # (c) 2000, 2001, 2002 Fabrice Bellard |
395 | 4 # |
2 | 5 include ../config.mak |
6 | |
395 | 7 VPATH=$(SRC_PATH)/libavcodec |
8 | |
429 | 9 # NOTE: -I.. is needed to include config.h |
10 CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H -I.. | |
0 | 11 LDFLAGS= -g |
12 | |
13 OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \ | |
23 | 14 mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \ |
0 | 15 motion_est.o imgconvert.o imgresample.o msmpeg4.o \ |
329 | 16 mpeg12.o h263dec.o rv10.o mpegaudiodec.o pcm.o simple_idct.o \ |
17 ratecontrol.o | |
2 | 18 ASM_OBJS= |
0 | 19 |
338 | 20 # 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
|
21 ifeq ($(CONFIG_AC3),yes) |
338 | 22 OBJS+= a52dec.o |
23 | |
24 # using builtin liba52 or runtime linked liba52.so.0 | |
429 | 25 ifneq ($(CONFIG_A52BIN),yes) |
338 | 26 OBJS+= liba52/bit_allocate.o liba52/bitstream.o liba52/downmix.o \ |
27 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
|
28 endif |
429 | 29 endif |
0 | 30 |
258
9c975237ec64
- Added MP3 encoding through libmp3lame contributed by Lennert Buytenhek.
pulento
parents:
252
diff
changeset
|
31 ifeq ($(CONFIG_MP3LAME),yes) |
9c975237ec64
- Added MP3 encoding through libmp3lame contributed by Lennert Buytenhek.
pulento
parents:
252
diff
changeset
|
32 OBJS += mp3lameaudio.o |
348 | 33 EXTRALIBS += -lmp3lame |
258
9c975237ec64
- Added MP3 encoding through libmp3lame contributed by Lennert Buytenhek.
pulento
parents:
252
diff
changeset
|
34 endif |
9c975237ec64
- Added MP3 encoding through libmp3lame contributed by Lennert Buytenhek.
pulento
parents:
252
diff
changeset
|
35 |
252
ddb1a0e94cf4
- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
pulento
parents:
214
diff
changeset
|
36 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
|
37 CFLAGS+=-p |
ddb1a0e94cf4
- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
pulento
parents:
214
diff
changeset
|
38 LDFLAGS+=-p |
ddb1a0e94cf4
- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
pulento
parents:
214
diff
changeset
|
39 endif |
ddb1a0e94cf4
- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
pulento
parents:
214
diff
changeset
|
40 |
0 | 41 # i386 mmx specific stuff |
2 | 42 ifeq ($(TARGET_MMX),yes) |
74 | 43 OBJS += i386/fdct_mmx.o i386/cputest.o \ |
32 | 44 i386/dsputil_mmx.o i386/mpegvideo_mmx.o \ |
338 | 45 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
|
46 i386/simple_idct_mmx.o |
0 | 47 endif |
48 | |
62 | 49 # armv4l specific stuff |
50 ifeq ($(TARGET_ARCH_ARMV4L),yes) | |
51 ASM_OBJS += armv4l/jrevdct_arm.o | |
52 OBJS += armv4l/dsputil_arm.o | |
53 endif | |
54 | |
88 | 55 # sun mediaLib specific stuff |
56 # currently only works when libavcodec is used in mplayer | |
57 ifeq ($(HAVE_MLIB),yes) | |
58 OBJS += mlib/dsputil_mlib.o | |
59 CFLAGS += $(MLIB_INC) | |
60 endif | |
61 | |
214
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
62 # alpha specific stuff |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
63 ifeq ($(TARGET_ARCH_ALPHA),yes) |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
64 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
|
65 CFLAGS += -Wa,-mpca56 |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
66 endif |
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
67 |
429 | 68 SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.s) |
69 OBJS := $(OBJS) $(ASM_OBJS) | |
2 | 70 |
0 | 71 LIB= libavcodec.a |
136 | 72 ifeq ($(BUILD_SHARED),yes) |
429 | 73 SLIB= libavcodec.so |
136 | 74 endif |
74 | 75 TESTS= imgresample-test dct-test motion-test |
0 | 76 |
136 | 77 all: $(LIB) $(SLIB) |
429 | 78 |
43 | 79 tests: apiexample cpuid_test $(TESTS) |
0 | 80 |
429 | 81 $(LIB): $(OBJS) |
0 | 82 rm -f $@ |
429 | 83 $(AR) rc $@ $(OBJS) |
0 | 84 |
429 | 85 $(SLIB): $(OBJS) |
86 $(CC) -shared -o $@ $(OBJS) $(EXTRALIBS) | |
87 | |
0 | 88 dsputil.o: dsputil.c dsputil.h |
89 | |
90 %.o: %.c | |
91 $(CC) $(CFLAGS) -c -o $@ $< | |
92 | |
62 | 93 %.o: %.S |
94 $(CC) $(CFLAGS) -c -o $@ $< | |
95 | |
2 | 96 # depend only used by mplayer now |
97 dep: depend | |
98 | |
99 depend: | |
100 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
101 | |
0 | 102 clean: |
343 | 103 rm -f *.o *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \ |
62 | 104 armv4l/*.o armv4l/*~ \ |
88 | 105 mlib/*.o mlib/*~ \ |
214
73df666cacc7
Alpha optimizations by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
nickols_k
parents:
174
diff
changeset
|
106 alpha/*.o alpha/*~ \ |
338 | 107 liba52/*.o liba52/*~ \ |
108 apiexample $(TESTS) | |
0 | 109 |
484
f8bbc8976247
in libavcodec/Makefile there is in line 110: "distclean: clean<binary char>"
arpi_esp
parents:
429
diff
changeset
|
110 distclean: clean |
2 | 111 rm -f Makefile.bak .depend |
112 | |
0 | 113 # api example program |
114 apiexample: apiexample.c $(LIB) | |
115 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm | |
116 | |
43 | 117 # cpuid test |
118 cpuid_test: i386/cputest.c | |
119 $(CC) $(CFLAGS) -D__TEST__ -o $@ $< | |
120 | |
0 | 121 # testing progs |
122 | |
123 imgresample-test: imgresample.c | |
124 $(CC) $(CFLAGS) -DTEST -o $@ $^ | |
125 | |
74 | 126 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o \ |
32 | 127 fdctref.o jrevdct.o i386/idct_mmx.o |
0 | 128 $(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
|
129 |
74 | 130 motion-test: motion_test.o $(LIB) |
131 $(CC) -o $@ $^ | |
132 | |
136 | 133 install: all |
137 | 134 # install -m 644 $(LIB) $(prefix)/lib |
136 | 135 ifeq ($(BUILD_SHARED),yes) |
429 | 136 install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so |
137 ln -sf $(prefix)/lib/libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so | |
136 | 138 ldconfig |
429 | 139 mkdir -p $(prefix)/include/ffmpeg |
140 install -m 644 avcodec.h $(prefix)/include/ffmpeg/avcodec.h | |
141 install -m 644 common.h $(prefix)/include/ffmpeg/common.h | |
136 | 142 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
|
143 # |
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
|
144 # 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
|
145 # |
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
|
146 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
|
147 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
|
148 endif |