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

Last change on this file since 24958 was 24958, checked in by ak19, 12 years ago

First commit to do with Greenstone's support for RSS. Committing Dr Bainbridge's code which was already working for windows. This has now been tested on Linux, where it can be got to work with changes to zextra.dm and base.dm and if the rss-items.rdf file generated by the update to BasePlugout is moved to the index folder). The next set of commits will make the way rssaction.cpp accesses the rss-items.rdf file independent of where the GS server is located, with changes to the protocol class.

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