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

Last change on this file since 11188 was 11188, checked in by mdewsnip, 18 years ago

The expat library is now compiled too, rather than being included statically. Also, the expat stuff contained in expat.zip is in a "expat" folder.

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