root/gsdl/trunk/win32.mak @ 16063

Revision 16063, 3.7 KB (checked in by kjdon, 11 years ago)

for indexers, now call with gs2 arg instead of nojava - want lucene to be compiled. and we need to copy the LuceneWrapper?.jar to bin/java

  • 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
29LOCAL_LIBRARY = 0
30DLL = 0
31DLLDEBUG = 0
32USE_SQLITE = 0
33USE_Z3950 = 0
34
35MDEFINES = /f win32.mak
36
37INDEXERSDIR = indexers
38
39COMPILEDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt \
40        packages\windows\expat\expat src\lib src\colservr src\protocol
41
42INSTALLDIRS = src\hashfile src\gdbmedit\db2txt src\gdbmedit\txt2db src\phind\generate \
43        src\recpt src\oaiservr
44
45PACKAGEDIRS =
46
47SQLITE_DIR = packages\sqlite\sqlite-amalgamation-3.5.9
48YAZ_DIR = packages\yaz\yaz-2.1.4\win
49
50MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
51!IF $(GSDL_VC4)
52MAKECMD = $(MAKECMD) GSDL_VC4=1
53!ENDIF
54!IF $(LOCAL_LIBRARY)
55MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
56INSTALLDIRS = $(INSTALLDIRS) src\w32server
57!ENDIF
58!IF $(DLL)
59MAKECMD = $(MAKECMD) DLL=1
60!ENDIF
61!IF $(DLLDEBUG)
62MAKECMD = $(MAKECMD) DLLDEBUG=1
63!ENDIF
64!IF $(USE_SQLITE)
65MAKECMD = $(MAKECMD) USE_SQLITE=1
66PACKAGEDIRS = $(PACKAGEDIRS) $(SQLITE_DIR)
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) clean
75
76all: win32.mak $(INDEXERSDIR) $(PACKAGEDIRS) $(COMPILEDIRS) $(INSTALLDIRS)
77
78install: win32.mak $(INDEXERSDIR) $(INSTALLDIRS)
79
80clean:
81    cd packages\windows\crypt\crypt
82    $(MAKECLEANCMD)
83    cd "$(GSDLHOME)"
84    cd packages\windows\gdbm\gdbm
85    $(MAKECLEANCMD)
86    cd "$(GSDLHOME)"
87    cd packages\windows\expat\expat
88    $(MAKECLEANCMD)
89    cd "$(GSDLHOME)"
90    cd src\lib
91    $(MAKECLEANCMD)
92    cd "$(GSDLHOME)"
93    cd src\colservr
94    $(MAKECLEANCMD)
95    cd "$(GSDLHOME)"
96    cd src\protocol
97    $(MAKECLEANCMD)
98    cd "$(GSDLHOME)"
99    cd src\recpt
100    $(MAKECLEANCMD)
101    cd "$(GSDLHOME)"
102    cd src\oaiservr
103    $(MAKECLEANCMD)
104    cd "$(GSDLHOME)"
105    cd src\w32server
106    $(MAKECLEANCMD)
107    cd "$(GSDLHOME)"
108    cd src\phind\generate
109    $(MAKECLEANCMD)
110    cd "$(GSDLHOME)"
111    cd src\hashfile
112    $(MAKECLEANCMD)
113    cd "$(GSDLHOME)"
114    cd src\gdbmedit\txt2db
115    $(MAKECLEANCMD)
116    cd "$(GSDLHOME)"
117    cd src\gdbmedit\db2txt
118    $(MAKECLEANCMD)
119    cd "$(GSDLHOME)"
120    cd indexers
121    call winMake.bat clean
122    cd "$(GSDLHOME)"
123
124$(COMPILEDIRS): FORCE
125    cd "$@"
126    $(MAKECMD)
127    cd "$(GSDLHOME)"
128
129$(INSTALLDIRS): FORCE
130    cd "$@"
131    $(MAKECMD)
132    $(MAKECMD) install
133    cd "$(GSDLHOME)"
134
135$(SQLITE_DIR): FORCE
136    cd "$@"
137    $(MAKECMD)
138    $(MAKECMD) install
139    cd "$(GSDLHOME)"
140
141$(YAZ_DIR): FORCE
142    cd "$@"
143    nmake HAVE_ICONV=0 HAVE_LIBXML2=0
144    cd "$(GSDLHOME)"
145
146$(INDEXERSDIR): FORCE
147    cd "$@"
148    call winMake.bat all gs2
149    call winMake.bat install gs2
150    if NOT EXIST "$(GSDLHOME)\bin\windows" mkdir "$(GSDLHOME)\bin\windows"
151    if NOT EXIST "$(GSDLHOME)\bin\java" mkdir "$(GSDLHOME)\bin\java"
152    copy bin\*.exe "$(GSDLHOME)\bin\windows"
153    copy lucene-gs\LuceneWrapper.jar "$(GSDLHOME)\bin\java"
154    cd "$(GSDLHOME)"
155
156FORCE:
157
Note: See TracBrowser for help on using the browser.