source: main/tags/2.51-fiji/gsdl/src/w32server/win32.mak@ 26313

Last change on this file since 26313 was 3056, checked in by sjboddie, 22 years ago

Commented out recent change to make socket read non-blocking. This
change didn't appear to have the desired effect (certainly on Windows 98
the problems remained) and relied on wsock32.lib being linked at compile
time. Including wsock32 might be ok but it needs some testing to be sure.
That is, how will it react with restricted (billsock) version, particularly
on machines that don't have networking installed? For now it seems safer
to live with the bug we know.

  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
Line 
1###########################################################################
2#
3# win32 makefile -- src/w32server
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
29STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
30
31AR = lib
32CC = cl
33RSC = rc
34CPPFLAGS = -GX
35LDFLAGS =
36DEFS = -DHAVE_CONFIG_H -D_LITTLE_ENDIAN -DPARADOCNUM -D__WIN32__ \
37 -DSHORT_SUFFIX
38INCLUDES = -I"$(GSDLHOME)\src\w32server" -I"$(GSDLHOME)\src\recpt" -I"$(GSDLHOME)\lib" \
39 -I"$(GSDLHOME)\src\colservr" -I"$(GSDLHOME)\packages\mg" \
40 -I"$(GSDLHOME)\packages\mg\lib" -I"$(GSDLHOME)\packages\mg\src\text" \
41 -I"$(GSDLHOME)\src\mgpp\lib" -I"$(GSDLHOME)\src\mgpp\text" -I"$(GSDLHOME)"
42!IF $(USE_STLPORT)
43DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
44INCLUDES = $(INCLUDES) -I$(STLPATH)
45!ENDIF
46
47LIBS = "$(GSDLHOME)\lib\gsdllib.lib" \
48 "$(GSDLHOME)\packages\mg\src\text\libtextin.lib" \
49 "$(GSDLHOME)\packages\mg\lib\libmg.lib" \
50 "$(GSDLHOME)\src\colservr\gsdlcolservr.lib" \
51 "$(GSDLHOME)\src\recpt\gsdlrecpt.lib" \
52 "$(GSDLHOME)\packages\windows\gdbm\gdbm\gdbm.lib" \
53 "$(GSDLHOME)\packages\windows\crypt\crypt\crypt.lib" \
54 "$(GSDLHOME)\src\mgpp\lib\libmg.lib" \
55 "$(GSDLHOME)\src\mgpp\text\libtextin.lib"
56
57WINLIBS = kernel32.lib user32.lib gdi32.lib winspool.lib \
58 comdlg32.lib advapi32.lib shell32.lib ole32.lib \
59 oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
60#wsock32.lib
61
62COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
63LINK = $(CC) $(LDFLAGS) -o $@
64
65.SUFFIXES:
66.SUFFIXES: .c .obj
67.c.obj:
68 $(COMPILE) $<
69
70.SUFFIXES: .cpp .obj
71.cpp.obj:
72 $(COMPILE) $<
73
74HEADERS = cgiwrapper.h conftools.h d_winsock.h fnord.h httpreq.h httpsend.h \
75 httpsrv.h locate.h netio.h parse.h settings.h startbrowser.h \
76 wincgiutils.h
77
78SOURCES = cgiwrapper.cpp conftools.cpp d_winsock.cpp fnord.cpp httpreq.cpp httpsend.cpp \
79 httpsrv.cpp locate.cpp netio.cpp parse.cpp settings.cpp startbrowser.cpp \
80 wincgiutils.cpp
81
82OBJECTS = cgiwrapper.obj conftools.obj d_winsock.obj fnord.obj httpreq.obj httpsend.obj \
83 httpsrv.obj locate.obj netio.obj parse.obj settings.obj startbrowser.obj \
84 wincgiutils.obj server.res
85
86EXEC = server.exe
87
88all: $(EXEC)
89
90clean:
91 del *.obj
92 del $(EXEC)
93
94install:
95 copy $(EXEC) "$(GSDLHOME)"
96
97server.exe: $(OBJECTS) $(LIBS)
98 $(LINK) $(OBJECTS) $(LIBS) $(WINLIBS)
99
100
101SOURCE = "$(GSDLHOME)\src\w32server\newgsdl.bmp"
102SOURCE = "$(GSDLHOME)\src\w32server\resource.h"
103SOURCE = "$(GSDLHOME)\src\w32server\server.ico"
104SOURCE = "$(GSDLHOME)\src\w32server\gsdlcol.bmp"
105SOURCE = "$(GSDLHOME)\src\w32server\server.rc"
106DEP_RSC_SERVE=\
107 "$(GSDLHOME)\src\w32server\gsdlcol.bmp"\
108 "$(GSDLHOME)\src\w32server\newgsdl.bmp"\
109 "$(GSDLHOME)\src\w32server\server.ico"
110
111server.res : $(SOURCE) $(DEP_RSC_SERVE) "$(GSDLHOME)\src\w32server"
112 $(RSC) /l 0x409 /fo"$(GSDLHOME)\src\w32server\server.res" /i "$(GSDLHOME)\src\w32server" \
113 /d "NDEBUG" $(SOURCE)
114
115
116"$(GSDLHOME)\src\w32server\server.res" : $(SOURCE) $(DEP_RSC_SERVE) "$(GSDLHOME)\src\w32server"
117 $(RSC) /l 0x409 /fo"$(GSDLHOME)\src\w32server\server.res" /i "$(GSDLHOME)\src\w32server" \
118 /d "NDEBUG" $(SOURCE)
119
Note: See TracBrowser for help on using the repository browser.