source: gsdl/trunk/win32.mak@ 15817

Last change on this file since 15817 was 15817, checked in by mdewsnip, 13 years ago

(Adding new DB support) Added support for USE_SQLITE=1 to Windows makefile.

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