Mercurial > libavcodec.hg
annotate libpostproc/Makefile @ 2530:eace30b70601 libavcodec
go LOCO, courtesy of Kostya Shishkov
| author | melanson |
|---|---|
| date | Tue, 01 Mar 2005 02:24:58 +0000 |
| parents | e003222c878d |
| children | ad15cccd015f |
| 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) |
| 787 | 8 SPPVERSION = 0.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
|
9 endif |
|
2285
9891c6a212ca
Build process: libpostproc patch by (Franti?ek Dvo??k <valtri at users dot sourceforge dot net>)
michael
parents:
2283
diff
changeset
|
10 PPLIB = $(LIBPREF)postproc$(LIBSUF) |
| 127 | 11 |
| 787 | 12 PPOBJS=postprocess.o |
| 13 SPPOBJS=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: | |
|
2499
e003222c878d
Build libpostproc out of source directory patch by (James A. Morrison >ja2morri csclub.uwaterloo ca>)
michael
parents:
2285
diff
changeset
|
23 $(CC) -c $(CFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $< |
| 127 | 24 |
| 787 | 25 all: $(SWSLIB) $(PPLIB) $(SPPLIB) |
| 127 | 26 |
| 27 clean: | |
|
2285
9891c6a212ca
Build process: libpostproc patch by (Franti?ek Dvo??k <valtri at users dot sourceforge dot net>)
michael
parents:
2283
diff
changeset
|
28 rm -f *.o *.a *~ *.so $(PPLIB) $(SPPLIB) |
| 127 | 29 |
| 30 distclean: | |
| 787 | 31 rm -f Makefile.bak *.o *.a *~ *.so .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 |
|
812
607e867a8be4
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
790
diff
changeset
|
38 ifeq ($(SHARED_PP),yes) |
| 787 | 39 postprocess_pic.o: postprocess.c |
| 1069 | 40 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $< |
| 787 | 41 |
| 42 $(SPPLIB): $(SPPOBJS) | |
| 43 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \ | |
| 44 -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
|
45 endif |
| 834 | 46 |
| 787 | 47 $(PPLIB): $(PPOBJS) |
|
1242
db903b6fd197
ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents:
1069
diff
changeset
|
48 rm -f $@ |
|
db903b6fd197
ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents:
1069
diff
changeset
|
49 $(AR) rc $@ $(PPOBJS) |
|
db903b6fd197
ranlib patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
michaelni
parents:
1069
diff
changeset
|
50 $(RANLIB) $@ |
| 787 | 51 |
| 52 install: all | |
| 53 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
|
54 ifeq ($(CONFIG_WIN32),yes) |
|
9891c6a212ca
Build process: libpostproc patch by (Franti?ek Dvo??k <valtri at users dot sourceforge dot net>)
michael
parents:
2283
diff
changeset
|
55 install $(INSTALLSTRIP) -m 755 $(SPPLIB) "$(prefix)" |
|
9891c6a212ca
Build process: libpostproc patch by (Franti?ek Dvo??k <valtri at users dot sourceforge dot net>)
michael
parents:
2283
diff
changeset
|
56 else |
| 787 | 57 install -d $(prefix)/lib |
|
2283
e968ff495d3a
Help debugging by keeping symbols ans line numbers patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
michael
parents:
2121
diff
changeset
|
58 install $(INSTALLSTRIP) -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION) |
| 787 | 59 ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB) |
| 60 ldconfig || true | |
|
2121
680868144447
buglet in libpostproc Makefile patch by (Brendan Kehoe <brendan at zen dot org>)
michael
parents:
1242
diff
changeset
|
61 endif |
|
2285
9891c6a212ca
Build process: libpostproc patch by (Franti?ek Dvo??k <valtri at users dot sourceforge dot net>)
michael
parents:
2283
diff
changeset
|
62 endif |
| 787 | 63 mkdir -p $(prefix)/include/postproc |
| 64 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h | |
| 65 | |
| 834 | 66 |
| 127 | 67 # |
| 68 # include dependency files if they exist | |
| 69 # | |
| 70 ifneq ($(wildcard .depend),) | |
| 71 include .depend | |
| 72 endif |
