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