source: branches/changing-indexers-branch/gsdl/src/w32server/win32.mak@ 13759

Last change on this file since 13759 was 13759, checked in by kjdon, 17 years ago

changes for new indexers repository, and new names for soem of mg/mgpp libraries

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