source: gsdl/trunk/win32.mak@ 15818

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

Some tidy ups to Windows makefile in preparation for adding SQLite support.

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