root/gsdl/trunk/runtime-src/win32.mak @ 18895

Revision 18177, 2.7 KB (checked in by ak19, 11 years ago)

MAKECLEANCMD needs to be passed GSDLHOME variable

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
32DLL = 0
33DLLDEBUG = 0
34USE_SQLITE = 1
35USE_MSSQL = 0
36USE_Z3950 = 0
37
38MDEFINES = /f win32.mak
39
40COMPILEDIRS = src\colservr src\protocol
41
42INSTALLDIRS = src\recpt src\oaiservr
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
65!IF $(USE_MSSQL)
66MAKECMD = $(MAKECMD) USE_MSSQL=1
67!ENDIF
68!IF $(USE_Z3950)
69MAKECMD = $(MAKECMD) USE_Z3950=1
70INSTALLDIRS = src\z3950 $(INSTALLDIRS)
71PACKAGEDIRS = $(PACKAGEDIRS) packages\d2m $(YAZ_DIR)
72!ENDIF
73
74MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
75
76all: win32.mak $(PACKAGEDIRS) $(COMPILEDIRS) $(INSTALLDIRS)
77
78install: win32.mak $(INSTALLDIRS)
79
80clean:
81    cd "$(RUNTIMEHOME)"
82    cd src\colservr
83    $(MAKECLEANCMD)
84    cd "$(RUNTIMEHOME)"
85    cd src\protocol
86    $(MAKECLEANCMD)
87    cd "$(RUNTIMEHOME)"
88    cd src\recpt
89    $(MAKECLEANCMD)
90    cd "$(RUNTIMEHOME)"
91    cd src\oaiservr
92    $(MAKECLEANCMD)
93    cd "$(RUNTIMEHOME)"
94    cd src\w32server
95    $(MAKECLEANCMD)
96    cd "$(GSDLHOME)"
97
98$(COMPILEDIRS): FORCE
99    cd "$(RUNTIMEHOME)"
100    cd "$@"
101    $(MAKECMD)
102    cd "$(GSDLHOME)"
103
104$(INSTALLDIRS): FORCE
105    cd "$(RUNTIMEHOME)"
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 browser.