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

Last change on this file since 16895 was 16734, checked in by mdewsnip, 16 years ago

Fixes to SQLite compilation after David's changes.

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