127
|
1
|
|
2 include ../config.mak
|
|
3
|
|
4 LIBNAME = libpostproc.a
|
|
5
|
147
|
6 SRCS=postprocess.c swscale.c rgb2rgb.c yuv2rgb.c
|
127
|
7 OBJS=$(SRCS:.c=.o)
|
|
8
|
147
|
9 ifeq ($(TARGET_ARCH_X86),yes)
|
|
10 SRCS += yuv2rgb_mmx.c
|
|
11 endif
|
|
12
|
|
13 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. -Wall
|
127
|
14 # -I/usr/X11R6/include/
|
|
15
|
|
16 .SUFFIXES: .c .o
|
|
17
|
|
18 # .PHONY: all clean
|
|
19
|
|
20 .c.o:
|
|
21 $(CC) -c $(CFLAGS) -o $@ $<
|
|
22
|
|
23 $(LIBNAME): $(OBJS)
|
|
24 $(AR) r $(LIBNAME) $(OBJS)
|
|
25
|
|
26 all: $(LIBNAME)
|
|
27
|
|
28 clean:
|
|
29 rm -f *.o *.a *~
|
|
30
|
|
31 distclean:
|
|
32 rm -f Makefile.bak *.o *.a *~ .depend
|
|
33
|
|
34 dep: depend
|
|
35
|
|
36 depend:
|
|
37 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
38
|
|
39 #
|
|
40 # include dependency files if they exist
|
|
41 #
|
|
42 ifneq ($(wildcard .depend),)
|
|
43 include .depend
|
|
44 endif
|