root/gsdl/trunk/src/oaiservr/win32.mak @ 15531

Revision 15531, 4.0 KB (checked in by mdewsnip, 11 years ago)

Big tidy up of src/oaiservr win32.mak file.

  • Property svn:keywords set to Author Date Id Revision
Line 
1###########################################################################
2#
3# win32 makefile -- src/oaiserver
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
31RECPT_DIR = $(GSDL_DIR)\src\recpt
32
33
34GSDL_VC4 = 0
35LOCAL_LIBRARY = 0
36DLL = 0
37DLLDEBUG = 0
38ENABLE_ACCENTFOLD = 1
39
40STLPATH = "$(GSDL_DIR)\packages\windows\stlport\stlport"
41
42
43!IF $(GSDL_VC4)
44CPPFLAGS = -GX
45!ELSE
46CPPFLAGS = -EHsc
47!ENDIF
48
49!IF $(DLL)
50CPPFLAGS = $(CPPFLAGS) -MD
51!ELSE
52!IF ($(DLLDEBUG))
53CPPFLAGS = $(CPPFLAGS) -MDd
54!ENDIF
55!ENDIF
56
57!IF $(ENABLE_ACCENTFOLD)
58ACCENTFOLD_LIBS = "$(INDEXERS_DIR)\packages\unac\libunac.lib" "$(INDEXERS_DIR)\packages\unac\iconv.lib"
59!ELSE
60ACCENTFOLD_LIBS =
61!ENDIF
62
63
64AR = lib
65CC = cl
66DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE -DGSDL_NOCACHE
67INCLUDES = -I"$(GSDL_DIR)\lib" -I"$(COLSERVR_DIR)" -I"$(PROTOCOL_DIR)" -I"$(RECPT_DIR)" \
68        -I"$(INDEXERS_DIR)\mgpp\text" -I"$(GSDL_DIR)\packages\windows\crypt\crypt" \
69    -I"$(GSDL_DIR)\packages\windows\expat\expat" -I"$(GSDL_DIR)\packages\windows\gdbm\gdbm"
70LDFLAGS =
71LIBS = "$(GSDL_DIR)\packages\windows\crypt\crypt\crypt.lib" "$(GSDL_DIR)\packages\windows\expat\expat\libexpat.lib" \
72        "$(GSDL_DIR)\packages\windows\gdbm\gdbm\gdbm.lib" $(ACCENTFOLD_LIBS)
73
74!IF $(GSDL_VC4)
75DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
76INCLUDES = $(INCLUDES) -I$(STLPATH)
77!ENDIF
78!IF $(LOCAL_LIBRARY)
79DEFS = $(DEFS) -DGSDL_LOCAL_LIBRARY
80!ENDIF
81
82
83COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
84LINK = $(CC) -nologo -Fe"$@"
85
86
87.SUFFIXES:
88.SUFFIXES: .cpp .obj
89.cpp.obj:
90    $(COMPILE) $<
91
92
93RECPT_OBJECTS = \
94    $(RECPT_DIR)\cgiargs.obj \
95    $(RECPT_DIR)\cgiutils.obj \
96    $(RECPT_DIR)\htmlutils.obj \
97    $(RECPT_DIR)\recptprototools.obj
98
99SOURCES = \
100    abstractlistaction.cpp \
101    dublincore.cpp \
102    identityaction.cpp \
103    listidsaction.cpp \
104    listrecsaction.cpp \
105    listsetsaction.cpp \
106    metaformat.cpp \
107    metaformatsaction.cpp \
108    oaiaction.cpp \
109    oaiargs.cpp \
110    oaiconfig.cpp \
111    oaidispatcher.cpp \
112    oaimain.cpp \
113    oaitools.cpp \
114    recordaction.cpp \
115    resumptiontoken.cpp \
116    rfc1807.cpp
117
118OBJECTS = \
119    abstractlistaction.obj \
120    dublincore.obj \
121    identityaction.obj \
122    listidsaction.obj \
123    listrecsaction.obj \
124    listsetsaction.obj \
125    metaformat.obj \
126    metaformatsaction.obj \
127    oaiaction.obj \
128    oaiargs.obj \
129    oaiconfig.obj \
130    oaidispatcher.obj \
131    oaimain.obj \
132    oaitools.obj \
133    recordaction.obj \
134    resumptiontoken.obj \
135    rfc1807.obj
136
137GSDL_LIBS = \
138    $(PROTOCOL_DIR)\gsdlprotocol.lib \
139    $(COLSERVR_DIR)\gsdlcolservr.lib \
140    "$(GSDL_DIR)\lib\gsdllib.lib" \
141    "$(GSDL_DIR)\indexers\mg\src\text\libmgtext.lib" \
142    "$(GSDL_DIR)\indexers\mg\lib\libmglib.lib" \
143    "$(GSDL_DIR)\indexers\mgpp\text\libmgpptext.lib" \
144    "$(GSDL_DIR)\indexers\mgpp\lib\libmgpplib.lib"
145
146EXECUTABLE_OBJECTS = \
147    $(OBJECTS) \
148    $(RECPT_OBJECTS) \
149    $(GSDL_LIBS)
150
151EXECUTABLE = oaiserver.exe
152
153
154oaiserver.exe: $(EXECUTABLE_OBJECTS)
155    $(LINK) $(EXECUTABLE_OBJECTS) $(LIBS)
156
157all: $(EXECUTABLE)
158
159install: $(EXECUTABLE)
160    copy oaiserver.exe "$(GSDL_DIR)\cgi-bin"
161
162clean:
163    del *.obj
164    del oaiserver.exe
Note: See TracBrowser for help on using the browser.