5 ifeq ($(SHARED_PP),yes)
6 SPPLIB = libpostproc.so
11 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
12 SWSOBJS=$(SWSSRCS:.c=.o)
14 SPPOBJS=postprocess_pic.o
15 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o
17 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
18 # -I/usr/X11R6/include/
25 $(CC) -c $(CFLAGS) -o $@ $<
27 all: $(SWSLIB) $(PPLIB) $(SPPLIB)
30 $(AR) r $(SWSLIB) $(SWSOBJS)
36 rm -f Makefile.bak *.o *.a *~ *.so .depend
41 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
43 cs_test: $(CS_TEST_OBJS)
44 $(CC) $(CS_TEST_OBJS) -o cs_test
46 ifeq ($(SHARED_PP),yes)
47 postprocess_pic.o: postprocess.c
48 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $<
51 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \
52 -o $(SPPLIB) $(SPPOBJS)
56 $(AR) r $(PPLIB) $(PPOBJS)
59 ifeq ($(SHARED_PP),yes)
60 install -d $(prefix)/lib
61 install -s -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION)
62 ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB)
64 mkdir -p $(prefix)/include/postproc
65 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
70 # include dependency files if they exist
72 ifneq ($(wildcard .depend),)