source: main/tags/2.80/gsdl/src/oaiservr/win32.mak@ 24527

Last change on this file since 24527 was 13773, checked in by kjdon, 17 years ago

mg, mgpp, unac. lucenewrap moved from gsdl into separate indexers repository so they can be easily shared with gs3.

  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 KB
Line 
1###########################################################################
2#
3# win32 makefile -- src/oaiservr
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 = ..\..
28GSDL_VC4 = 0
29DLL = 0
30DLLDEBUG = 0
31ENABLE_ACCENTFOLD = 1
32
33STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
34
35recptDir = $(GSDLHOME)\src\recpt
36colservrDir = $(GSDLHOME)\src\colservr
37srcDir = $(GSDLHOME)\src
38
39AR = lib
40CC = cl
41
42!IF $(GSDL_VC4)
43CPPFLAGS = -GX
44!ELSE
45CPPFLAGS = -EHsc
46!ENDIF
47
48!IF $(DLL)
49CPPFLAGS = $(CPPFLAGS) -MD
50!ELSE
51!IF ($(DLLDEBUG))
52CPPFLAGS = $(CPPFLAGS) -MDd
53!ENDIF
54!ENDIF
55
56LDFLAGS =
57DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
58INCLUDES = -I"$(GSDLHOME)\src\recpt" -I"$(GSDLHOME)\lib" -I"$(GSDLHOME)\src\colservr" \
59 -I"$(GSDLHOME)\indexers\mg" -I"$(GSDLHOME)\indexers\mg\lib" \
60 -I"$(GSDLHOME)\indexers\mg\src\text" -I"$(GSDLHOME)\packages\windows\gdbm\gdbm" \
61 -I"$(GSDLHOME)\packages\windows\crypt\crypt" -I"$(GSDLHOME)\indexers\mgpp\lib" \
62 -I"$(GSDLHOME)\indexers\mgpp\text" -I"$(GSDLHOME)"
63!IF $(GSDL_VC4)
64DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
65INCLUDES = $(INCLUDES) -I$(STLPATH)
66!ENDIF
67
68!IF $(ENABLE_ACCENTFOLD)
69AFLIBS = "$(GSDLHOME)\indexers\packages\unac\libunac.lib" "$(GSDLHOME)\indexers\packages\unac\iconv.lib"
70DEFS = $(DEFS) -DENABLE_ACCENTFOLD
71!ELSE
72AFLIBS =
73!ENDIF
74
75LIBS = "$(GSDLHOME)\packages\windows\gdbm\gdbm\gdbm.lib" \
76 "$(GSDLHOME)\packages\windows\crypt\crypt\crypt.lib" \
77 "$(GSDLHOME)\src\colservr\gsdlcolservr.lib" \
78 "$(GSDLHOME)\lib\gsdllib.lib" \
79 "$(GSDLHOME)\indexers\mg\src\text\libmgtext.lib" \
80 "$(GSDLHOME)\indexers\mg\lib\libmglib.lib" \
81 "$(GSDLHOME)\indexers\mgpp\text\libmgpptext.lib" \
82 "$(GSDLHOME)\indexers\mgpp\lib\libmgpplib.lib" \
83 "$(GSDLHOME)\packages\windows\expat\expat\libexpat.lib" \
84 $(AFLIBS)
85
86
87COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
88LINK = $(CC) -nologo $(LDFLAGS) -Fe"$@"
89
90.SUFFIXES:
91.SUFFIXES: .c .obj
92.c.obj:
93 $(COMPILE) $<
94
95.SUFFIXES: .cpp .obj
96.cpp.obj:
97 $(COMPILE) $<
98
99
100COMMONHEADERS = oaiargs.h oaiaction.h oaidispatcher.h oaiconfig.h identityaction.h recordaction.h \
101 listrecsaction.h listidsaction.h listsetsaction.h metaformatsaction.h oaitools.h \
102 abstractlistaction.h metaformat.h dublincore.h rfc1807.h resumptiontoken.h
103
104HEADERS = $(COMMONHEADERS)
105
106
107COMMONSOURCES = oaiargs.cpp oaiaction.cpp oaidispatcher.cpp oaiconfig.cpp identityaction.cpp recordaction.cpp \
108 abstractlistaction.cpp listrecsaction.cpp listidsaction.cpp listsetsaction.cpp \
109 metaformatsaction.cpp oaitools.cpp metaformat.cpp dublincore.cpp rfc1807.cpp \
110 resumptiontoken.cpp
111
112OAISOURCES =
113
114SOURCES = $(COMMONSOURCES) $(OAISOURCES)
115
116RECPTOBJECTS = "$(recptDir)\comtypes.obj" "$(recptDir)\OIDtools.obj" "$(recptDir)\nullproto.obj" "$(recptDir)\recptproto.obj" \
117 "$(recptDir)\htmlutils.obj" "$(recptDir)\infodbclass.obj" "$(recptDir)\recptconfig.obj" "$(recptDir)\cgiargs.obj" \
118 "$(recptDir)\cgiutils.obj"
119
120COMMONOBJECTS = oaiargs.obj oaiaction.obj oaiconfig.obj oaidispatcher.obj identityaction.obj recordaction.obj \
121 abstractlistaction.obj listrecsaction.obj listidsaction.obj listsetsaction.obj \
122 metaformatsaction.obj oaitools.obj \
123 metaformat.obj dublincore.obj rfc1807.obj resumptiontoken.obj $(RECPTOBJECTS)
124
125OAIOBJECTS = oaimain.obj
126
127OBJECTS = $(COMMONOBJECTS) $(OAIOBJECTS)
128
129OAI_OBJS = $(COMMONOBJECTS) $(OAIOBJECTS) $(LIBS)
130
131EXEC = oaiserver.exe
132
133all: $(EXEC)
134
135clean:
136 del *.obj
137 del oaiserver.exe
138install:
139 copy oaiserver.exe "$(GSDLHOME)\cgi-bin"
140
141oaiserver.exe: $(OAI_OBJS)
142 $(LINK) $(OAI_OBJS)
Note: See TracBrowser for help on using the repository browser.