annotate libpostproc/Makefile @ 3115:76d320e10dca libavcodec

libpostproc installs into a different directory that needs to be created.
author diego
date Sat, 11 Feb 2006 20:53:55 +0000
parents 8e5b48dad33e
children e5e4f74f006d
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
3115
76d320e10dca libpostproc installs into a different directory that needs to be created.
diego
parents: 3114
diff changeset
6 # Overload incdir, postproc include files go in a different directory.
76d320e10dca libpostproc installs into a different directory that needs to be created.
diego
parents: 3114
diff changeset
7 incdir=$(prefix)/include/postproc
76d320e10dca libpostproc installs into a different directory that needs to be created.
diego
parents: 3114
diff changeset
8
3044
ed98beb48872 Move library name generation to configure, simplifies build system a bit more.
diego
parents: 3040
diff changeset
9 NAME=postproc
3046
1127b4455bec Remove redundant --enable-shared-pp configure option and make the PP code
diego
parents: 3044
diff changeset
10 ifeq ($(BUILD_SHARED),yes)
3040
6a388c616fa3 Create symbolic links for all library sonames and clean up Makefiles.
diego
parents: 3038
diff changeset
11 LIBVERSION=$(SPPVERSION)
6a388c616fa3 Create symbolic links for all library sonames and clean up Makefiles.
diego
parents: 3038
diff changeset
12 LIBMAJOR=$(SPPMAJOR)
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
13 endif
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
14
3038
af849198c7c4 Change this Makefile to be consistent with all the others.
diego
parents: 3032
diff changeset
15 OBJS=postprocess.o
af849198c7c4 Change this Makefile to be consistent with all the others.
diego
parents: 3032
diff changeset
16 SOBJS=postprocess_pic.o
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
17
610
015b33f3e750 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 508
diff changeset
18 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
19 # -I/usr/X11R6/include/
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
20
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
21 .SUFFIXES: .c .o
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
22
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
23 # .PHONY: all clean
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
24
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
25 .c.o:
2770
07a63c88e3a7 x86_64 + PIC fix by (Jacob Meuser: jakemsr, jakemsr com)
michael
parents: 2730
diff changeset
26 $(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
27
3038
af849198c7c4 Change this Makefile to be consistent with all the others.
diego
parents: 3032
diff changeset
28 all: $(SWSLIB) $(LIB) $(SLIBNAME)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
29
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
30 clean:
3048
986716310195 Don't use 'rm -f *$(SLIBSUF)' in a clean rule, $(SLIBSUF) might be empty.
diego
parents: 3046
diff changeset
31 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
32
3048
986716310195 Don't use 'rm -f *$(SLIBSUF)' in a clean rule, $(SLIBSUF) might be empty.
diego
parents: 3046
diff changeset
33 distclean: clean
3067
d084a83f2117 Remove obscure Makefile.bak entry from distclean rules.
diego
parents: 3048
diff changeset
34 rm -f .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:
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents: 1067
diff changeset
39 $(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
40
3046
1127b4455bec Remove redundant --enable-shared-pp configure option and make the PP code
diego
parents: 3044
diff changeset
41 ifeq ($(BUILD_SHARED),yes)
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
42 postprocess_pic.o: postprocess.c
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents: 1067
diff changeset
43 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
44
3038
af849198c7c4 Change this Makefile to be consistent with all the others.
diego
parents: 3032
diff changeset
45 $(SLIBNAME): $(SOBJS)
af849198c7c4 Change this Makefile to be consistent with all the others.
diego
parents: 3032
diff changeset
46 $(CC) $(SHFLAGS) -o $(SLIBNAME) $(SOBJS)
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
47 endif
834
d73ad03912f5 fixing dependancies
michael
parents: 812
diff changeset
48
3038
af849198c7c4 Change this Makefile to be consistent with all the others.
diego
parents: 3032
diff changeset
49 $(LIB): $(OBJS)
1242
db903b6fd197 ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents: 1069
diff changeset
50 rm -f $@
3038
af849198c7c4 Change this Makefile to be consistent with all the others.
diego
parents: 3032
diff changeset
51 $(AR) rc $@ $(OBJS)
1242
db903b6fd197 ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents: 1069
diff changeset
52 $(RANLIB) $@
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
53
3111
380d5841b346 Separate library install into static and shared installation.
diego
parents: 3110
diff changeset
54
380d5841b346 Separate library install into static and shared installation.
diego
parents: 3110
diff changeset
55 install-lib-shared: $(SLIBNAME)
2285
9891c6a212ca Build process: libpostproc patch by (Franti?ek Dvo?k <valtri at users dot sourceforge dot net>)
michael
parents: 2283
diff changeset
56 ifeq ($(CONFIG_WIN32),yes)
3038
af849198c7c4 Change this Makefile to be consistent with all the others.
diego
parents: 3032
diff changeset
57 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
2285
9891c6a212ca Build process: libpostproc patch by (Franti?ek Dvo?k <valtri at users dot sourceforge dot net>)
michael
parents: 2283
diff changeset
58 else
3040
6a388c616fa3 Create symbolic links for all library sonames and clean up Makefiles.
diego
parents: 3038
diff changeset
59 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
6a388c616fa3 Create symbolic links for all library sonames and clean up Makefiles.
diego
parents: 3038
diff changeset
60 $(libdir)/$(SLIBNAME_WITH_VERSION)
6a388c616fa3 Create symbolic links for all library sonames and clean up Makefiles.
diego
parents: 3038
diff changeset
61 ln -sf $(SLIBNAME_WITH_VERSION) \
6a388c616fa3 Create symbolic links for all library sonames and clean up Makefiles.
diego
parents: 3038
diff changeset
62 $(libdir)/$(SLIBNAME_WITH_MAJOR)
6a388c616fa3 Create symbolic links for all library sonames and clean up Makefiles.
diego
parents: 3038
diff changeset
63 ln -sf $(SLIBNAME_WITH_VERSION) \
6a388c616fa3 Create symbolic links for all library sonames and clean up Makefiles.
diego
parents: 3038
diff changeset
64 $(libdir)/$(SLIBNAME)
2285
9891c6a212ca Build process: libpostproc patch by (Franti?ek Dvo?k <valtri at users dot sourceforge dot net>)
michael
parents: 2283
diff changeset
65 endif
3109
6ade7a72ae52 Add installlib and install-headers targets like everywhere else.
diego
parents: 3067
diff changeset
66
3111
380d5841b346 Separate library install into static and shared installation.
diego
parents: 3110
diff changeset
67 install-lib-static: $(LIB)
3109
6ade7a72ae52 Add installlib and install-headers targets like everywhere else.
diego
parents: 3067
diff changeset
68 install -m 644 $(LIB) "$(libdir)"
6ade7a72ae52 Add installlib and install-headers targets like everywhere else.
diego
parents: 3067
diff changeset
69
6ade7a72ae52 Add installlib and install-headers targets like everywhere else.
diego
parents: 3067
diff changeset
70 install-headers:
3115
76d320e10dca libpostproc installs into a different directory that needs to be created.
diego
parents: 3114
diff changeset
71 install -d $(incdir)
76d320e10dca libpostproc installs into a different directory that needs to be created.
diego
parents: 3114
diff changeset
72 install -m 644 postprocess.h $(incdir)/postprocess.h
3112
31d15c4d86a0 Simplify header installation.
diego
parents: 3111
diff changeset
73 install -m 644 $(SRC_PATH)/libpostproc.pc $(libdir)/pkgconfig
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
74
834
d73ad03912f5 fixing dependancies
michael
parents: 812
diff changeset
75
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
76 #
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
77 # include dependency files if they exist
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
78 #
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
79 ifneq ($(wildcard .depend),)
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
80 include .depend
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
81 endif