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

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

To be tested: Makes logs folder to keep in sync with what the Linux makefile does. This log folder is needed by the Server.jar. Can only test this out upon checking out and compiling, for which it first needs to be checked in.

File size: 3.0 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
57!ENDIF
58!IF $(APACHE_HTTPD)
59MAKECMD = $(MAKECMD) APACHE_HTTPD=1
60MD ../etc/logs-gsi
61INSTALLDIRS = $(INSTALLDIRS) src\w32apachectl packages\apache-httpd
62!ENDIF
63!IF $(DEBUG)
64MAKECMD = $(MAKECMD) DEBUG=1
65!ENDIF
66!IF $(DLL)
67MAKECMD = $(MAKECMD) DLL=1
68!ENDIF
69!IF $(DLLDEBUG)
70MAKECMD = $(MAKECMD) DLLDEBUG=1
71!ENDIF
72!IF $(USE_SQLITE)
73MAKECMD = $(MAKECMD) USE_SQLITE=1
74!ENDIF
75!IF $(USE_MSSQL)
76MAKECMD = $(MAKECMD) USE_MSSQL=1
77!ENDIF
78!IF $(USE_Z3950)
79MAKECMD = $(MAKECMD) USE_Z3950=1
80INSTALLDIRS = src\z3950 $(INSTALLDIRS)
81PACKAGEDIRS = $(PACKAGEDIRS) packages\d2m $(YAZ_DIR)
82!ENDIF
83
84MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
85
86all: win32.mak $(PACKAGEDIRS) $(COMPILEDIRS) $(INSTALLDIRS)
87
88install: win32.mak $(INSTALLDIRS)
89
90clean:
91 cd "$(RUNTIMEHOME)"
92 cd src\colservr
93 $(MAKECLEANCMD)
94 cd "$(RUNTIMEHOME)"
95 cd src\protocol
96 $(MAKECLEANCMD)
97 cd "$(RUNTIMEHOME)"
98 cd src\recpt
99 $(MAKECLEANCMD)
100 cd "$(RUNTIMEHOME)"
101 cd src\oaiservr
102 $(MAKECLEANCMD)
103 cd "$(RUNTIMEHOME)"
104 cd src\w32server
105 $(MAKECLEANCMD)
106 cd "$(RUNTIMEHOME)"
107 cd src\w32apachectl
108 $(MAKECLEANCMD)
109 cd "$(RUNTIMEHOME)"
110 cd packages\apache-httpd
111 $(MAKECLEANCMD)
112 cd "$(GSDLHOME)"
113
114$(COMPILEDIRS): FORCE
115 cd "$(RUNTIMEHOME)"
116 cd "$@"
117 $(MAKECMD)
118 cd "$(GSDLHOME)"
119
120$(INSTALLDIRS): FORCE
121 cd "$(RUNTIMEHOME)"
122 cd "$@"
123 $(MAKECMD)
124 $(MAKECMD) install
125 cd "$(GSDLHOME)"
126
127$(YAZ_DIR): FORCE
128 cd "$@"
129 nmake HAVE_ICONV=0 HAVE_LIBXML2=0
130 cd "$(GSDLHOME)"
131
132FORCE:
133
Note: See TracBrowser for help on using the repository browser.