~ubuntu-branches/ubuntu/vivid/linphone/vivid

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/Makefile.libtool

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