source: main/trunk/greenstone2/win32.mak@ 22642

Last change on this file since 22642 was 22090, checked in by ak19, 14 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
File size: 3.1 KB
RevLine 
[1001]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
[2338]27GSDLHOME = $(MAKEDIR)
[11256]28GSDL_VC4 = 0
[21379]29# It only ever makes sense for GS2 to turn on LOCAL_LIBRARY and APACHE_HTTPD if needed
[2338]30LOCAL_LIBRARY = 0
[19017]31APACHE_HTTPD = 0
[19522]32DEBUG = 0
[7060]33DLL = 0
34DLLDEBUG = 0
[22090]35# The main database backends are enabled by default
36USE_GDBM = 1
37USE_JDBM = 1
[21379]38# USE_SQLITE is enabled by default for GS2. Need to turn off explicitly for GS3 in build.xml
[18076]39USE_SQLITE = 1
[21379]40# It only ever makes sense for GS2 to turn on MSSQL if needed
[17476]41USE_MSSQL = 0
[11554]42USE_Z3950 = 0
[21330]43# by default, all indexers are enabled
44ENABLE_MG = 1
45ENABLE_MGPP = 1
46ENABLE_LUCENE = 1
[21379]47# jni is disabled by default as this is the default for GS2. GS3 will set this explicitly
[21366]48ENABLE_JNI = 0
[21330]49
50
[7060]51MDEFINES = /f win32.mak
[1001]52
[21379]53INSTALLDIRS = common-src build-src
54!IF EXIST ("runtime-src")
55INSTALLDIRS = $(INSTALLDIRS) runtime-src
56!ENDIF
[15818]57
[1001]58
[16574]59MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
[15820]60
[11257]61!IF $(GSDL_VC4)
62MAKECMD = $(MAKECMD) GSDL_VC4=1
[2338]63!ENDIF
64!IF $(LOCAL_LIBRARY)
65MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
66!ENDIF
[19017]67!IF $(APACHE_HTTPD)
68MAKECMD = $(MAKECMD) APACHE_HTTPD=1
69!ENDIF
[19522]70!IF $(DEBUG)
71MAKECMD = $(MAKECMD) DEBUG=1
72!ENDIF
[7060]73!IF $(DLL)
74MAKECMD = $(MAKECMD) DLL=1
75!ENDIF
76!IF $(DLLDEBUG)
77MAKECMD = $(MAKECMD) DLLDEBUG=1
78!ENDIF
[22090]79!IF !$(USE_GDBM)
80MAKECMD = $(MAKECMD) USE_GDBM=0
81!ENDIF
82!IF !$(USE_JDBM)
83MAKECMD = $(MAKECMD) USE_JDBM=0
84!ENDIF
[21435]85!IF !$(USE_SQLITE)
86MAKECMD = $(MAKECMD) USE_SQLITE=0
[15817]87!ENDIF
[17476]88!IF $(USE_MSSQL)
89MAKECMD = $(MAKECMD) USE_MSSQL=1
90!ENDIF
[11554]91!IF $(USE_Z3950)
92MAKECMD = $(MAKECMD) USE_Z3950=1
93!ENDIF
[21435]94!IF $(ENABLE_JNI)
95MAKECMD = $(MAKECMD) ENABLE_JNI=1
[21366]96!ENDIF
[21435]97!IF !$(ENABLE_MG)
98MAKECMD = $(MAKECMD) ENABLE_MG=0
[21330]99!ENDIF
[21435]100!IF !$(ENABLE_MGPP)
101MAKECMD = $(MAKECMD) ENABLE_MGPP=0
[21330]102!ENDIF
[21435]103!IF !$(ENABLE_LUCENE)
104MAKECMD = $(MAKECMD) ENABLE_LUCENE=0
[21330]105!ENDIF
[1001]106
[16925]107MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
[9990]108
[16577]109all: win32.mak $(INSTALLDIRS)
[1001]110
[16574]111install: win32.mak $(INSTALLDIRS)
[2338]112
[9990]113clean:
[16574]114 cd common-src
[9990]115 $(MAKECLEANCMD)
116 cd "$(GSDLHOME)"
[16574]117 cd build-src
[9990]118 $(MAKECLEANCMD)
119 cd "$(GSDLHOME)"
[21379]120!IF EXIST ("runtime-src")
[16574]121 cd runtime-src
[11188]122 $(MAKECLEANCMD)
123 cd "$(GSDLHOME)"
[21379]124!ENDIF
[9990]125
[2338]126$(INSTALLDIRS): FORCE
127 cd "$@"
128 $(MAKECMD)
129 $(MAKECMD) install
130 cd "$(GSDLHOME)"
131
132FORCE:
[11554]133
Note: See TracBrowser for help on using the repository browser.