########################################################################### # # win32 makefile -- src/recpt # A component of the Greenstone digital library software # from the New Zealand Digital Library Project at the # University of Waikato, New Zealand. # # Copyright (C) 1999 The 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. # ########################################################################### GSDLHOME = ..\.. USE_STLPORT = 0 LOCAL_LIBRARY = 0 STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport" AR = lib CC = cl CPPFLAGS = LDFLAGS = DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX INCLUDES = -I"$(GSDLHOME)\src\recpt" -I"$(GSDLHOME)\lib" -I"$(GSDLHOME)\src\colservr" \ -I"$(GSDLHOME)\packages\mg" -I"$(GSDLHOME)\packages\mg\lib" \ -I"$(GSDLHOME)\packages\mg\src\text" -I"$(GSDLHOME)\packages\windows\gdbm\gdbm" \ -I"$(GSDLHOME)\packages\windows\crypt\crypt" -I"$(GSDLHOME)\src\mgpp\lib" \ -I"$(GSDLHOME)\src\mgpp\text" -I"$(GSDLHOME)" !IF $(USE_STLPORT) DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS INCLUDES = $(INCLUDES) -I$(STLPATH) !ENDIF !IF $(LOCAL_LIBRARY) DEFS = $(DEFS) -DGSDL_LOCAL_LIBRARY !ENDIF LIBS = "$(GSDLHOME)\packages\windows\gdbm\gdbm\gdbm.lib" \ "$(GSDLHOME)\packages\windows\crypt\crypt\crypt.lib" \ "$(GSDLHOME)\src\colservr\gsdlcolservr.lib" \ "$(GSDLHOME)\lib\gsdllib.lib" \ "$(GSDLHOME)\packages\mg\src\text\libtextin.lib" \ "$(GSDLHOME)\packages\mg\lib\libmg.lib" \ "$(GSDLHOME)\src\mgpp\text\libtextin.lib" \ "$(GSDLHOME)\src\mgpp\lib\libmg.lib" COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) LINK = $(CC) $(LDFLAGS) -o $@ .SUFFIXES: .SUFFIXES: .c .obj .c.obj: $(COMPILE) $< .SUFFIXES: .cpp .obj .cpp.obj: $(COMPILE) $< COMMONHEADERS = receptionist.h cgiargs.h action.h browserclass.h \ converter.h recptconfig.h cgiutils.h OIDtools.h browsetools.h htmlgen.h \ statusaction.h pageaction.h comtypes.h recptproto.h pingaction.h \ queryaction.h documentaction.h extlinkaction.h htmlutils.h \ querytools.h formattools.h tipaction.h authenaction.h infodbclass.h \ userdb.h usersaction.h vlistbrowserclass.h hlistbrowserclass.h \ datelistbrowserclass.h invbrowserclass.h pagedbrowserclass.h \ htmlbrowserclass.h historydb.h phindbrowserclass.h collectoraction.h \ nullproto.h argdb.h browseaction.h browseactiontools.h phindaction.h \ summarise.h CGIHEADERS = cgiwrapper.h HEADERS = $(COMMONHEADERS) $(CGIHEADERS) COMMONSOURCES = receptionist.cpp cgiargs.cpp action.cpp browserclass.cpp \ converter.cpp recptconfig.cpp cgiutils.cpp OIDtools.cpp browsetools.cpp \ htmlgen.cpp statusaction.cpp pageaction.cpp comtypes.cpp \ recptproto.cpp pingaction.cpp queryaction.cpp documentaction.cpp \ extlinkaction.cpp htmlutils.cpp querytools.cpp formattools.cpp \ tipaction.cpp authenaction.cpp infodbclass.cpp userdb.cpp usersaction.cpp \ vlistbrowserclass.cpp hlistbrowserclass.cpp datelistbrowserclass.cpp \ invbrowserclass.cpp pagedbrowserclass.cpp htmlbrowserclass.cpp \ historydb.cpp phindbrowserclass.cpp collectoraction.cpp nullproto.cpp \ argdb.cpp browseaction.cpp browseactiontools.cpp phindaction.cpp \ summarise.cpp CGISOURCES = librarymain.cpp cgiwrapper.cpp SOURCES = $(COMMONSOURCES) $(CGISOURCES) COMMONOBJECTS = receptionist.obj cgiargs.obj action.obj browserclass.obj \ converter.obj recptconfig.obj cgiutils.obj OIDtools.obj browsetools.obj \ htmlgen.obj statusaction.obj pageaction.obj comtypes.obj recptproto.obj \ pingaction.obj queryaction.obj documentaction.obj extlinkaction.obj \ htmlutils.obj querytools.obj formattools.obj tipaction.obj \ authenaction.obj infodbclass.obj userdb.obj usersaction.obj \ vlistbrowserclass.obj hlistbrowserclass.obj datelistbrowserclass.obj \ invbrowserclass.obj pagedbrowserclass.obj htmlbrowserclass.obj \ historydb.obj phindbrowserclass.obj collectoraction.obj nullproto.obj \ argdb.obj browseaction.obj browseactiontools.obj phindaction.obj \ summarise.obj CGIOBJECTS = librarymain.obj cgiwrapper.obj OBJECTS = $(COMMONOBJECTS) $(CGIOBJECTS) EXEC = library.exe !IF $(LOCAL_LIBRARY) all: gsdlrecpt.lib !ELSE all: $(EXEC) !ENDIF gsdlrecpt.lib : $(COMMONOBJECTS) if EXIST gsdlrecpt.lib del gsdlrecpt.lib $(AR) /out:gsdlrecpt.lib $(COMMONOBJECTS) clean: del *.obj del library.exe !IF $(LOCAL_LIBRARY) install: !ELSE install: copy library.exe "$(GSDLHOME)\cgi-bin" !ENDIF library.exe: $(OBJECTS) $(LINK) $(OBJECTS) $(LIBS) # we want statusaction to always be compiled in case the status of # GSDL_LOCAL_LIBRARY has changed statusaction.obj: FORCE FORCE: