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

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

MAKECLEANCMD needs to be passed GSDLHOME variable

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