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

Last change on this file since 11257 was 11257, checked in by mdewsnip, 17 years ago

Removed the USE_STLPORT option -- use GSDL_VC4 instead.

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