root/gsdl/trunk/win32.mak @ 15822

Revision 15822, 3.4 KB (checked in by mdewsnip, 11 years ago)

Fix to compilation order with Z3950 enabled.

  • 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 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
47
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
66!ENDIF
67!IF $(USE_Z3950)
68MAKECMD = $(MAKECMD) USE_Z3950=1
69INSTALLDIRS = src\z3950 $(INSTALLDIRS)
70PACKAGEDIRS = $(PACKAGEDIRS) packages\d2m $(YAZ_DIR)
71!ENDIF
72
73MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
74
75all: win32.mak $(INDEXERSDIR) $(PACKAGEDIRS) $(COMPILEDIRS) $(INSTALLDIRS)
76
77install: win32.mak $(INDEXERSDIR) $(INSTALLDIRS)
78
79clean:
80    cd packages\windows\crypt\crypt
81    $(MAKECLEANCMD)
82    cd "$(GSDLHOME)"
83    cd packages\windows\gdbm\gdbm
84    $(MAKECLEANCMD)
85    cd "$(GSDLHOME)"
86    cd packages\windows\expat\expat
87    $(MAKECLEANCMD)
88    cd "$(GSDLHOME)"
89    cd lib
90    $(MAKECLEANCMD)
91    cd "$(GSDLHOME)"
92    cd src\colservr
93    $(MAKECLEANCMD)
94    cd "$(GSDLHOME)"
95    cd src\protocol
96    $(MAKECLEANCMD)
97    cd "$(GSDLHOME)"
98    cd src\recpt
99    $(MAKECLEANCMD)
100    cd "$(GSDLHOME)"
101    cd src\oaiservr
102    $(MAKECLEANCMD)
103    cd "$(GSDLHOME)"
104    cd src\w32server
105    $(MAKECLEANCMD)
106    cd "$(GSDLHOME)"
107    cd src\phind\generate
108    $(MAKECLEANCMD)
109    cd "$(GSDLHOME)"
110    cd src\hashfile
111    $(MAKECLEANCMD)
112    cd "$(GSDLHOME)"
113    cd src\gdbmedit\txt2db
114    $(MAKECLEANCMD)
115    cd "$(GSDLHOME)"
116    cd src\gdbmedit\db2txt
117    $(MAKECLEANCMD)
118    cd "$(GSDLHOME)"
119    cd indexers
120    call winMake.bat clean
121    cd "$(GSDLHOME)"
122
123$(COMPILEDIRS): FORCE
124    cd "$@"
125    $(MAKECMD)
126    cd "$(GSDLHOME)"
127
128$(INSTALLDIRS): FORCE
129    cd "$@"
130    $(MAKECMD)
131    $(MAKECMD) install
132    cd "$(GSDLHOME)"
133
134$(YAZ_DIR): FORCE
135    cd "$@"
136    nmake HAVE_ICONV=0 HAVE_LIBXML2=0
137    cd "$(GSDLHOME)"
138
139$(INDEXERSDIR): FORCE
140    cd "$@"
141    call winMake.bat all nojava
142    call winMake.bat install nojava
143    if NOT EXIST "$(GSDLHOME)\bin\windows" mkdir "$(GSDLHOME)\bin\windows"
144    copy bin\*.exe "$(GSDLHOME)\bin\windows"
145    cd "$(GSDLHOME)"
146
147FORCE:
148
Note: See TracBrowser for help on using the browser.