~ubuntu-branches/ubuntu/quantal/linphone/quantal

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/Makefile.orig

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-11-15 10:34:50 UTC
  • mfrom: (1.2.1 upstream) (2.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115103450-qgafwcks2lkhctlj
* New upstream release.
* Enable video support.
* Fix mismatched #endif in mscommon.h, closes: #398307.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include ../config.mak
2
 
 
3
 
CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H
4
 
LDFLAGS= -g
5
 
 
6
 
OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \
7
 
      mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \
8
 
      motion_est.o imgconvert.o imgresample.o msmpeg4.o \
9
 
      mpeg12.o h263dec.o rv10.o
10
 
ASM_OBJS=
11
 
 
12
 
# currently using libac3 for ac3 decoding
13
 
ifeq ($(CONFIG_AC3),yes)
14
 
OBJS+= ac3dec.o \
15
 
       libac3/bit_allocate.o libac3/bitstream.o libac3/downmix.o \
16
 
       libac3/imdct.o  libac3/parse.o
17
 
endif
18
 
 
19
 
# currently using mpglib for mpeg audio decoding
20
 
ifeq ($(CONFIG_MPGLIB),yes)
21
 
OBJS+= mpegaudiodec.o \
22
 
       mpglib/layer1.o mpglib/layer2.o mpglib/layer3.o \
23
 
       mpglib/dct64_i386.o mpglib/decode_i386.o  mpglib/tabinit.o
24
 
endif
25
 
 
26
 
# i386 mmx specific stuff
27
 
ifeq ($(TARGET_MMX),yes)
28
 
ASM_OBJS += i386/fdct_mmx.o i386/sad_mmx.o
29
 
OBJS += i386/fdctdata.o i386/cputest.o \
30
 
        i386/dsputil_mmx.o i386/mpegvideo_mmx.o \
31
 
        i386/idct_mmx.o
32
 
endif
33
 
 
34
 
# armv4l specific stuff
35
 
ifeq ($(TARGET_ARCH_ARMV4L),yes)
36
 
ASM_OBJS += armv4l/jrevdct_arm.o
37
 
OBJS += armv4l/dsputil_arm.o
38
 
endif
39
 
 
40
 
SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
41
 
 
42
 
LIB= libavcodec.a
43
 
TESTS= imgresample-test dct-test
44
 
 
45
 
all: $(LIB)
46
 
tests: apiexample cpuid_test $(TESTS)
47
 
 
48
 
$(LIB): $(OBJS) $(ASM_OBJS)
49
 
        rm -f $@
50
 
        $(AR) rcs $@ $(OBJS) $(ASM_OBJS)
51
 
 
52
 
dsputil.o: dsputil.c dsputil.h
53
 
 
54
 
%.o: %.c
55
 
        $(CC) $(CFLAGS) -c -o $@ $< 
56
 
 
57
 
%.o: %.S
58
 
        $(CC) $(CFLAGS) -c -o $@ $<
59
 
 
60
 
%.o: %.s
61
 
        nasm -f elf -o $@ $<
62
 
 
63
 
# depend only used by mplayer now
64
 
dep:    depend
65
 
 
66
 
depend:
67
 
        $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
68
 
 
69
 
clean: 
70
 
        rm -f *.o *~ *.a i386/*.o i386/*~ \
71
 
           armv4l/*.o armv4l/*~ \
72
 
           libac3/*.o libac3/*~ \
73
 
           mpglib/*.o mpglib/*~ \
74
 
           apiexample $(TESTS)
75
 
 
76
 
distclean: clean
77
 
        rm -f Makefile.bak .depend
78
 
 
79
 
# api example program
80
 
apiexample: apiexample.c $(LIB)
81
 
        $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm
82
 
 
83
 
# cpuid test
84
 
cpuid_test: i386/cputest.c
85
 
        $(CC) $(CFLAGS) -D__TEST__ -o $@ $<
86
 
 
87
 
# testing progs
88
 
 
89
 
imgresample-test: imgresample.c
90
 
        $(CC) $(CFLAGS) -DTEST -o $@ $^ 
91
 
 
92
 
dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o i386/fdctdata.o \
93
 
          fdctref.o jrevdct.o i386/idct_mmx.o
94
 
        $(CC) -o $@ $^
95
 
 
96
 
#
97
 
# include dependency files if they exist
98
 
#
99
 
ifneq ($(wildcard .depend),)
100
 
include .depend
101
 
endif