Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
483:97da217aed7f | 484:f8bbc8976247 |
---|---|
1 (binary file application/octet-stream, hash: 4a0e14ee4742d1074df4067cd7a3540476bc186b) | 1 # |
2 # libavcodec Makefile | |
3 # (c) 2000, 2001, 2002 Fabrice Bellard | |
4 # | |
5 include ../config.mak | |
6 | |
7 VPATH=$(SRC_PATH)/libavcodec | |
8 | |
9 # NOTE: -I.. is needed to include config.h | |
10 CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H -I.. | |
11 LDFLAGS= -g | |
12 | |
13 OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \ | |
14 mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \ | |
15 motion_est.o imgconvert.o imgresample.o msmpeg4.o \ | |
16 mpeg12.o h263dec.o rv10.o mpegaudiodec.o pcm.o simple_idct.o \ | |
17 ratecontrol.o | |
18 ASM_OBJS= | |
19 | |
20 # currently using liba52 for ac3 decoding | |
21 ifeq ($(CONFIG_AC3),yes) | |
22 OBJS+= a52dec.o | |
23 | |
24 # using builtin liba52 or runtime linked liba52.so.0 | |
25 ifneq ($(CONFIG_A52BIN),yes) | |
26 OBJS+= liba52/bit_allocate.o liba52/bitstream.o liba52/downmix.o \ | |
27 liba52/imdct.o liba52/parse.o | |
28 endif | |
29 endif | |
30 | |
31 ifeq ($(CONFIG_MP3LAME),yes) | |
32 OBJS += mp3lameaudio.o | |
33 EXTRALIBS += -lmp3lame | |
34 endif | |
35 | |
36 ifeq ($(TARGET_GPROF),yes) | |
37 CFLAGS+=-p | |
38 LDFLAGS+=-p | |
39 endif | |
40 | |
41 # i386 mmx specific stuff | |
42 ifeq ($(TARGET_MMX),yes) | |
43 OBJS += i386/fdct_mmx.o i386/cputest.o \ | |
44 i386/dsputil_mmx.o i386/mpegvideo_mmx.o \ | |
45 i386/idct_mmx.o i386/motion_est_mmx.o \ | |
46 i386/simple_idct_mmx.o | |
47 endif | |
48 | |
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 | |
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 | |
62 # alpha specific stuff | |
63 ifeq ($(TARGET_ARCH_ALPHA),yes) | |
64 OBJS += alpha/dsputil_alpha.o alpha/mpegvideo_alpha.o | |
65 CFLAGS += -Wa,-mpca56 | |
66 endif | |
67 | |
68 SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.s) | |
69 OBJS := $(OBJS) $(ASM_OBJS) | |
70 | |
71 LIB= libavcodec.a | |
72 ifeq ($(BUILD_SHARED),yes) | |
73 SLIB= libavcodec.so | |
74 endif | |
75 TESTS= imgresample-test dct-test motion-test | |
76 | |
77 all: $(LIB) $(SLIB) | |
78 | |
79 tests: apiexample cpuid_test $(TESTS) | |
80 | |
81 $(LIB): $(OBJS) | |
82 rm -f $@ | |
83 $(AR) rc $@ $(OBJS) | |
84 | |
85 $(SLIB): $(OBJS) | |
86 $(CC) -shared -o $@ $(OBJS) $(EXTRALIBS) | |
87 | |
88 dsputil.o: dsputil.c dsputil.h | |
89 | |
90 %.o: %.c | |
91 $(CC) $(CFLAGS) -c -o $@ $< | |
92 | |
93 %.o: %.S | |
94 $(CC) $(CFLAGS) -c -o $@ $< | |
95 | |
96 # depend only used by mplayer now | |
97 dep: depend | |
98 | |
99 depend: | |
100 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
101 | |
102 clean: | |
103 rm -f *.o *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \ | |
104 armv4l/*.o armv4l/*~ \ | |
105 mlib/*.o mlib/*~ \ | |
106 alpha/*.o alpha/*~ \ | |
107 liba52/*.o liba52/*~ \ | |
108 apiexample $(TESTS) | |
109 | |
110 distclean: clean | |
111 rm -f Makefile.bak .depend | |
112 | |
113 # api example program | |
114 apiexample: apiexample.c $(LIB) | |
115 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm | |
116 | |
117 # cpuid test | |
118 cpuid_test: i386/cputest.c | |
119 $(CC) $(CFLAGS) -D__TEST__ -o $@ $< | |
120 | |
121 # testing progs | |
122 | |
123 imgresample-test: imgresample.c | |
124 $(CC) $(CFLAGS) -DTEST -o $@ $^ | |
125 | |
126 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o \ | |
127 fdctref.o jrevdct.o i386/idct_mmx.o | |
128 $(CC) -o $@ $^ | |
129 | |
130 motion-test: motion_test.o $(LIB) | |
131 $(CC) -o $@ $^ | |
132 | |
133 install: all | |
134 # install -m 644 $(LIB) $(prefix)/lib | |
135 ifeq ($(BUILD_SHARED),yes) | |
136 install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so | |
137 ln -sf $(prefix)/lib/libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so | |
138 ldconfig | |
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 | |
142 endif | |
143 # | |
144 # include dependency files if they exist | |
145 # | |
146 ifneq ($(wildcard .depend),) | |
147 include .depend | |
148 endif |