########################################################################### # # Makefile -- Makefile for ptmx # A component of the Greenstone digital library software # from the New Zealand Digital Library Project at the # University of Waikato, New Zealand. # # Copyright (C) 2002 New Zealand Digital Library Project # # 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. # ########################################################################### GD = ../../../.. MAINRECPTDIR = $(GD)/src/recpt MAINCOLSERVRDIR = $(GD)/src/colservr AR = ar CC = @CC@ CCFLAGS = @CFLAGS@ USE_FASTCGI = @USE_FASTCGI@ ifneq ($(USE_FASTCGI), 1) DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER @DEFS@ INCLUDES = -I. -I$(MAINRECPTDIR) -I$(MAINCOLSERVRDIR) -I$(GD)/lib \ -I$(GD)/packages/mg -I$(GD)/packages/mg/lib -I$(GD)/packages/mg/src/text \ -I$(GD)/src/mgpp/lib -I$(GD)/src/mgpp/text else DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER -DUSE_FASTCGI @DEFS@ INCLUDES = -I. -I$(MAINRECPTDIR) -I$(MAINCOLSERVRDIR) -I$(GD)/lib \ -I$(GD)/packages/mg -I$(GD)/packages/mg/lib -I$(GD)/packages/mg/src/text \ -I$(GD)/src/mgpp/lib -I$(GD)/src/mgpp/text -I$(GD)/packages/fcgi/include endif RANLIB = @RANLIB@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ GSDLOS = @gsdlos@ COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES) LINK = $(CC) $(LDFLAGS) -o $@ .SUFFIXES: .SUFFIXES: .c .o .c.o: $(COMPILE) $< .SUFFIXES: .cpp .o .cpp.o: $(COMPILE) $< HEADERS = ptmxqueryaction.h SOURCES = ptmxmain.cpp ptmxqueryaction.cpp OBJECTS = ptmxmain.o ptmxqueryaction.o EXEC = ptmx all : $(EXEC) install: $(EXEC) install -m 755 -s $(EXEC) $(GD)/cgi-bin/$(EXEC) distclean: rm -f $(OBJECTS) $(EXEC) Makefile clean: rm -f $(OBJECTS) $(EXEC) depend: makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ifeq ($(USE_FASTCGI), 1) FASTCGI_OBJS = $(GD)/packages/fcgi/libfcgi/libfcgi.a else FASTCGI_OBJS = endif PTMX_OBJS = $(OBJECTS) \ $(MAINRECPTDIR)/browsetools.o \ $(MAINRECPTDIR)/browserclass.o \ $(MAINRECPTDIR)/vlistbrowserclass.o \ $(MAINRECPTDIR)/hlistbrowserclass.o \ $(MAINRECPTDIR)/datelistbrowserclass.o \ $(MAINRECPTDIR)/invbrowserclass.o \ $(MAINRECPTDIR)/pagedbrowserclass.o \ $(MAINRECPTDIR)/htmlbrowserclass.o \ $(MAINRECPTDIR)/receptionist.o \ $(MAINRECPTDIR)/recptconfig.o \ $(MAINRECPTDIR)/cgiwrapper.o \ $(MAINRECPTDIR)/cgiargs.o \ $(MAINRECPTDIR)/action.o \ $(MAINRECPTDIR)/converter.o \ $(MAINRECPTDIR)/cgiutils.o \ $(MAINRECPTDIR)/OIDtools.o \ $(MAINRECPTDIR)/htmlgen.o \ $(MAINRECPTDIR)/pageaction.o \ $(MAINRECPTDIR)/comtypes.o \ $(MAINRECPTDIR)/recptproto.o \ $(MAINRECPTDIR)/queryaction.o \ $(MAINRECPTDIR)/querytools.o \ $(MAINRECPTDIR)/documentaction.o \ $(MAINRECPTDIR)/htmlutils.o \ $(MAINRECPTDIR)/nullproto.o \ $(MAINRECPTDIR)/infodbclass.o \ $(MAINRECPTDIR)/formattools.o \ $(MAINRECPTDIR)/historydb.o \ $(MAINRECPTDIR)/summarise.o \ $(MAINRECPTDIR)/extlinkaction.o \ $(MAINRECPTDIR)/phindaction.o \ $(MAINRECPTDIR)/phindbrowserclass.o \ $(MAINCOLSERVRDIR)/mgq.o \ $(MAINCOLSERVRDIR)/querycache.o \ $(MAINCOLSERVRDIR)/queryinfo.o \ $(MAINCOLSERVRDIR)/collectset.o \ $(MAINCOLSERVRDIR)/collectserver.o \ $(MAINCOLSERVRDIR)/colservrconfig.o \ $(MAINCOLSERVRDIR)/maptools.o \ $(MAINCOLSERVRDIR)/filter.o \ $(MAINCOLSERVRDIR)/source.o \ $(MAINCOLSERVRDIR)/browsefilter.o \ $(MAINCOLSERVRDIR)/queryfilter.o \ $(MAINCOLSERVRDIR)/mgqueryfilter.o \ $(MAINCOLSERVRDIR)/mgppqueryfilter.o \ $(MAINCOLSERVRDIR)/phrasesearch.o \ $(MAINCOLSERVRDIR)/mggdbmsource.o \ $(MAINCOLSERVRDIR)/search.o \ $(MAINCOLSERVRDIR)/mgsearch.o \ $(MAINCOLSERVRDIR)/mgppsearch.o \ $(GD)/lib/gsdllib.a \ $(GD)/packages/mg/src/text/libtextin.a \ $(GD)/packages/mg/lib/libmg.a \ $(GD)/src/mgpp/text/libtextin.a \ $(GD)/src/mgpp/lib/libmg.a $(FASTCGI_OBJS) ptmx: $(PTMX_OBJS) $(LINK) $(PTMX_OBJS) $(LIBS)