annotate libpostproc/Makefile @ 2942:868c48736d1c libavcodec

fixed long standing off-by-one bug (fixes playback on ppc)
author alex
date Sun, 13 Nov 2005 17:48:27 +0000
parents e1dfc65af0fb
children 8a7d694a21eb
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
2499
e003222c878d Build libpostproc out of source directory patch by (James A. Morrison >ja2morri csclub.uwaterloo ca>)
michael
parents: 2285
diff changeset
4 VPATH=$(SRC_PATH)/libavcodec/libpostproc
e003222c878d Build libpostproc out of source directory patch by (James A. Morrison >ja2morri csclub.uwaterloo ca>)
michael
parents: 2285
diff changeset
5
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
6 ifeq ($(SHARED_PP),yes)
2896
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
7 SPPLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
8 ifeq ($(CONFIG_DARWIN),yes)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
9 SPPLIBMAJOR = $(SLIBPREF)postproc.$(SPPMAJOR)$(SLIBSUF)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
10 SPPLIB = $(SLIBPREF)postproc.$(SPPVERSION)$(SLIBSUF)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
11 SHFLAGS += -Wl,-install_name,$(libdir)/$(SPPLIBNAME),-current_version,$(SPPVERSION),-compatibility_version,$(SPPVERSION)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
12 else
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
13 SPPLIBMAJOR = $(SPPLIBNAME).$(SPPMAJOR)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
14 SPPLIB = $(SPPLIBNAME).$(SPPVERSION)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
15 SHFLAGS = -shared -Wl,-soname,$(SPPLIB)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
16 endif
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
17 endif
2285
9891c6a212ca Build process: libpostproc patch by (Franti?ek Dvo?k <valtri at users dot sourceforge dot net>)
michael
parents: 2283
diff changeset
18 PPLIB = $(LIBPREF)postproc$(LIBSUF)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
19
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
20 PPOBJS=postprocess.o
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
21 SPPOBJS=postprocess_pic.o
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
22
610
015b33f3e750 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 508
diff changeset
23 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
24 # -I/usr/X11R6/include/
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
25
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
26 .SUFFIXES: .c .o
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
27
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
28 # .PHONY: all clean
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
29
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
30 .c.o:
2770
07a63c88e3a7 x86_64 + PIC fix by (Jacob Meuser: jakemsr, jakemsr com)
michael
parents: 2730
diff changeset
31 $(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
32
2896
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
33 all: $(SWSLIB) $(PPLIB) $(SPPLIBNAME)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
34
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
35 clean:
2896
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
36 rm -f *.o *.a *~ *$(SLIBSUF) $(PPLIB) $(SPPLIBNAME)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
37
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
38 distclean:
2896
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
39 rm -f Makefile.bak *.o *.a *~ *$(SLIBSUF) .depend
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
40
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
41 dep: depend
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
42
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
43 depend:
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents: 1067
diff changeset
44 $(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
45
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
46 ifeq ($(SHARED_PP),yes)
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
47 postprocess_pic.o: postprocess.c
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents: 1067
diff changeset
48 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
49
2896
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
50 $(SPPLIBNAME): $(SPPOBJS)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
51 $(CC) $(SHFLAGS) -o $(SPPLIBNAME) $(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
52 endif
834
d73ad03912f5 fixing dependancies
michael
parents: 812
diff changeset
53
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
54 $(PPLIB): $(PPOBJS)
1242
db903b6fd197 ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents: 1069
diff changeset
55 rm -f $@
db903b6fd197 ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents: 1069
diff changeset
56 $(AR) rc $@ $(PPOBJS)
db903b6fd197 ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents: 1069
diff changeset
57 $(RANLIB) $@
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
58
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
59 install: all
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
60 ifeq ($(SHARED_PP),yes)
2285
9891c6a212ca Build process: libpostproc patch by (Franti?ek Dvo?k <valtri at users dot sourceforge dot net>)
michael
parents: 2283
diff changeset
61 ifeq ($(CONFIG_WIN32),yes)
2896
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
62 install $(INSTALLSTRIP) -m 755 $(SPPLIBNAME) "$(prefix)"
2285
9891c6a212ca Build process: libpostproc patch by (Franti?ek Dvo?k <valtri at users dot sourceforge dot net>)
michael
parents: 2283
diff changeset
63 else
2564
ad15cccd015f add libdir support to configure patch by (Luca Barbato )lu_zero gentoo org)
michael
parents: 2499
diff changeset
64 install -d $(libdir)
2896
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
65 install $(INSTALLSTRIP) -m 755 $(SPPLIBNAME) $(libdir)/$(SPPLIB)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
66 ln -sf $(SPPLIB) $(libdir)/$(SPPLIBNAME)
e1dfc65af0fb support for building dynamic libraries on Mac OS X
diego
parents: 2770
diff changeset
67 ln -sf $(SPPLIB) $(libdir)/$(SPPLIBMAJOR)
2711
3ba3640bae2a install libav(codec|format).pc/libpostproc.pc for pkg-config (original patch from <j at v2v.cc>)
aurel
parents: 2708
diff changeset
68 install -d $(libdir)/pkgconfig
3ba3640bae2a install libav(codec|format).pc/libpostproc.pc for pkg-config (original patch from <j at v2v.cc>)
aurel
parents: 2708
diff changeset
69 install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
2730
5bc8023efdba ldconfig as config.mak variable patch by (Jacob Meuser: jakemsr, jakemsr com)
michael
parents: 2711
diff changeset
70 $(LDCONFIG) || true
2121
680868144447 buglet in libpostproc Makefile patch by (Brendan Kehoe <brendan at zen dot org>)
michael
parents: 1242
diff changeset
71 endif
2285
9891c6a212ca Build process: libpostproc patch by (Franti?ek Dvo?k <valtri at users dot sourceforge dot net>)
michael
parents: 2283
diff changeset
72 endif
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
73 mkdir -p $(prefix)/include/postproc
2708
97c135899d7d fix shared libpostproc build
mru
parents: 2573
diff changeset
74 install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
75
834
d73ad03912f5 fixing dependancies
michael
parents: 812
diff changeset
76
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
77 #
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
78 # include dependency files if they exist
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
79 #
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
80 ifneq ($(wildcard .depend),)
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
81 include .depend
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
82 endif