annotate Makefile @ 2:2e2c46c87460 libavcodec

fixed config for direct mplayer build compatibility
author glantau
date Mon, 23 Jul 2001 20:06:54 +0000
parents 986e461dc072
children 1bdbd869c1f0
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
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
3 CFLAGS= $(OPTFLAGS) -Wall -g
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 \
986e461dc072 Initial revision
glantau
parents:
diff changeset
7 mpegaudio.o ac3enc.o mjpegenc.o resample.o dsputil.o \
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
986e461dc072 Initial revision
glantau
parents:
diff changeset
13 OBJS+= ac3dec.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
14 libac3/bit_allocate.o libac3/bitstream.o libac3/downmix.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
15 libac3/imdct.o libac3/parse.o
986e461dc072 Initial revision
glantau
parents:
diff changeset
16
986e461dc072 Initial revision
glantau
parents:
diff changeset
17 # currently using mpglib for mpeg audio decoding
986e461dc072 Initial revision
glantau
parents:
diff changeset
18 OBJS+= mpegaudiodec.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
19 mpglib/layer1.o mpglib/layer2.o mpglib/layer3.o \
986e461dc072 Initial revision
glantau
parents:
diff changeset
20 mpglib/dct64_i386.o mpglib/decode_i386.o mpglib/tabinit.o
986e461dc072 Initial revision
glantau
parents:
diff changeset
21
986e461dc072 Initial revision
glantau
parents:
diff changeset
22 # i386 mmx specific stuff
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
23 ifeq ($(TARGET_MMX),yes)
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
24 ASM_OBJS += i386/fdct_mmx.o i386/sad_mmx.o
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
25 OBJS += i386/fdctdata.o i386/cputest.o \
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
26 i386/dsputil_mmx.o
986e461dc072 Initial revision
glantau
parents:
diff changeset
27 endif
986e461dc072 Initial revision
glantau
parents:
diff changeset
28
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
29 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
30
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
31 LIB= libavcodec.a
986e461dc072 Initial revision
glantau
parents:
diff changeset
32 TESTS= imgresample-test dct-test
986e461dc072 Initial revision
glantau
parents:
diff changeset
33
986e461dc072 Initial revision
glantau
parents:
diff changeset
34 all: $(LIB) apiexample
986e461dc072 Initial revision
glantau
parents:
diff changeset
35
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
36 $(LIB): $(OBJS) $(ASM_OBJS)
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
37 rm -f $@
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
38 $(AR) rcs $@ $(OBJS) $(ASM_OBJS)
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
39
986e461dc072 Initial revision
glantau
parents:
diff changeset
40 dsputil.o: dsputil.c dsputil.h
986e461dc072 Initial revision
glantau
parents:
diff changeset
41
986e461dc072 Initial revision
glantau
parents:
diff changeset
42 %.o: %.c
986e461dc072 Initial revision
glantau
parents:
diff changeset
43 $(CC) $(CFLAGS) -c -o $@ $<
986e461dc072 Initial revision
glantau
parents:
diff changeset
44
986e461dc072 Initial revision
glantau
parents:
diff changeset
45 %.o: %.s
986e461dc072 Initial revision
glantau
parents:
diff changeset
46 nasm -f elf -o $@ $<
986e461dc072 Initial revision
glantau
parents:
diff changeset
47
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
48 # depend only used by mplayer now
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
49 dep: depend
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
50
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
51 depend:
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
52 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
53
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
54 clean:
986e461dc072 Initial revision
glantau
parents:
diff changeset
55 rm -f *.o *~ *.a i386/*.o i386/*~ \
986e461dc072 Initial revision
glantau
parents:
diff changeset
56 libac3/*.o libac3/*~ \
986e461dc072 Initial revision
glantau
parents:
diff changeset
57 mpglib/*.o mpglib/*~ \
986e461dc072 Initial revision
glantau
parents:
diff changeset
58 apiexample $(TESTS)
986e461dc072 Initial revision
glantau
parents:
diff changeset
59
2
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
60 distclean: clean
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
61 rm -f Makefile.bak .depend
2e2c46c87460 fixed config for direct mplayer build compatibility
glantau
parents: 0
diff changeset
62
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
63 # api example program
986e461dc072 Initial revision
glantau
parents:
diff changeset
64 apiexample: apiexample.c $(LIB)
986e461dc072 Initial revision
glantau
parents:
diff changeset
65 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm
986e461dc072 Initial revision
glantau
parents:
diff changeset
66
986e461dc072 Initial revision
glantau
parents:
diff changeset
67 # testing progs
986e461dc072 Initial revision
glantau
parents:
diff changeset
68
986e461dc072 Initial revision
glantau
parents:
diff changeset
69 imgresample-test: imgresample.c
986e461dc072 Initial revision
glantau
parents:
diff changeset
70 $(CC) $(CFLAGS) -DTEST -o $@ $^
986e461dc072 Initial revision
glantau
parents:
diff changeset
71
986e461dc072 Initial revision
glantau
parents:
diff changeset
72 dct-test: dct-test.o jfdctfst.o i386/fdct_mmx.o i386/fdctdata.o fdctref.o
986e461dc072 Initial revision
glantau
parents:
diff changeset
73 $(CC) -o $@ $^