source: gsdl/trunk/runtime-src/win32.mak@ 19521

Last change on this file since 19521 was 19521, checked in by ak19, 15 years ago

Dr Bainbridge updated the Windows makefiles to 1. Take the DEBUG flag so that we can recompile all of GS2 in the Vis C++ 2005 Express Edition command prompt and then use its Debugger on the C code. 2. Now GS2 make clean command cleans up all object and lib files that its make generates.

File size: 2.9 KB
Line 
1###########################################################################
2#
3# win32 makefile -- gsdl runtime code
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 = $(GSDLHOME)
28RUNTIMEHOME = $(MAKEDIR)
29
30GSDL_VC4 = 0
31LOCAL_LIBRARY = 0
32APACHE_HTTPD = 0
33DEBUG = 0
34DLL = 0
35DLLDEBUG = 0
36USE_SQLITE = 1
37USE_MSSQL = 0
38USE_Z3950 = 0
39
40MDEFINES = /f win32.mak
41
42COMPILEDIRS = src\colservr src\protocol
43
44INSTALLDIRS = src\recpt src\oaiservr
45
46PACKAGEDIRS =
47
48YAZ_DIR = packages\yaz\yaz-2.1.4\win
49
50MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
51!IF $(GSDL_VC4)
52MAKECMD = $(MAKECMD) GSDL_VC4=1
53!ENDIF
54!IF $(LOCAL_LIBRARY)
55MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
56INSTALLDIRS = $(INSTALLDIRS) src\w32server src\w32apachectl
57!ENDIF
58!IF $(APACHE_HTTPD)
59MAKECMD = $(MAKECMD) APACHE_HTTPD=1
60INSTALLDIRS = $(INSTALLDIRS) packages\apache-httpd
61!ENDIF
62!IF $(DEBUG)
63MAKECMD = $(MAKECMD) DEBUG=1
64!ENDIF
65!IF $(DLL)
66MAKECMD = $(MAKECMD) DLL=1
67!ENDIF
68!IF $(DLLDEBUG)
69MAKECMD = $(MAKECMD) DLLDEBUG=1
70!ENDIF
71!IF $(USE_SQLITE)
72MAKECMD = $(MAKECMD) USE_SQLITE=1
73!ENDIF
74!IF $(USE_MSSQL)
75MAKECMD = $(MAKECMD) USE_MSSQL=1
76!ENDIF
77!IF $(USE_Z3950)
78MAKECMD = $(MAKECMD) USE_Z3950=1
79INSTALLDIRS = src\z3950 $(INSTALLDIRS)
80PACKAGEDIRS = $(PACKAGEDIRS) packages\d2m $(YAZ_DIR)
81!ENDIF
82
83MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
84
85all: win32.mak $(PACKAGEDIRS) $(COMPILEDIRS) $(INSTALLDIRS)
86
87install: win32.mak $(INSTALLDIRS)
88
89clean:
90 cd "$(RUNTIMEHOME)"
91 cd src\colservr
92 $(MAKECLEANCMD)
93 cd "$(RUNTIMEHOME)"
94 cd src\protocol
95 $(MAKECLEANCMD)
96 cd "$(RUNTIMEHOME)"
97 cd src\recpt
98 $(MAKECLEANCMD)
99 cd "$(RUNTIMEHOME)"
100 cd src\oaiservr
101 $(MAKECLEANCMD)
102 cd "$(RUNTIMEHOME)"
103 cd src\w32server
104 $(MAKECLEANCMD)
105 cd "$(RUNTIMEHOME)"
106 cd src\w32apachectl
107 $(MAKECLEANCMD)
108 cd "$(GSDLHOME)"
109
110$(COMPILEDIRS): FORCE
111 cd "$(RUNTIMEHOME)"
112 cd "$@"
113 $(MAKECMD)
114 cd "$(GSDLHOME)"
115
116$(INSTALLDIRS): FORCE
117 cd "$(RUNTIMEHOME)"
118 cd "$@"
119 $(MAKECMD)
120 $(MAKECMD) install
121 cd "$(GSDLHOME)"
122
123$(YAZ_DIR): FORCE
124 cd "$@"
125 nmake HAVE_ICONV=0 HAVE_LIBXML2=0
126 cd "$(GSDLHOME)"
127
128FORCE:
129
Note: See TracBrowser for help on using the repository browser.