source: trunk/gsdl/src/recpt/win32.mak@ 4290

Last change on this file since 4290 was 4290, checked in by sjboddie, 21 years ago

Added a "configaction" to allow new collection servers to be added to and
removed from a persistent version of greenstone (i.e. the local library)
while it's still running. Without this you need to restart the server in
order for it to notice any new collections that may have appeared.
Use "?a=config&cmd=add-collection&c=colname" to create and configure a
collection server for the "colname" collection.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.4 KB
Line 
1###########################################################################
2#
3# win32 makefile -- src/recpt
4# A component of the Greenstone digital library software
5# from the New Zealand Digital Library Project at the
6# University of Waikato, New Zealand.
7#
8# Copyright (C) 1999 The New Zealand Digital Library Project
9#
10#
11# This program is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24#
25###########################################################################
26
27GSDLHOME = ..\..
28USE_STLPORT = 0
29LOCAL_LIBRARY = 0
30STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
31
32AR = lib
33CC = cl
34CPPFLAGS = -GX
35LDFLAGS =
36DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX
37INCLUDES = -I"$(GSDLHOME)\src\recpt" -I"$(GSDLHOME)\lib" -I"$(GSDLHOME)\src\colservr" \
38 -I"$(GSDLHOME)\packages\mg" -I"$(GSDLHOME)\packages\mg\lib" \
39 -I"$(GSDLHOME)\packages\mg\src\text" -I"$(GSDLHOME)\packages\windows\gdbm\gdbm" \
40 -I"$(GSDLHOME)\packages\windows\crypt\crypt" -I"$(GSDLHOME)\src\mgpp\lib" \
41 -I"$(GSDLHOME)\src\mgpp\text" -I"$(GSDLHOME)"
42!IF $(USE_STLPORT)
43DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
44INCLUDES = $(INCLUDES) -I$(STLPATH)
45!ENDIF
46!IF $(LOCAL_LIBRARY)
47DEFS = $(DEFS) -DGSDL_LOCAL_LIBRARY
48!ENDIF
49
50LIBS = "$(GSDLHOME)\packages\windows\gdbm\gdbm\gdbm.lib" \
51 "$(GSDLHOME)\packages\windows\crypt\crypt\crypt.lib" \
52 "$(GSDLHOME)\src\colservr\gsdlcolservr.lib" \
53 "$(GSDLHOME)\lib\gsdllib.lib" \
54 "$(GSDLHOME)\packages\mg\src\text\libtextin.lib" \
55 "$(GSDLHOME)\packages\mg\lib\libmg.lib" \
56 "$(GSDLHOME)\src\mgpp\text\libtextin.lib" \
57 "$(GSDLHOME)\src\mgpp\lib\libmg.lib"
58
59
60COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
61LINK = $(CC) $(LDFLAGS) -o $@
62
63.SUFFIXES:
64.SUFFIXES: .c .obj
65.c.obj:
66 $(COMPILE) $<
67
68.SUFFIXES: .cpp .obj
69.cpp.obj:
70 $(COMPILE) $<
71
72
73COMMONHEADERS = receptionist.h cgiargs.h action.h browserclass.h \
74 converter.h recptconfig.h cgiutils.h OIDtools.h browsetools.h \
75 statusaction.h pageaction.h comtypes.h recptproto.h pingaction.h \
76 queryaction.h documentaction.h extlinkaction.h htmlutils.h \
77 querytools.h formattools.h tipaction.h authenaction.h infodbclass.h \
78 userdb.h usersaction.h vlistbrowserclass.h hlistbrowserclass.h \
79 datelistbrowserclass.h invbrowserclass.h pagedbrowserclass.h \
80 htmlbrowserclass.h historydb.h phindbrowserclass.h collectoraction.h \
81 nullproto.h argdb.h browseaction.h browseactiontools.h phindaction.h \
82 summarise.h highlighttext.h configaction.h
83
84CGIHEADERS = cgiwrapper.h
85
86HEADERS = $(COMMONHEADERS) $(CGIHEADERS)
87
88
89COMMONSOURCES = receptionist.cpp cgiargs.cpp action.cpp browserclass.cpp \
90 converter.cpp recptconfig.cpp cgiutils.cpp OIDtools.cpp browsetools.cpp \
91 statusaction.cpp pageaction.cpp comtypes.cpp \
92 recptproto.cpp pingaction.cpp queryaction.cpp documentaction.cpp \
93 extlinkaction.cpp htmlutils.cpp querytools.cpp formattools.cpp \
94 tipaction.cpp authenaction.cpp infodbclass.cpp userdb.cpp usersaction.cpp \
95 vlistbrowserclass.cpp hlistbrowserclass.cpp datelistbrowserclass.cpp \
96 invbrowserclass.cpp pagedbrowserclass.cpp htmlbrowserclass.cpp \
97 historydb.cpp phindbrowserclass.cpp collectoraction.cpp nullproto.cpp \
98 argdb.cpp browseaction.cpp browseactiontools.cpp phindaction.cpp \
99 summarise.cpp highlighttext.cpp configaction.cpp
100
101CGISOURCES = librarymain.cpp cgiwrapper.cpp
102
103SOURCES = $(COMMONSOURCES) $(CGISOURCES)
104
105
106COMMONOBJECTS = receptionist.obj cgiargs.obj action.obj browserclass.obj \
107 converter.obj recptconfig.obj cgiutils.obj OIDtools.obj browsetools.obj \
108 statusaction.obj pageaction.obj comtypes.obj recptproto.obj \
109 pingaction.obj queryaction.obj documentaction.obj extlinkaction.obj \
110 htmlutils.obj querytools.obj formattools.obj tipaction.obj \
111 authenaction.obj infodbclass.obj userdb.obj usersaction.obj \
112 vlistbrowserclass.obj hlistbrowserclass.obj datelistbrowserclass.obj \
113 invbrowserclass.obj pagedbrowserclass.obj htmlbrowserclass.obj \
114 historydb.obj phindbrowserclass.obj collectoraction.obj nullproto.obj \
115 argdb.obj browseaction.obj browseactiontools.obj phindaction.obj \
116 summarise.obj highlighttext.obj configaction.obj
117
118CGIOBJECTS = librarymain.obj cgiwrapper.obj
119
120OBJECTS = $(COMMONOBJECTS) $(CGIOBJECTS)
121
122EXEC = library.exe
123
124!IF $(LOCAL_LIBRARY)
125all: gsdlrecpt.lib
126!ELSE
127all: $(EXEC)
128!ENDIF
129
130gsdlrecpt.lib : $(COMMONOBJECTS)
131 if EXIST gsdlrecpt.lib del gsdlrecpt.lib
132 $(AR) /out:gsdlrecpt.lib $(COMMONOBJECTS)
133
134clean:
135 del *.obj
136 del library.exe
137
138!IF $(LOCAL_LIBRARY)
139install:
140!ELSE
141install:
142 copy library.exe "$(GSDLHOME)\cgi-bin"
143!ENDIF
144
145library.exe: $(OBJECTS)
146 $(LINK) $(OBJECTS) $(LIBS)
147
148# we want statusaction to always be compiled in case the status of
149# GSDL_LOCAL_LIBRARY has changed
150statusaction.obj: FORCE
151
152FORCE:
Note: See TracBrowser for help on using the repository browser.