root/main/trunk/greenstone2/win32.mak @ 24108

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

Windows makefiles to work with USE_GDBM and USE_JDBM: 1. Added winMake.bat to both gs-jdbm-1.0.tar.gz and common-src's jdbmedit so that jdbm java files can now get compiled up. 2. These new winMake bat files are then called from the updated windows makefiles in common-src and common-src's src-lib folder. 3. Changed win32.mak files to work with USE_GDBM and USE_JDBM: these set their USE_DBDEFINES flag when on to prevent memory errors due to makefiles' inconsistent setting of USE_DEFINES between folders. Also certain gdbm related lib, includes and dir statements are moved out of the general part of the windows makefiles into the USE_GDBM section of the makefiles.

  • Property svn:keywords set to Author Date Id Revision
Line 
1###########################################################################
2#
3# win32 makefile -- gsdl
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 = $(MAKEDIR)
28GSDL_VC4 = 0
29# It only ever makes sense for GS2 to turn on LOCAL_LIBRARY and APACHE_HTTPD if needed
30LOCAL_LIBRARY = 0
31APACHE_HTTPD = 0
32DEBUG = 0
33DLL = 0
34DLLDEBUG = 0
35# The main database backends are enabled by default
36USE_GDBM = 1
37USE_JDBM = 1
38# USE_SQLITE is enabled by default for GS2. Need to turn off explicitly for GS3 in build.xml
39USE_SQLITE = 1
40# It only ever makes sense for GS2 to turn on MSSQL if needed
41USE_MSSQL = 0
42USE_Z3950 = 0
43# by default, all indexers are enabled
44ENABLE_MG = 1
45ENABLE_MGPP = 1
46ENABLE_LUCENE = 1
47# jni is disabled by default as this is the default for GS2. GS3 will set this explicitly
48ENABLE_JNI = 0
49
50
51MDEFINES = /f win32.mak
52
53INSTALLDIRS = common-src build-src
54!IF EXIST ("runtime-src")
55INSTALLDIRS = $(INSTALLDIRS) runtime-src
56!ENDIF
57
58
59MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
60
61!IF $(GSDL_VC4)
62MAKECMD = $(MAKECMD) GSDL_VC4=1
63!ENDIF
64!IF $(LOCAL_LIBRARY)
65MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
66!ENDIF
67!IF $(APACHE_HTTPD)
68MAKECMD = $(MAKECMD) APACHE_HTTPD=1
69!ENDIF
70!IF $(DEBUG)
71MAKECMD = $(MAKECMD) DEBUG=1
72!ENDIF
73!IF $(DLL)
74MAKECMD = $(MAKECMD) DLL=1
75!ENDIF
76!IF $(DLLDEBUG)
77MAKECMD = $(MAKECMD) DLLDEBUG=1
78!ENDIF
79!IF !$(USE_GDBM)
80MAKECMD = $(MAKECMD) USE_GDBM=0
81!ENDIF
82!IF !$(USE_JDBM)
83MAKECMD = $(MAKECMD) USE_JDBM=0
84!ENDIF
85!IF !$(USE_SQLITE)
86MAKECMD = $(MAKECMD) USE_SQLITE=0
87!ENDIF
88!IF $(USE_MSSQL)
89MAKECMD = $(MAKECMD) USE_MSSQL=1
90!ENDIF
91!IF $(USE_Z3950)
92MAKECMD = $(MAKECMD) USE_Z3950=1
93!ENDIF
94!IF $(ENABLE_JNI)
95MAKECMD = $(MAKECMD) ENABLE_JNI=1
96!ENDIF
97!IF !$(ENABLE_MG)
98MAKECMD = $(MAKECMD) ENABLE_MG=0
99!ENDIF
100!IF !$(ENABLE_MGPP)
101MAKECMD = $(MAKECMD) ENABLE_MGPP=0
102!ENDIF
103!IF !$(ENABLE_LUCENE)
104MAKECMD = $(MAKECMD) ENABLE_LUCENE=0
105!ENDIF
106
107MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
108
109all: win32.mak $(INSTALLDIRS)
110
111install: win32.mak $(INSTALLDIRS)
112
113clean:
114    cd common-src
115    $(MAKECLEANCMD)
116    cd "$(GSDLHOME)"
117    cd build-src
118    $(MAKECLEANCMD)
119    cd "$(GSDLHOME)"
120!IF EXIST ("runtime-src")
121    cd runtime-src
122    $(MAKECLEANCMD)
123    cd "$(GSDLHOME)"
124!ENDIF
125
126$(INSTALLDIRS): FORCE
127    cd "$@"
128    $(MAKECMD)
129    $(MAKECMD) install
130    cd "$(GSDLHOME)"
131
132FORCE:
133
Note: See TracBrowser for help on using the browser.