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