comparison postproc/Makefile @ 7946:f483ab704252

postprocessing cleanup: remove opendivx #ifdefs remove rk1 filter remove unused / obsolete stuff add -1,4,2,4,-1 deinterlacing filter (ffmpeg uses that) threadsafe / no more non-const globals some optimizations different strides for Y,U,V possible remove ebx usage (someone really should fix gcc, this is really lame) change the dering filter slightly (tell me if its worse for any files)
author michael
date Mon, 28 Oct 2002 19:31:04 +0000
parents b69ddd4d3bb9
children 2d04cdfd7186
comparison
equal deleted inserted replaced
7945:32939f2b3d2e 7946:f483ab704252
1 1
2 include ../config.mak 2 include ../config.mak
3 3
4 LIBNAME = libpostproc.a 4 SWSLIB = libswscale.a
5 SPPLIB = libpostproc.so
6 SPPVERSION = 0.0.1
7 PPLIB = libpostproc.a
5 8
6 SRCS=postprocess.c swscale.c rgb2rgb.c yuv2rgb.c 9 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
7 OBJS=$(SRCS:.c=.o) 10 SWSOBJS=$(SWSSRCS:.c=.o)
11 PPOBJS=postprocess.o
12 SPPOBJS=postprocess_pic.o
8 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o 13 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o
9 14
10 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) 15 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
11 # -I/usr/X11R6/include/ 16 # -I/usr/X11R6/include/
12 17
15 # .PHONY: all clean 20 # .PHONY: all clean
16 21
17 .c.o: 22 .c.o:
18 $(CC) -c $(CFLAGS) -o $@ $< 23 $(CC) -c $(CFLAGS) -o $@ $<
19 24
20 $(LIBNAME): $(OBJS) 25 all: $(SWSLIB) $(PPLIB) $(SPPLIB)
21 $(AR) r $(LIBNAME) $(OBJS)
22 26
23 all: $(LIBNAME) 27 $(SWSLIB): $(SWSOBJS)
28 $(AR) r $(SWSLIB) $(SWSOBJS)
24 29
25 clean: 30 clean:
26 rm -f *.o *.a *~ 31 rm -f *.o *.a *~ *.so
27 32
28 distclean: 33 distclean:
29 rm -f Makefile.bak *.o *.a *~ .depend 34 rm -f Makefile.bak *.o *.a *~ *.so .depend
30 35
31 dep: depend 36 dep: depend
32 37
33 depend: 38 depend:
34 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend 39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
35 40
36 cs_test: $(CS_TEST_OBJS) 41 cs_test: $(CS_TEST_OBJS)
37 $(CC) $(CS_TEST_OBJS) -o cs_test 42 $(CC) $(CS_TEST_OBJS) -o cs_test
38 43
44 postprocess_pic.o: postprocess.c
45 $(CC) -c $(CFLAGS) -fPIC -DPIC -o $@ $<
46
47 $(SPPLIB): $(SPPOBJS)
48 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \
49 -o $(SPPLIB) $(SPPOBJS)
50
51 $(PPLIB): $(PPOBJS)
52 $(AR) r $(PPLIB) $(PPOBJS)
53
54 install: all
55 ifeq ($(SHARED_PP),yes)
56 install -d $(prefix)/lib
57 install -s -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION)
58 ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB)
59 ldconfig || true
60 mkdir -p $(prefix)/include/postproc
61 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
62 endif
63
64
39 # 65 #
40 # include dependency files if they exist 66 # include dependency files if they exist
41 # 67 #
42 ifneq ($(wildcard .depend),) 68 ifneq ($(wildcard .depend),)
43 include .depend 69 include .depend