root/main/trunk/greenstone2/runtime-src/win32.mak @ 20999

Revision 20430, 3.1 KB (checked in by ak19, 10 years ago)

1. Cleaning doesn't abort when the apache-httpd folder had never unzipped the httpd tar file before. 2. Correction to creating the logs-gsi folder.

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
60INSTALLDIRS = $(INSTALLDIRS) src\w32apachectl 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    if not exist "$(GSDLHOME)\etc\logs-gsi\*.*" MD "$(GSDLHOME)\etc\logs-gsi"
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 "$(RUNTIMEHOME)"
109    cd packages\apache-httpd
110    $(MAKECLEANCMD)
111    cd "$(GSDLHOME)"
112
113$(COMPILEDIRS): FORCE
114    cd "$(RUNTIMEHOME)"
115    cd "$@"
116    $(MAKECMD)
117    cd "$(GSDLHOME)"
118
119$(INSTALLDIRS): FORCE
120    cd "$(RUNTIMEHOME)"
121    cd "$@"
122    $(MAKECMD)
123    $(MAKECMD) install
124    cd "$(GSDLHOME)"
125
126$(YAZ_DIR): FORCE
127    cd "$@"
128    nmake HAVE_ICONV=0 HAVE_LIBXML2=0
129    cd "$(GSDLHOME)"
130
131FORCE:
132
Note: See TracBrowser for help on using the browser.