source: gsdl/trunk/src/oaiservr/win32.mak@ 15546

Last change on this file since 15546 was 15546, checked in by mdewsnip, 13 years ago

Added a new "PACKAGE_DIRS" path value in the Makefiles to make paths a bit shorter.

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