Mercurial > libavcodec.hg
annotate Makefile @ 212:80edc2aaff86 libavcodec
Added reverting support for -pp and -npp options
author | albeu |
---|---|
date | Sat, 19 Jan 2002 17:01:03 +0000 |
parents | ac5075a55488 |
children | 73df666cacc7 |
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 |
19 # i386 mmx specific stuff | |
2 | 20 ifeq ($(TARGET_MMX),yes) |
74 | 21 OBJS += i386/fdct_mmx.o i386/cputest.o \ |
32 | 22 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
|
23 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
|
24 i386/simple_idct_mmx.o |
0 | 25 endif |
26 | |
62 | 27 # armv4l specific stuff |
28 ifeq ($(TARGET_ARCH_ARMV4L),yes) | |
29 ASM_OBJS += armv4l/jrevdct_arm.o | |
30 OBJS += armv4l/dsputil_arm.o | |
31 endif | |
32 | |
88 | 33 # sun mediaLib specific stuff |
34 # currently only works when libavcodec is used in mplayer | |
35 ifeq ($(HAVE_MLIB),yes) | |
36 OBJS += mlib/dsputil_mlib.o | |
37 CFLAGS += $(MLIB_INC) | |
38 endif | |
39 | |
2 | 40 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s) |
41 | |
0 | 42 LIB= libavcodec.a |
136 | 43 ifeq ($(BUILD_SHARED),yes) |
44 SLIB= libffmpeg-$(VERSION).so | |
45 endif | |
74 | 46 TESTS= imgresample-test dct-test motion-test |
0 | 47 |
136 | 48 all: $(LIB) $(SLIB) |
43 | 49 tests: apiexample cpuid_test $(TESTS) |
0 | 50 |
2 | 51 $(LIB): $(OBJS) $(ASM_OBJS) |
0 | 52 rm -f $@ |
2 | 53 $(AR) rcs $@ $(OBJS) $(ASM_OBJS) |
0 | 54 |
136 | 55 $(SLIB): $(OBJS) $(ASM_OBJS) |
56 rm -f $@ | |
57 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) | |
58 ln -sf $@ libffmpeg.so | |
0 | 59 dsputil.o: dsputil.c dsputil.h |
60 | |
61 %.o: %.c | |
62 $(CC) $(CFLAGS) -c -o $@ $< | |
63 | |
62 | 64 %.o: %.S |
65 $(CC) $(CFLAGS) -c -o $@ $< | |
66 | |
2 | 67 # depend only used by mplayer now |
68 dep: depend | |
69 | |
70 depend: | |
71 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
72 | |
0 | 73 clean: |
136 | 74 rm -f *.o *~ $(LIB) $(SLIB) *.so i386/*.o i386/*~ \ |
62 | 75 armv4l/*.o armv4l/*~ \ |
88 | 76 mlib/*.o mlib/*~ \ |
0 | 77 libac3/*.o libac3/*~ \ |
78 apiexample $(TESTS) | |
79 | |
2 | 80 distclean: clean |
81 rm -f Makefile.bak .depend | |
82 | |
0 | 83 # api example program |
84 apiexample: apiexample.c $(LIB) | |
85 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm | |
86 | |
43 | 87 # cpuid test |
88 cpuid_test: i386/cputest.c | |
89 $(CC) $(CFLAGS) -D__TEST__ -o $@ $< | |
90 | |
0 | 91 # testing progs |
92 | |
93 imgresample-test: imgresample.c | |
94 $(CC) $(CFLAGS) -DTEST -o $@ $^ | |
95 | |
74 | 96 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o \ |
32 | 97 fdctref.o jrevdct.o i386/idct_mmx.o |
0 | 98 $(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
|
99 |
74 | 100 motion-test: motion_test.o $(LIB) |
101 $(CC) -o $@ $^ | |
102 | |
136 | 103 install: all |
137 | 104 # install -m 644 $(LIB) $(prefix)/lib |
136 | 105 ifeq ($(BUILD_SHARED),yes) |
106 install -s -m 755 $(SLIB) $(prefix)/lib | |
107 ln -sf $(prefix)/lib/$(SLIB) $(prefix)/lib/libffmpeg.so | |
108 ldconfig | |
137 | 109 mkdir -p $(prefix)/include/libffmpeg |
110 install -m 644 avcodec.h $(prefix)/include/libffmpeg/avcodec.h | |
138 | 111 install -m 644 common.h $(prefix)/include/libffmpeg/common.h |
136 | 112 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
|
113 # |
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
|
114 # 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
|
115 # |
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 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
|
117 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
|
118 endif |