root/branches/New_Config_Format-branch/gsdl/src/recpt/win32.mak @ 1279

Revision 1279, 5.7 KB (checked in by sjboddie, 20 years ago)

merged changes to trunk into New_Config_Format branch

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1###########################################################################
2#
3# win32 makefile -- src/recpt
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 = c:\gsdl
28STLPATH = c:\stlport
29
30AR = lib
31CC = cl
32CPPFLAGS =
33LDFLAGS =
34DEFS = -DNZDL -DQUIET -D__WIN32__ -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H \
35       -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H -D__STL_NO_NEW_IOSTREAMS \
36       -DGSDLSERVER -DGSDLUSAGELOG 
37INCLUDES = -I$(GSDLHOME)\src\recpt -I$(GSDLHOME)\lib -I$(GSDLHOME)\src\colservr \
38       -I$(GSDLHOME)\packages\mg -I$(GSDLHOME)\packages\mg\lib \
39       -I$(GSDLHOME)\packages\mg\src\text -I$(GSDLHOME)\packages\wingdbm \
40       -I$(STLPATH) -I$(GSDLHOME)\packages\wincrypt
41
42LIBS = $(GSDLHOME)\packages\wingdbm\gdbm.lib $(GSDLHOME)\packages\wincrypt\crypt.lib
43
44COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
45LINK = $(CC) $(LDFLAGS) -o $@
46
47.SUFFIXES:
48.SUFFIXES: .c .obj
49.c.obj:
50    $(COMPILE) $<
51
52.SUFFIXES: .cpp .obj
53.cpp.obj:
54    $(COMPILE) $<
55
56
57COMMONHEADERS = receptionist.h cgiwrapper.h cgiargs.h action.h browserclass.h \
58                converter.h recptconfig.h cgiutils.h OIDtools.h browsetools.h htmlgen.h \
59        statusaction.h pageaction.h comtypes.h recptproto.h \
60        pingaction.h queryaction.h documentaction.h \
61        extlinkaction.h buildaction.h htmlutils.h \
62        querytools.h formattools.h tipaction.h authenaction.h infodbclass.h \
63                userdb.h usersaction.h vlistbrowserclass.h hlistbrowserclass.h \
64        datelistbrowserclass.h invbrowserclass.h pagedbrowserclass.h \
65        htmlbrowserclass.h delhistoryaction.h historydb.h
66
67RECEPTHEADERS =
68
69LIBRARYHEADERS = nullproto.h
70
71HEADERS = $(COMMONHEADERS) $(RECPTHEADERS) $(LIBRARYHEADERS)
72
73
74COMMONSOURCES = receptionist.cpp cgiwrapper.cpp cgiargs.cpp action.cpp browserclass.cpp \
75                converter.cpp recptconfig.cpp cgiutils.cpp OIDtools.cpp browsetools.cpp \
76        htmlgen.cpp statusaction.cpp pageaction.cpp comtypes.cpp \
77        recptproto.cpp pingaction.cpp queryaction.cpp documentaction.cpp \
78        extlinkaction.cpp buildaction.cpp htmlutils.cpp querytools.cpp formattools.cpp \
79        tipaction.cpp authenaction.cpp infodbclass.cpp userdb.cpp usersaction.cpp \
80        vlistbrowserclass.cpp hlistbrowserclass.cpp datelistbrowserclass.cpp \
81        invbrowserclass.cpp pagedbrowserclass.cpp htmlbrowserclass.cpp \
82        delhistoryaction.cpp historydb.cpp
83
84
85RECPTSOURCES = recptmain.cpp
86
87LIBRARYSOURCES = nullproto.cpp librarymain.cpp
88
89SOURCES = $(COMMONSOURCES) $(RECPTSOURCES) $(LIBRARYSOURCES)
90
91
92COMMONOBJECTS = receptionist.obj cgiwrapper.obj cgiargs.obj action.obj browserclass.obj \
93                converter.obj recptconfig.obj cgiutils.obj OIDtools.obj browsetools.obj \
94        htmlgen.obj statusaction.obj pageaction.obj comtypes.obj \
95        recptproto.obj pingaction.obj queryaction.obj documentaction.obj \
96        extlinkaction.obj buildaction.obj htmlutils.obj querytools.obj \
97        formattools.obj tipaction.obj authenaction.obj \
98                infodbclass.obj userdb.obj usersaction.obj vlistbrowserclass.obj \
99        hlistbrowserclass.obj datelistbrowserclass.obj invbrowserclass.obj \
100        pagedbrowserclass.obj htmlbrowserclass.obj delhistoryaction.obj \
101        historydb.obj
102
103RECPTOBJECTS = recptmain.obj
104
105LIBRARYOBJECTS = nullproto.obj librarymain.obj
106
107OBJECTS = $(COMMONOBJECTS) $(RECPTOBJECTS) $(LIBRARYOBJECTS)
108
109
110COLSERVROBJECTS = $(GSDLHOME)\src\colservr\mgq.obj \
111                  $(GSDLHOME)\src\colservr\mgsearch.obj \
112                  $(GSDLHOME)\src\colservr\querycache.obj \
113                  $(GSDLHOME)\src\colservr\queryinfo.obj \
114                  $(GSDLHOME)\src\colservr\collectserver.obj \
115                  $(GSDLHOME)\src\colservr\colservrconfig.obj \
116                  $(GSDLHOME)\src\colservr\maptools.obj \
117                  $(GSDLHOME)\src\colservr\filter.obj \
118                  $(GSDLHOME)\src\colservr\source.obj \
119                  $(GSDLHOME)\src\colservr\browsefilter.obj \
120                  $(GSDLHOME)\src\colservr\queryfilter.obj \
121                  $(GSDLHOME)\src\colservr\mggdbmsource.obj \
122                  $(GSDLHOME)\src\colservr\phrasesearch.obj \
123                  $(GSDLHOME)\src\colservr\phrasequeryfilter.obj
124
125EXEC = recpt.exe library.exe
126
127all: $(EXEC)
128
129clean:
130    del *.obj
131    del recpt.exe
132    del library.exe
133
134install:
135    copy library.exe $(GSDLHOME)\cgi-bin\library.exe
136
137# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
138
139RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
140    $(GSDLHOME)\lib\gsdllib.lib  \
141    $(GSDLHOME)\packages\mg\src\text\libtextin.lib \
142    $(GSDLHOME)\packages\mg\lib\libmg.lib
143
144recpt.exe: $(RECPT_OBJS)
145           $(LINK) $(RECPT_OBJS) $(LIBS)
146
147# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
148
149LIBRARY_OBJS = $(COMMONOBJECTS) $(LIBRARYOBJECTS) $(COLSERVROBJECTS) \
150    $(GSDLHOME)\lib\gsdllib.lib \
151    $(GSDLHOME)\packages\mg\src\text\libtextin.lib \
152    $(GSDLHOME)\packages\mg\lib\libmg.lib
153
154library.exe: $(LIBRARY_OBJS)
155         $(LINK) $(LIBRARY_OBJS) $(LIBS)
Note: See TracBrowser for help on using the browser.