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