comparison postproc/Makefile @ 9426:c9dcb67e9638

moving postprocess code to libavcodec
author michael
date Fri, 14 Feb 2003 21:45:45 +0000
parents 1e8f3293a822
children 98712065a08d
comparison
equal deleted inserted replaced
9425:65e039218384 9426:c9dcb67e9638
1 1
2 include ../config.mak 2 include ../config.mak
3 3
4 SWSLIB = libswscale.a 4 SWSLIB = libswscale.a
5 ifeq ($(SHARED_PP),yes)
6 SPPLIB = libpostproc.so
7 SPPVERSION = 0.0.1
8 endif
9 PPLIB = libpostproc.a
10 5
11 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c 6 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
12 SWSOBJS=$(SWSSRCS:.c=.o) 7 SWSOBJS=$(SWSSRCS:.c=.o)
13 PPOBJS=postprocess.o
14 SPPOBJS=postprocess_pic.o
15 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o ../libvo/aclib.o 8 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o ../libvo/aclib.o
16 9
17 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) 10 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
18 # -I/usr/X11R6/include/ 11 # -I/usr/X11R6/include/
19 12
22 # .PHONY: all clean 15 # .PHONY: all clean
23 16
24 .c.o: 17 .c.o:
25 $(CC) -c $(CFLAGS) -I.. -o $@ $< 18 $(CC) -c $(CFLAGS) -I.. -o $@ $<
26 19
27 all: $(SWSLIB) $(PPLIB) $(SPPLIB) 20 all: $(SWSLIB)
28 21
29 $(SWSLIB): $(SWSOBJS) 22 $(SWSLIB): $(SWSOBJS)
30 $(AR) r $(SWSLIB) $(SWSOBJS) 23 $(AR) r $(SWSLIB) $(SWSOBJS)
31 24
32 clean: 25 clean:
41 $(CC) -MM $(CFLAGS) $(SWSSRCS) postprocess.c 1>.depend 34 $(CC) -MM $(CFLAGS) $(SWSSRCS) postprocess.c 1>.depend
42 35
43 cs_test: $(CS_TEST_OBJS) 36 cs_test: $(CS_TEST_OBJS)
44 $(CC) $(CS_TEST_OBJS) -o cs_test 37 $(CC) $(CS_TEST_OBJS) -o cs_test
45 38
46 ifeq ($(SHARED_PP),yes)
47 postprocess_pic.o: postprocess.c
48 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -o $@ $<
49
50 $(SPPLIB): $(SPPOBJS)
51 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \
52 -o $(SPPLIB) $(SPPOBJS)
53 endif
54
55 $(PPLIB): $(PPOBJS)
56 $(AR) r $(PPLIB) $(PPOBJS)
57
58 install: all
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)
63 ldconfig || true
64 mkdir -p $(prefix)/include/postproc
65 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
66 endif
67
68
69 # 39 #
70 # include dependency files if they exist 40 # include dependency files if they exist
71 # 41 #
72 ifneq ($(wildcard .depend),) 42 ifneq ($(wildcard .depend),)
73 include .depend 43 include .depend