annotate libpostproc/Makefile @ 1752:9f47c2211da9 libavcodec

more tolerance for dc=0
author michael
date Wed, 21 Jan 2004 19:14:26 +0000
parents db903b6fd197
children 680868144447
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
1
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents: 1067
diff changeset
2 include ../../config.mak
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
3
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
4 ifeq ($(SHARED_PP),yes)
787
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
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
7 endif
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
8 PPLIB = libpostproc.a
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
9
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
10 PPOBJS=postprocess.o
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
11 SPPOBJS=postprocess_pic.o
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
12
610
015b33f3e750 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 508
diff changeset
13 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
14 # -I/usr/X11R6/include/
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
15
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
16 .SUFFIXES: .c .o
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
17
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
18 # .PHONY: all clean
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
19
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
20 .c.o:
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents: 1067
diff changeset
21 $(CC) -c $(CFLAGS) -I.. -I../.. -o $@ $<
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
22
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
23 all: $(SWSLIB) $(PPLIB) $(SPPLIB)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
24
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
25 clean:
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
26 rm -f *.o *.a *~ *.so
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
27
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
28 distclean:
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
29 rm -f Makefile.bak *.o *.a *~ *.so .depend
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
30
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
31 dep: depend
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
32
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
33 depend:
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents: 1067
diff changeset
34 $(CC) -MM $(CFLAGS) postprocess.c 1>.depend
508
8f9fa4ec9cbb colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 170
diff changeset
35
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
36 ifeq ($(SHARED_PP),yes)
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
37 postprocess_pic.o: postprocess.c
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents: 1067
diff changeset
38 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
39
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
40 $(SPPLIB): $(SPPOBJS)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
41 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
42 -o $(SPPLIB) $(SPPOBJS)
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
43 endif
834
d73ad03912f5 fixing dependancies
michael
parents: 812
diff changeset
44
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
45 $(PPLIB): $(PPOBJS)
1242
db903b6fd197 ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents: 1069
diff changeset
46 rm -f $@
db903b6fd197 ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents: 1069
diff changeset
47 $(AR) rc $@ $(PPOBJS)
db903b6fd197 ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents: 1069
diff changeset
48 $(RANLIB) $@
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
49
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
50 install: all
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
51 ifeq ($(SHARED_PP),yes)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
52 install -d $(prefix)/lib
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
53 install -s -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
54 ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
55 ldconfig || true
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
56 mkdir -p $(prefix)/include/postproc
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
57 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
58 endif
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
59
834
d73ad03912f5 fixing dependancies
michael
parents: 812
diff changeset
60
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
61 #
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
62 # include dependency files if they exist
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
63 #
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
64 ifneq ($(wildcard .depend),)
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
65 include .depend
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
66 endif