Mercurial > mplayer.hg
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 |
rev | line source |
---|---|
2444 | 1 |
2 include ../config.mak | |
3 | |
7946 | 4 SWSLIB = libswscale.a |
5 SPPLIB = libpostproc.so | |
6 SPPVERSION = 0.0.1 | |
7 PPLIB = libpostproc.a | |
2444 | 8 |
7946 | 9 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c |
10 SWSOBJS=$(SWSSRCS:.c=.o) | |
11 PPOBJS=postprocess.o | |
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 | 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 | 16 # -I/usr/X11R6/include/ |
17 | |
18 .SUFFIXES: .c .o | |
19 | |
20 # .PHONY: all clean | |
21 | |
22 .c.o: | |
23 $(CC) -c $(CFLAGS) -o $@ $< | |
24 | |
7946 | 25 all: $(SWSLIB) $(PPLIB) $(SPPLIB) |
2444 | 26 |
7946 | 27 $(SWSLIB): $(SWSOBJS) |
28 $(AR) r $(SWSLIB) $(SWSOBJS) | |
2444 | 29 |
30 clean: | |
7946 | 31 rm -f *.o *.a *~ *.so |
2444 | 32 |
33 distclean: | |
7946 | 34 rm -f Makefile.bak *.o *.a *~ *.so .depend |
2444 | 35 |
36 dep: depend | |
37 | |
38 depend: | |
39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
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 | 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 | |
2444 | 65 # |
66 # include dependency files if they exist | |
67 # | |
68 ifneq ($(wildcard .depend),) | |
69 include .depend | |
70 endif |