Mercurial > libavcodec.hg
annotate libpostproc/Makefile @ 3084:d37c1e2f715d libavcodec
10l (malloc check with the wrong pointer)
Simplification: I have to reconsider this trees and forest thing...
Also readded and documented the check i had in the beginning and removed
before applying. It avoids a possible div by zero.
author | al |
---|---|
date | Sat, 04 Feb 2006 09:59:48 +0000 |
parents | d084a83f2117 |
children | 6ade7a72ae52 |
rev | line source |
---|---|
127 | 1 |
1069 | 2 include ../../config.mak |
127 | 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 |
3044
ed98beb48872
Move library name generation to configure, simplifies build system a bit more.
diego
parents:
3040
diff
changeset
|
6 NAME=postproc |
3046
1127b4455bec
Remove redundant --enable-shared-pp configure option and make the PP code
diego
parents:
3044
diff
changeset
|
7 ifeq ($(BUILD_SHARED),yes) |
3040
6a388c616fa3
Create symbolic links for all library sonames and clean up Makefiles.
diego
parents:
3038
diff
changeset
|
8 LIBVERSION=$(SPPVERSION) |
6a388c616fa3
Create symbolic links for all library sonames and clean up Makefiles.
diego
parents:
3038
diff
changeset
|
9 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
|
10 endif |
127 | 11 |
3038
af849198c7c4
Change this Makefile to be consistent with all the others.
diego
parents:
3032
diff
changeset
|
12 OBJS=postprocess.o |
af849198c7c4
Change this Makefile to be consistent with all the others.
diego
parents:
3032
diff
changeset
|
13 SOBJS=postprocess_pic.o |
127 | 14 |
610
015b33f3e750
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
508
diff
changeset
|
15 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) |
127 | 16 # -I/usr/X11R6/include/ |
17 | |
18 .SUFFIXES: .c .o | |
19 | |
20 # .PHONY: all clean | |
21 | |
22 .c.o: | |
2770
07a63c88e3a7
x86_64 + PIC fix by (Jacob Meuser: jakemsr, jakemsr com)
michael
parents:
2730
diff
changeset
|
23 $(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $< |
127 | 24 |
3038
af849198c7c4
Change this Makefile to be consistent with all the others.
diego
parents:
3032
diff
changeset
|
25 all: $(SWSLIB) $(LIB) $(SLIBNAME) |
127 | 26 |
27 clean: | |
3048
986716310195
Don't use 'rm -f *$(SLIBSUF)' in a clean rule, $(SLIBSUF) might be empty.
diego
parents:
3046
diff
changeset
|
28 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll |
127 | 29 |
3048
986716310195
Don't use 'rm -f *$(SLIBSUF)' in a clean rule, $(SLIBSUF) might be empty.
diego
parents:
3046
diff
changeset
|
30 distclean: clean |
3067
d084a83f2117
Remove obscure Makefile.bak entry from distclean rules.
diego
parents:
3048
diff
changeset
|
31 rm -f .depend |
127 | 32 |
33 dep: depend | |
34 | |
35 depend: | |
1069 | 36 $(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
|
37 |
3046
1127b4455bec
Remove redundant --enable-shared-pp configure option and make the PP code
diego
parents:
3044
diff
changeset
|
38 ifeq ($(BUILD_SHARED),yes) |
787 | 39 postprocess_pic.o: postprocess.c |
1069 | 40 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $< |
787 | 41 |
3038
af849198c7c4
Change this Makefile to be consistent with all the others.
diego
parents:
3032
diff
changeset
|
42 $(SLIBNAME): $(SOBJS) |
af849198c7c4
Change this Makefile to be consistent with all the others.
diego
parents:
3032
diff
changeset
|
43 $(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
|
44 endif |
834 | 45 |
3038
af849198c7c4
Change this Makefile to be consistent with all the others.
diego
parents:
3032
diff
changeset
|
46 $(LIB): $(OBJS) |
1242
db903b6fd197
ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents:
1069
diff
changeset
|
47 rm -f $@ |
3038
af849198c7c4
Change this Makefile to be consistent with all the others.
diego
parents:
3032
diff
changeset
|
48 $(AR) rc $@ $(OBJS) |
1242
db903b6fd197
ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents:
1069
diff
changeset
|
49 $(RANLIB) $@ |
787 | 50 |
51 install: all | |
3046
1127b4455bec
Remove redundant --enable-shared-pp configure option and make the PP code
diego
parents:
3044
diff
changeset
|
52 ifeq ($(BUILD_SHARED),yes) |
2285
9891c6a212ca
Build process: libpostproc patch by (Franti?ek Dvo?k <valtri at users dot sourceforge dot net>)
michael
parents:
2283
diff
changeset
|
53 ifeq ($(CONFIG_WIN32),yes) |
3038
af849198c7c4
Change this Makefile to be consistent with all the others.
diego
parents:
3032
diff
changeset
|
54 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
|
55 else |
2564
ad15cccd015f
add libdir support to configure patch by (Luca Barbato )lu_zero gentoo org)
michael
parents:
2499
diff
changeset
|
56 install -d $(libdir) |
3040
6a388c616fa3
Create symbolic links for all library sonames and clean up Makefiles.
diego
parents:
3038
diff
changeset
|
57 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \ |
6a388c616fa3
Create symbolic links for all library sonames and clean up Makefiles.
diego
parents:
3038
diff
changeset
|
58 $(libdir)/$(SLIBNAME_WITH_VERSION) |
6a388c616fa3
Create symbolic links for all library sonames and clean up Makefiles.
diego
parents:
3038
diff
changeset
|
59 ln -sf $(SLIBNAME_WITH_VERSION) \ |
6a388c616fa3
Create symbolic links for all library sonames and clean up Makefiles.
diego
parents:
3038
diff
changeset
|
60 $(libdir)/$(SLIBNAME_WITH_MAJOR) |
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) |
2730
5bc8023efdba
ldconfig as config.mak variable patch by (Jacob Meuser: jakemsr, jakemsr com)
michael
parents:
2711
diff
changeset
|
63 $(LDCONFIG) || true |
2121
680868144447
buglet in libpostproc Makefile patch by (Brendan Kehoe <brendan at zen dot org>)
michael
parents:
1242
diff
changeset
|
64 endif |
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 |
787 | 66 mkdir -p $(prefix)/include/postproc |
2708 | 67 install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h |
3038
af849198c7c4
Change this Makefile to be consistent with all the others.
diego
parents:
3032
diff
changeset
|
68 install -d $(libdir)/pkgconfig |
af849198c7c4
Change this Makefile to be consistent with all the others.
diego
parents:
3032
diff
changeset
|
69 install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig |
787 | 70 |
834 | 71 |
127 | 72 # |
73 # include dependency files if they exist | |
74 # | |
75 ifneq ($(wildcard .depend),) | |
76 include .depend | |
77 endif |