root/gsdl/trunk/src/recpt/win32.mak @ 15540

Revision 15540, 5.7 KB (checked in by mdewsnip, 12 years ago)

Added "configaction" to the list, for the local library.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
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-2008  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
27GSDL_DIR = ..\..
28INDEXERS_DIR = $(GSDL_DIR)\indexers
29COLSERVR_DIR = $(GSDL_DIR)\src\colservr
30PROTOCOL_DIR = $(GSDL_DIR)\src\protocol
31Z3950_DIR = $(GSDL_DIR)\src\z3950
32
33
34GSDL_VC4 = 0
35LOCAL_LIBRARY = 0
36USE_Z3950 = 0
37DLL = 0
38DLLDEBUG = 0
39ENABLE_ACCENTFOLD = 1
40
41STLPATH = "$(GSDL_DIR)\packages\windows\stlport\stlport"
42
43
44!IF $(GSDL_VC4)
45CPPFLAGS = -GX
46!ELSE
47CPPFLAGS = -EHsc
48!ENDIF
49
50!IF $(DLL)
51CPPFLAGS = $(CPPFLAGS) -MD
52!ELSE
53!IF ($(DLLDEBUG))
54CPPFLAGS = $(CPPFLAGS) -MDd
55!ENDIF
56!ENDIF
57
58!IF $(ENABLE_ACCENTFOLD)
59ACCENTFOLD_LIBS = "$(INDEXERS_DIR)\packages\unac\libunac.lib" "$(INDEXERS_DIR)\packages\unac\iconv.lib"
60!ELSE
61ACCENTFOLD_LIBS =
62!ENDIF
63
64!IF $(USE_Z3950)
65DEFS = $(DEFS) -DUSE_Z3950
66Z3950EXEC = z3950server.exe
67Z3950OBJS = z3950proto.obj z3950proxy.obj  yaz_zclient.obj zparse.tab.obj zparse.yy.obj
68Z_CLIENTOBJS = "$(YAZDIR)\win\obj\tabcomplete.obj"
69Z_LIBYAZ = "$(YAZDIR)\lib\yaz.lib"
70LDFLAGS = $(LDFLAGS) /link /NOD:msvcrt.lib
71!ELSE
72Z3950EXEC =
73Z3950OBJS =
74Z_CLIENTOBJS =
75Z_LIBYAZ =
76!ENDIF
77
78
79AR = lib
80CC = cl
81DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE -DGSDL_NOCACHE
82INCLUDES = -I. -I"$(GSDL_DIR)" -I"$(GSDL_DIR)\lib" -I"$(COLSERVR_DIR)" -I"$(PROTOCOL_DIR)" \
83    -I"$(INDEXERS_DIR)\mg" -I"$(INDEXERS_DIR)\mg\lib" -I"$(INDEXERS_DIR)\mgpp\text" \
84    -I"$(GSDL_DIR)\packages\windows\crypt\crypt" -I"$(GSDL_DIR)\packages\windows\expat\expat" \
85    -I"$(GSDL_DIR)\packages\windows\gdbm\gdbm" $(Z3950_INCLUDES)
86LDFLAGS =
87LIBS = "$(GSDL_DIR)\packages\windows\crypt\crypt\crypt.lib" "$(GSDL_DIR)\packages\windows\expat\expat\libexpat.lib" \
88        "$(GSDL_DIR)\packages\windows\gdbm\gdbm\gdbm.lib" $(ACCENTFOLD_LIBS) $(Z3950_LIBS)
89
90!IF $(GSDL_VC4)
91DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
92INCLUDES = $(INCLUDES) -I$(STLPATH)
93!ENDIF
94!IF $(LOCAL_LIBRARY)
95DEFS = $(DEFS) -DGSDL_LOCAL_LIBRARY
96!ENDIF
97
98
99COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
100LINK = $(CC) -nologo -Fe"$@"
101
102
103.SUFFIXES:
104.SUFFIXES: .cpp .obj
105.cpp.obj:
106    $(COMPILE) $<
107
108
109SOURCES = \
110    action.cpp \
111    argdb.cpp \
112    authenaction.cpp \
113    browseaction.cpp \
114    browseactiontools.cpp \
115    browserclass.cpp \
116    browsetoolsclass.cpp \
117    cgiargs.cpp \
118    cgiutils.cpp \
119    cgiwrapper.cpp \
120    collectoraction.cpp \
121    configaction.cpp \
122        converter.cpp \
123    datelistbrowserclass.cpp \
124    depositoraction.cpp \
125    documentaction.cpp \
126    extlinkaction.cpp \
127    formattools.cpp \
128    gtiaction.cpp \
129    highlighttext.cpp \
130    historydb.cpp \
131    hlistbrowserclass.cpp \
132    htmlbrowserclass.cpp \
133    htmlutils.cpp \
134    invbrowserclass.cpp \
135    librarymain.cpp \
136    maincfg.cpp \
137    pageaction.cpp \
138    pagedbrowserclass.cpp \
139    phindaction.cpp \
140    phindbrowserclass.cpp \
141    pingaction.cpp \
142    queryaction.cpp \
143    querytools.cpp \
144    receptionist.cpp \
145    recptprototools.cpp \
146    statusaction.cpp \
147    summarise.cpp \
148    tipaction.cpp \
149    userdb.cpp \
150    usersaction.cpp \
151    vlistbrowserclass.cpp \
152    wizardaction.cpp
153
154OBJECTS = \
155    action.obj \
156    argdb.obj \
157    authenaction.obj \
158    browseaction.obj \
159    browseactiontools.obj \
160    browserclass.obj \
161    browsetoolsclass.obj \
162    cgiargs.obj \
163    cgiutils.obj \
164    cgiwrapper.obj \
165    collectoraction.obj \
166    configaction.obj \
167        converter.obj \
168    datelistbrowserclass.obj \
169    depositoraction.obj \
170    documentaction.obj \
171    extlinkaction.obj \
172    formattools.obj \
173    gtiaction.obj \
174    highlighttext.obj \
175    historydb.obj \
176    hlistbrowserclass.obj \
177    htmlbrowserclass.obj \
178    htmlutils.obj \
179    invbrowserclass.obj \
180    librarymain.obj \
181    maincfg.obj \
182    pageaction.obj \
183    pagedbrowserclass.obj \
184    phindaction.obj \
185    phindbrowserclass.obj \
186    pingaction.obj \
187    queryaction.obj \
188    querytools.obj \
189    receptionist.obj \
190    recptprototools.obj \
191    statusaction.obj \
192    summarise.obj \
193    tipaction.obj \
194    userdb.obj \
195    usersaction.obj \
196    vlistbrowserclass.obj \
197    wizardaction.obj
198
199GSDL_LIBS = \
200    "$(PROTOCOL_DIR)\gsdlprotocol.lib" \
201    "$(COLSERVR_DIR)\gsdlcolservr.lib" \
202    "$(GSDL_DIR)\lib\gsdllib.lib" \
203    "$(INDEXERS_DIR)\mg\src\text\libmgtext.lib" \
204    "$(INDEXERS_DIR)\mg\lib\libmglib.lib" \
205    "$(INDEXERS_DIR)\mgpp\text\libmgpptext.lib" \
206    "$(INDEXERS_DIR)\mgpp\lib\libmgpplib.lib"
207
208EXECUTABLE_OBJECTS = \
209    $(OBJECTS) \
210    $(GSDL_LIBS)
211
212EXECUTABLE = library.exe
213
214
215library.exe: $(EXECUTABLE_OBJECTS)
216    $(LINK) $(EXECUTABLE_OBJECTS) $(LIBS)
217
218
219LIBRARY = gsdlrecpt.lib
220
221gsdlrecpt.lib: $(OBJECTS)
222    if EXIST gsdlrecpt.lib del gsdlrecpt.lib
223    $(AR) -nologo /out:gsdlrecpt.lib $(OBJECTS)
224
225
226!IF $(LOCAL_LIBRARY)
227all: $(LIBRARY)
228!ELSE
229all: $(EXECUTABLE)
230!ENDIF
231
232!IF $(LOCAL_LIBRARY)
233install: $(LIBRARY)
234!ELSE
235install: $(EXECUTABLE)
236    copy library.exe "$(GSDL_DIR)\cgi-bin"
237!ENDIF
238
239clean:
240    del *.obj
241    del library.exe
242
243
244# Always recompile configaction and statusaction in case GSDL_LOCAL_LIBRARY has changed
245statusaction.obj: FORCE
246configaction.obj: FORCE
247
248FORCE:
Note: See TracBrowser for help on using the browser.