root/gsdl/trunk/win32.mak @ 15573

Revision 15573, 3.3 KB (checked in by mdewsnip, 11 years ago)

Fixed up another problem compiling the Z39.50 stuff on Windows.

  • 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_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 src\protocol
38
39INSTALLDIRS = src\hashfile src\gdbmedit\db2txt src\gdbmedit\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 = $(OTHERDIRS) src\z3950
63YAZ_DIRS = packages\d2m $(YAZ_DIR)
64!ENDIF
65
66MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
67
68all: win32.mak $(INDEXERSDIR) $(YAZ_DIRS) $(OTHERDIRS) $(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 src\colservr
86    $(MAKECLEANCMD)
87    cd "$(GSDLHOME)"
88    cd src\protocol
89    $(MAKECLEANCMD)
90    cd "$(GSDLHOME)"
91    cd src\recpt
92    $(MAKECLEANCMD)
93    cd "$(GSDLHOME)"
94    cd src\oaiservr
95    $(MAKECLEANCMD)
96    cd "$(GSDLHOME)"
97    cd src\w32server
98    $(MAKECLEANCMD)
99    cd "$(GSDLHOME)"
100    cd src\phind\generate
101    $(MAKECLEANCMD)
102    cd "$(GSDLHOME)"
103    cd src\hashfile
104    $(MAKECLEANCMD)
105    cd "$(GSDLHOME)"
106    cd src\gdbmedit\txt2db
107    $(MAKECLEANCMD)
108    cd "$(GSDLHOME)"
109    cd src\gdbmedit\db2txt
110    $(MAKECLEANCMD)
111    cd "$(GSDLHOME)"
112    cd indexers
113    call winMake.bat clean
114    cd "$(GSDLHOME)"
115
116$(OTHERDIRS): FORCE
117    cd "$@"
118    $(MAKECMD)
119    cd "$(GSDLHOME)"
120
121$(INSTALLDIRS): FORCE
122    cd "$@"
123    $(MAKECMD)
124    $(MAKECMD) install
125    cd "$(GSDLHOME)"
126
127$(YAZ_DIR): FORCE
128    cd "$@"
129    nmake HAVE_ICONV=0 HAVE_LIBXML2=0
130    cd "$(GSDLHOME)"
131
132$(INDEXERSDIR): FORCE
133    cd "$@"
134    call winMake.bat all nojava
135    call winMake.bat install nojava
136    if NOT EXIST "$(GSDLHOME)\bin\windows" mkdir "$(GSDLHOME)\bin\windows"
137    copy bin\*.exe "$(GSDLHOME)\bin\windows"
138    cd "$(GSDLHOME)"
139
140FORCE:
141
Note: See TracBrowser for help on using the browser.