annotate Makefile @ 43:ab64a3fc62bf libavcodec

Portability and testing issues
author nickols_k
date Wed, 08 Aug 2001 16:26:51 +0000
parents a524484f9adf
children 4bfc845cdfea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
1 include ../config.mak
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
2
9
0dd0178a24c5 added mpegvideo_mmx.c - added HAVE_AV_CONFIG_H
glantau
parents: 8
diff changeset
3 CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
4 LDFLAGS= -g
986e461dc072 Initial revision
glantau
parents:
diff changeset
5
986e461dc072 Initial revision
glantau
parents:
diff changeset
6 OBJS= common.o utils.o mpegvideo.o h263.o jrevdct.o jfdctfst.o \
23
1e131bc21101 added MJPEG decoder, renamed mjpegenc.c to mjpeg.c
glantau
parents: 22
diff changeset
7 mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
8 motion_est.o imgconvert.o imgresample.o msmpeg4.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
9 mpeg12.o h263dec.o rv10.o
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
10 ASM_OBJS=
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
11
986e461dc072 Initial revision
glantau
parents:
diff changeset
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
986e461dc072 Initial revision
glantau
parents:
diff changeset
14 OBJS+= ac3dec.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
15 libac3/bit_allocate.o libac3/bitstream.o libac3/downmix.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
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
986e461dc072 Initial revision
glantau
parents:
diff changeset
18
986e461dc072 Initial revision
glantau
parents:
diff changeset
19 # currently using mpglib for mpeg audio 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
20 ifeq ($(CONFIG_MPGLIB),yes)
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
21 OBJS+= mpegaudiodec.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
22 mpglib/layer1.o mpglib/layer2.o mpglib/layer3.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
23 mpglib/dct64_i386.o mpglib/decode_i386.o mpglib/tabinit.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
24 endif
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
25
986e461dc072 Initial revision
glantau
parents:
diff changeset
26 # i386 mmx specific stuff
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
27 ifeq ($(TARGET_MMX),yes)
22
c31fb57d17a6 Suppressing external gas stuff to improve portability to Win32
nickols_k
parents: 17
diff changeset
28 ASM_OBJS += i386/fdct_mmx.o i386/sad_mmx.o
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
29 OBJS += i386/fdctdata.o i386/cputest.o \
32
a524484f9adf added idct mmx
glantau
parents: 23
diff changeset
30 i386/dsputil_mmx.o i386/mpegvideo_mmx.o \
a524484f9adf added idct mmx
glantau
parents: 23
diff changeset
31 i386/idct_mmx.o
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
32 endif
986e461dc072 Initial revision
glantau
parents:
diff changeset
33
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
34 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
35
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
36 LIB= libavcodec.a
986e461dc072 Initial revision
glantau
parents:
diff changeset
37 TESTS= imgresample-test dct-test
986e461dc072 Initial revision
glantau
parents:
diff changeset
38
17
b69fe46fd708 Adding fastmemcpy stuff to speedup mplayer project
nickols_k
parents: 15
diff changeset
39 all: $(LIB)
43
ab64a3fc62bf Portability and testing issues
nickols_k
parents: 32
diff changeset
40 tests: apiexample cpuid_test $(TESTS)
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
41
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
42 $(LIB): $(OBJS) $(ASM_OBJS)
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
43 rm -f $@
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
44 $(AR) rcs $@ $(OBJS) $(ASM_OBJS)
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
45
986e461dc072 Initial revision
glantau
parents:
diff changeset
46 dsputil.o: dsputil.c dsputil.h
986e461dc072 Initial revision
glantau
parents:
diff changeset
47
986e461dc072 Initial revision
glantau
parents:
diff changeset
48 %.o: %.c
986e461dc072 Initial revision
glantau
parents:
diff changeset
49 $(CC) $(CFLAGS) -c -o $@ $<
986e461dc072 Initial revision
glantau
parents:
diff changeset
50
986e461dc072 Initial revision
glantau
parents:
diff changeset
51 %.o: %.s
986e461dc072 Initial revision
glantau
parents:
diff changeset
52 nasm -f elf -o $@ $<
986e461dc072 Initial revision
glantau
parents:
diff changeset
53
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
54 # depend only used by mplayer now
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
55 dep: depend
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
56
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
57 depend:
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
58 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
59
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
60 clean:
986e461dc072 Initial revision
glantau
parents:
diff changeset
61 rm -f *.o *~ *.a i386/*.o i386/*~ \
986e461dc072 Initial revision
glantau
parents:
diff changeset
62 libac3/*.o libac3/*~ \
986e461dc072 Initial revision
glantau
parents:
diff changeset
63 mpglib/*.o mpglib/*~ \
986e461dc072 Initial revision
glantau
parents:
diff changeset
64 apiexample $(TESTS)
986e461dc072 Initial revision
glantau
parents:
diff changeset
65
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
66 distclean: clean
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
67 rm -f Makefile.bak .depend
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
68
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
69 # api example program
986e461dc072 Initial revision
glantau
parents:
diff changeset
70 apiexample: apiexample.c $(LIB)
986e461dc072 Initial revision
glantau
parents:
diff changeset
71 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm
986e461dc072 Initial revision
glantau
parents:
diff changeset
72
43
ab64a3fc62bf Portability and testing issues
nickols_k
parents: 32
diff changeset
73 # cpuid test
ab64a3fc62bf Portability and testing issues
nickols_k
parents: 32
diff changeset
74 cpuid_test: i386/cputest.c
ab64a3fc62bf Portability and testing issues
nickols_k
parents: 32
diff changeset
75 $(CC) $(CFLAGS) -D__TEST__ -o $@ $<
ab64a3fc62bf Portability and testing issues
nickols_k
parents: 32
diff changeset
76
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
77 # testing progs
986e461dc072 Initial revision
glantau
parents:
diff changeset
78
986e461dc072 Initial revision
glantau
parents:
diff changeset
79 imgresample-test: imgresample.c
986e461dc072 Initial revision
glantau
parents:
diff changeset
80 $(CC) $(CFLAGS) -DTEST -o $@ $^
986e461dc072 Initial revision
glantau
parents:
diff changeset
81
32
a524484f9adf added idct mmx
glantau
parents: 23
diff changeset
82 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o i386/fdctdata.o \
a524484f9adf added idct mmx
glantau
parents: 23
diff changeset
83 fdctref.o jrevdct.o i386/idct_mmx.o
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
84 $(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
85
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
86 #
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
87 # 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
88 #
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
89 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
90 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
91 endif