source: gsdl/trunk/runtime-src/src/oaiservr/win32.mak@ 18864

Last change on this file since 18864 was 18864, checked in by kjdon, 12 years ago

added new qualified_dublincore files into sources and objects lists

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