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