########################################################################### # # Makefile -- Makefile for the basic phind host # # A component of the Greenstone digital library software # from the New Zealand Digital Library Project at the # University of Waikato, New Zealand. # # Copyright (C) 2000 Gordon Paynter # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # ########################################################################### MGPPHOME = $(GSDLHOME)/src/mgpp MGPPTEXT = $(MGPPHOME)/text MGPPLIB = $(MGPPHOME)/lib MGPPINCL = -I $(MGPPTEXT) -I $(MGPPLIB) MGPPLIBS = $(MGPPTEXT)/libtextin.a $(MGPPLIB)/libmg.a GSDLLIB = $(GSDLHOME)/lib GSDLINCL = -I $(GSDLLIB) -I $(GSDLHOME) GSDLLIBS = $(GSDLLIB)/gsdllib.a CC = @CC@ CCFLAGS = -Wall @CFLAGS@ DEFS = @DEFS@ RANLIB = @RANLIB@ INCLUDES = $(MGPPINCL) $(GSDLINCL) LDFLAGS = DPLIBS = LIBS = @LIBS@ GSDLOS = @gsdlos@ HEADERS = SOURCES = phindcgi.cpp OBJECTS = EXEC = phindcgi all: $(EXEC) # Phind is still experimental, so it is not installed by default. # An explicit "make install-phind" is required to get it on your system. install: install-phind: $(EXEC) install -d $(GSDLHOME)/cgi-bin install -m 775 -s $(EXEC) $(GSDLHOME)/cgi-bin distclean: rm -f $(OBJECTS) $(EXEC) Makefile clean: rm -f $(OBJECTS) $(EXEC) depend: makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # phindcgi : phindcgi.cpp $(MGPPLIBS) $(CC) $(DEFS) $(INCLUDES) $(CCFLAGS) $(LIBS) -o phindcgi phindcgi.cpp $(MGPPLIBS) $(GSDLLIBS) $(MGPPLIBS) : cd $(MGPPHOME) && $(MAKE) --silent