annotate libpostproc/Makefile @ 787:4914252c963a libavcodec

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:30:58 +0000
parents 015b33f3e750
children b9156f8e6747
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
1
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
2 include ../config.mak
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
3
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
4 SWSLIB = libswscale.a
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
5 SPPLIB = libpostproc.so
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
6 SPPVERSION = 0.0.1
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
7 PPLIB = libpostproc.a
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
8
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
9 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
10 SWSOBJS=$(SWSSRCS:.c=.o)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
11 PPOBJS=postprocess.o
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
12 SPPOBJS=postprocess_pic.o
508
8f9fa4ec9cbb colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 170
diff changeset
13 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
14
610
015b33f3e750 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 508
diff changeset
15 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
16 # -I/usr/X11R6/include/
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
17
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
18 .SUFFIXES: .c .o
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
19
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
20 # .PHONY: all clean
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
21
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
22 .c.o:
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
23 $(CC) -c $(CFLAGS) -o $@ $<
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
24
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
25 all: $(SWSLIB) $(PPLIB) $(SPPLIB)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
26
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
27 $(SWSLIB): $(SWSOBJS)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
28 $(AR) r $(SWSLIB) $(SWSOBJS)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
29
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
30 clean:
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
31 rm -f *.o *.a *~ *.so
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
32
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
33 distclean:
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
34 rm -f Makefile.bak *.o *.a *~ *.so .depend
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
35
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
36 dep: depend
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
37
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
38 depend:
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
40
508
8f9fa4ec9cbb colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 170
diff changeset
41 cs_test: $(CS_TEST_OBJS)
8f9fa4ec9cbb colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 170
diff changeset
42 $(CC) $(CS_TEST_OBJS) -o cs_test
8f9fa4ec9cbb colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 170
diff changeset
43
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
44 postprocess_pic.o: postprocess.c
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
45 $(CC) -c $(CFLAGS) -fPIC -DPIC -o $@ $<
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
46
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
47 $(SPPLIB): $(SPPOBJS)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
48 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
49 -o $(SPPLIB) $(SPPOBJS)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
50
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
51 $(PPLIB): $(PPOBJS)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
52 $(AR) r $(PPLIB) $(PPOBJS)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
53
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
54 install: all
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
55 ifeq ($(SHARED_PP),yes)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
56 install -d $(prefix)/lib
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
57 install -s -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
58 ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
59 ldconfig || true
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
60 mkdir -p $(prefix)/include/postproc
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
61 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
62 endif
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
63
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
64
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
65 #
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
66 # include dependency files if they exist
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
67 #
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
68 ifneq ($(wildcard .depend),)
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
69 include .depend
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
70 endif