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

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

Added new folder w32apachectl in src to compile up Apache webserver for GS2 Windows. Updated and tested win32.mak: it now calls the win32.mak in the w32apachectl folder.

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