source: branches/changing-indexers-branch/gsdl/win32.mak@ 13754

Last change on this file since 13754 was 13754, checked in by kjdon, 17 years ago

indexers winMake now uses all instead of compile, and installs into indexers/bin, so we need to copy the files to where we want them

  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
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_Z3950 = 0
33
34MDEFINES = /f win32.mak
35
36OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt \
37 packages\windows\expat\expat lib src\colservr
38
39INSTALLDIRS = src\hashfile src\db2txt src\txt2db src\phind\generate \
40 src\recpt src\oaiservr
41
42
43YAZ_DIR = packages\yaz\yaz-2.1.4\win
44INDEXERSDIR = indexers
45
46MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
47!IF $(GSDL_VC4)
48MAKECMD = $(MAKECMD) GSDL_VC4=1
49!ENDIF
50!IF $(LOCAL_LIBRARY)
51MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
52INSTALLDIRS = $(INSTALLDIRS) src\w32server
53!ENDIF
54!IF $(DLL)
55MAKECMD = $(MAKECMD) DLL=1
56!ENDIF
57!IF $(DLLDEBUG)
58MAKECMD = $(MAKECMD) DLLDEBUG=1
59!ENDIF
60!IF $(USE_Z3950)
61MAKECMD = $(MAKECMD) USE_Z3950=1
62OTHERDIRS = packages\d2m $(OTHERDIRS)
63YAZ_DIRS = $(YAZ_DIR)
64!ENDIF
65
66MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
67
68all: win32.mak $(INDEXERSDIR) $(OTHERDIRS) $(YAZ_DIRS) $(INSTALLDIRS)
69
70install: win32.mak $(INDEXERSDIR) $(INSTALLDIRS)
71
72clean:
73 cd packages\windows\crypt\crypt
74 $(MAKECLEANCMD)
75 cd "$(GSDLHOME)"
76 cd packages\windows\gdbm\gdbm
77 $(MAKECLEANCMD)
78 cd "$(GSDLHOME)"
79 cd packages\windows\expat\expat
80 $(MAKECLEANCMD)
81 cd "$(GSDLHOME)"
82 cd lib
83 $(MAKECLEANCMD)
84 cd "$(GSDLHOME)"
85 cd packages\mg\lib
86 $(MAKECLEANCMD)
87 cd "$(GSDLHOME)"
88 cd packages\mg\src\text
89 $(MAKECLEANCMD)
90 cd "$(GSDLHOME)"
91 cd src\mgpp\lib
92 $(MAKECLEANCMD)
93 cd "$(GSDLHOME)"
94 cd src\mgpp\text
95 $(MAKECLEANCMD)
96 cd "$(GSDLHOME)"
97 cd src\colservr
98 $(MAKECLEANCMD)
99 cd "$(GSDLHOME)"
100 cd src\recpt
101 $(MAKECLEANCMD)
102 cd "$(GSDLHOME)"
103 cd src\oaiservr
104 $(MAKECLEANCMD)
105 cd "$(GSDLHOME)"
106 cd src\w32server
107 $(MAKECLEANCMD)
108 cd "$(GSDLHOME)"
109 cd src\phind\generate
110 $(MAKECLEANCMD)
111 cd "$(GSDLHOME)"
112 cd src\hashfile
113 $(MAKECLEANCMD)
114 cd "$(GSDLHOME)"
115 cd src\txt2db
116 $(MAKECLEANCMD)
117 cd "$(GSDLHOME)"
118 cd src\db2txt
119 $(MAKECLEANCMD)
120 cd "$(GSDLHOME)"
121 cd indexers
122 call winMake.bat clean
123 cd "$(GSDLHOME)"
124
125$(OTHERDIRS): FORCE
126 cd "$@"
127 $(MAKECMD)
128 cd "$(GSDLHOME)"
129
130$(INSTALLDIRS): FORCE
131 cd "$@"
132 $(MAKECMD)
133 $(MAKECMD) install
134 cd "$(GSDLHOME)"
135
136$(YAZ_DIR): FORCE
137 cd "$@"
138 nmake HAVE_ICONV=0 HAVE_LIBXML2=0
139 cd "$(GSDLHOME)"
140
141$(INDEXERSDIR): FORCE
142 cd "$@"
143 call winMake.bat all nojava
144 call winMake.bat install nojava
145 copy bin\*.exe "$(GSDLHOME)\bin\windows"
146 cd "$(GSDLHOME)"
147
148FORCE:
149
Note: See TracBrowser for help on using the repository browser.