1
|
1
|
|
2 LIBNAME = libmpeg2.a
|
|
3
|
|
4 include ../config.mak
|
|
5
|
36
|
6 SRCS = header.c idct.c idct_mmx.c motion_comp.c motion_comp_mmx.c slice.c stats.c decode.c
|
|
7 OBJS = header.o idct.o idct_mmx.o motion_comp.o motion_comp_mmx.o slice.o stats.o decode.o
|
1
|
8 INCLUDE = -I. -I../libvo -I..
|
27
|
9 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY
|
1
|
10
|
|
11 .SUFFIXES: .c .o
|
|
12
|
|
13 # .PHONY: all clean
|
|
14
|
|
15 .c.o:
|
27
|
16 $(CC) -c $(CFLAGS) -o $@ $<
|
1
|
17
|
27
|
18 $(LIBNAME): .depend $(OBJS)
|
1
|
19 $(AR) r $(LIBNAME) $(OBJS)
|
|
20
|
|
21 all: $(LIBNAME)
|
|
22
|
|
23 clean:
|
|
24 rm -f *.o *.a *~
|
|
25
|
|
26 distclean:
|
27
|
27 rm -f Makefile.bak *.o *.a *~ .depend
|
1
|
28
|
27
|
29 dep: depend
|
|
30 depend: .depend
|
1
|
31
|
27
|
32 .depend: Makefile ../config.mak ../config.h
|
|
33 makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null
|
1
|
34
|
27
|
35 #
|
|
36 # include dependency files if they exist
|
|
37 #
|
|
38 ifneq ($(wildcard .depend),)
|
|
39 include .depend
|
|
40 endif
|