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

Last change on this file since 15422 was 15422, checked in by mdewsnip, 16 years ago

The infodbclass is no longer in src/recpt.

  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
RevLine 
[8239]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 = ..\..
[11256]28GSDL_VC4 = 0
[8239]29DLL = 0
30DLLDEBUG = 0
[12990]31ENABLE_ACCENTFOLD = 1
32
[8239]33STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
34
35recptDir = $(GSDLHOME)\src\recpt
36colservrDir = $(GSDLHOME)\src\colservr
37srcDir = $(GSDLHOME)\src
38
39AR = lib
40CC = cl
41
[11256]42!IF $(GSDL_VC4)
[8239]43CPPFLAGS = -GX
[11256]44!ELSE
45CPPFLAGS = -EHsc
46!ENDIF
47
[8239]48!IF $(DLL)
49CPPFLAGS = $(CPPFLAGS) -MD
50!ELSE
51!IF ($(DLLDEBUG))
52CPPFLAGS = $(CPPFLAGS) -MDd
53!ENDIF
54!ENDIF
55
56LDFLAGS =
[11253]57DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
[8239]58INCLUDES = -I"$(GSDLHOME)\src\recpt" -I"$(GSDLHOME)\lib" -I"$(GSDLHOME)\src\colservr" \
[13773]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)"
[11257]63!IF $(GSDL_VC4)
[8239]64DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
65INCLUDES = $(INCLUDES) -I$(STLPATH)
66!ENDIF
67
[12990]68!IF $(ENABLE_ACCENTFOLD)
[13773]69AFLIBS = "$(GSDLHOME)\indexers\packages\unac\libunac.lib" "$(GSDLHOME)\indexers\packages\unac\iconv.lib"
[12990]70DEFS = $(DEFS) -DENABLE_ACCENTFOLD
71!ELSE
72AFLIBS =
73!ENDIF
74
[8239]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" \
[13773]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" \
[12990]83 "$(GSDLHOME)\packages\windows\expat\expat\libexpat.lib" \
84 $(AFLIBS)
[8239]85
86
[11253]87COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
[11255]88LINK = $(CC) -nologo $(LDFLAGS) -Fe"$@"
[8239]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
[15422]116RECPTOBJECTS = "$(recptDir)\recptproto.obj" "$(recptDir)\recptprototools.obj" \
117 "$(recptDir)\nullproto.obj" "$(recptDir)\htmlutils.obj" \
118 "$(recptDir)\cgiargs.obj" "$(recptDir)\cgiutils.obj"
[8239]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
[8309]129OAI_OBJS = $(COMMONOBJECTS) $(OAIOBJECTS) $(LIBS)
[8239]130
[8329]131EXEC = oaiserver.exe
[8239]132
133all: $(EXEC)
134
135clean:
136 del *.obj
[8329]137 del oaiserver.exe
[8239]138install:
[8329]139 copy oaiserver.exe "$(GSDLHOME)\cgi-bin"
[8239]140
[8329]141oaiserver.exe: $(OAI_OBJS)
[8309]142 $(LINK) $(OAI_OBJS)
Note: See TracBrowser for help on using the repository browser.