root/gsdl/trunk/src/w32server/win32.mak @ 15532

Revision 15532, 4.6 KB (checked in by ak19, 12 years ago)

The gsdlprotocol.lib has been added to LIBS and protocol folder to includes so this folder can compile on Windows

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