From: <bru...@us...> - 2008-01-02 22:25:55
|
Revision: 2597 http://hugin.svn.sourceforge.net/hugin/?rev=2597&view=rev Author: brunopostle Date: 2008-01-02 14:25:54 -0800 (Wed, 02 Jan 2008) Log Message: ----------- Allow setting PREFIX and CFLAGS Modified Paths: -------------- autopano-sift-C/trunk/Makefile Modified: autopano-sift-C/trunk/Makefile =================================================================== --- autopano-sift-C/trunk/Makefile 2008-01-02 22:23:54 UTC (rev 2596) +++ autopano-sift-C/trunk/Makefile 2008-01-02 22:25:54 UTC (rev 2597) @@ -1,12 +1,17 @@ # install prefix +ifndef PREFIX PREFIX=/usr +endif # compiler settings # By default, pano13 is required. To build against pano12, remove # the -DHAS_PANO13 and change the LDLIBS to link against -lpano12 CC=gcc -CFLAGS=-I/usr/include/libxml2 -Wall -O2 -DHAS_PANO13 +ifndef CFLAGS +CFLAGS=-Wall -O2 +endif +CFLAGS+= -I/usr/include/libxml2 -DHAS_PANO13 LDFLAGS= -L. LDLIBS= -lsift -lpano13 -lxml2 -lm @@ -48,11 +53,14 @@ tests: $(TESTS) install: $(TOOLS) - install generatekeys $(PREFIX)/bin - install autopano $(PREFIX)/bin - install autopano-c-complete.sh $(PREFIX)/bin - mkdir -p $(PREFIX)/share/man/man1 && install doc/*.1 $(PREFIX)/share/man/man1 - mkdir -p $(PREFIX)/share/man/man7 && install doc/*.7 $(PREFIX)/share/man/man7 + install -d $(PREFIX)/bin + install -d $(PREFIX)/share/man/man1 + install -d $(PREFIX)/share/man/man7 + install -m 0755 generatekeys $(PREFIX)/bin + install -m 0755 autopano $(PREFIX)/bin + install -m 0755 autopano-c-complete.sh $(PREFIX)/bin + install -m 0644 doc/*.1 $(PREFIX)/share/man/man1 + install -m 0644 doc/*.7 $(PREFIX)/share/man/man7 $(TEST_OBJECTS) $(TOOLS): $(LIBSIFT) $(OBJECTS): AutoPanoSift.h This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |