source: trunk/gsdl/src/w32server/win32.mak@ 2866

Last change on this file since 2866 was 2508, checked in by sjboddie, 23 years ago

* empty log message *

  • 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 =
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
61COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
62LINK = $(CC) $(LDFLAGS) -o $@
63
64.SUFFIXES:
65.SUFFIXES: .c .obj
66.c.obj:
67 $(COMPILE) $<
68
69.SUFFIXES: .cpp .obj
70.cpp.obj:
71 $(COMPILE) $<
72
73HEADERS = cgiwrapper.h conftools.h d_winsock.h fnord.h httpreq.h httpsend.h \
74 httpsrv.h locate.h netio.h parse.h settings.h startbrowser.h \
75 wincgiutils.h
76
77SOURCES = cgiwrapper.cpp conftools.cpp d_winsock.cpp fnord.cpp httpreq.cpp httpsend.cpp \
78 httpsrv.cpp locate.cpp netio.cpp parse.cpp settings.cpp startbrowser.cpp \
79 wincgiutils.cpp
80
81OBJECTS = cgiwrapper.obj conftools.obj d_winsock.obj fnord.obj httpreq.obj httpsend.obj \
82 httpsrv.obj locate.obj netio.obj parse.obj settings.obj startbrowser.obj \
83 wincgiutils.obj server.res
84
85EXEC = server.exe
86
87all: $(EXEC)
88
89clean:
90 del *.obj
91 del $(EXEC)
92
93install:
94 copy $(EXEC) "$(GSDLHOME)"
95
96server.exe: $(OBJECTS) $(LIBS)
97 $(LINK) $(OBJECTS) $(LIBS) $(WINLIBS)
98
99
100SOURCE = "$(GSDLHOME)\src\w32server\newgsdl.bmp"
101SOURCE = "$(GSDLHOME)\src\w32server\resource.h"
102SOURCE = "$(GSDLHOME)\src\w32server\server.ico"
103SOURCE = "$(GSDLHOME)\src\w32server\gsdlcol.bmp"
104SOURCE = "$(GSDLHOME)\src\w32server\server.rc"
105DEP_RSC_SERVE=\
106 "$(GSDLHOME)\src\w32server\gsdlcol.bmp"\
107 "$(GSDLHOME)\src\w32server\newgsdl.bmp"\
108 "$(GSDLHOME)\src\w32server\server.ico"
109
110server.res : $(SOURCE) $(DEP_RSC_SERVE) "$(GSDLHOME)\src\w32server"
111 $(RSC) /l 0x409 /fo"$(GSDLHOME)\src\w32server\server.res" /i "$(GSDLHOME)\src\w32server" \
112 /d "NDEBUG" $(SOURCE)
113
114
115"$(GSDLHOME)\src\w32server\server.res" : $(SOURCE) $(DEP_RSC_SERVE) "$(GSDLHOME)\src\w32server"
116 $(RSC) /l 0x409 /fo"$(GSDLHOME)\src\w32server\server.res" /i "$(GSDLHOME)\src\w32server" \
117 /d "NDEBUG" $(SOURCE)
118
Note: See TracBrowser for help on using the repository browser.