source: gsdl/trunk/win32.mak@ 15516

Last change on this file since 15516 was 15516, checked in by mdewsnip, 16 years ago

Updated win32.mak to do the new src/protocol directory, and changed txt2db and db2txt to gdbmedit\txt2db and gdbmedit\db2txt.

  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
RevLine 
[1001]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
[2338]27GSDLHOME = $(MAKEDIR)
[11256]28GSDL_VC4 = 0
[2338]29LOCAL_LIBRARY = 0
[7060]30DLL = 0
31DLLDEBUG = 0
[11554]32USE_Z3950 = 0
[7060]33
34MDEFINES = /f win32.mak
[1001]35
[13777]36OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt \
[15516]37 packages\windows\expat\expat lib src\colservr src\protocol
[1001]38
[15516]39INSTALLDIRS = src\hashfile src\gdbmedit\db2txt src\gdbmedit\txt2db src\phind\generate \
[13777]40 src\recpt src\oaiservr
41
[1001]42
[11554]43YAZ_DIR = packages\yaz\yaz-2.1.4\win
[13777]44INDEXERSDIR = indexers
[11554]45
[2338]46MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
[11257]47!IF $(GSDL_VC4)
48MAKECMD = $(MAKECMD) GSDL_VC4=1
[2338]49!ENDIF
50!IF $(LOCAL_LIBRARY)
51MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
52INSTALLDIRS = $(INSTALLDIRS) src\w32server
53!ENDIF
[7060]54!IF $(DLL)
55MAKECMD = $(MAKECMD) DLL=1
56!ENDIF
57!IF $(DLLDEBUG)
58MAKECMD = $(MAKECMD) DLLDEBUG=1
59!ENDIF
[11554]60!IF $(USE_Z3950)
61MAKECMD = $(MAKECMD) USE_Z3950=1
62OTHERDIRS = packages\d2m $(OTHERDIRS)
63YAZ_DIRS = $(YAZ_DIR)
64!ENDIF
[1001]65
[9990]66MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
67
[13777]68all: win32.mak $(INDEXERSDIR) $(OTHERDIRS) $(YAZ_DIRS) $(INSTALLDIRS)
[1001]69
[13777]70install: win32.mak $(INDEXERSDIR) $(INSTALLDIRS)
[2338]71
[9990]72clean:
73 cd packages\windows\crypt\crypt
74 $(MAKECLEANCMD)
75 cd "$(GSDLHOME)"
76 cd packages\windows\gdbm\gdbm
77 $(MAKECLEANCMD)
78 cd "$(GSDLHOME)"
[11188]79 cd packages\windows\expat\expat
80 $(MAKECLEANCMD)
81 cd "$(GSDLHOME)"
[9990]82 cd lib
83 $(MAKECLEANCMD)
84 cd "$(GSDLHOME)"
85 cd src\colservr
86 $(MAKECLEANCMD)
87 cd "$(GSDLHOME)"
[15516]88 cd src\protocol
89 $(MAKECLEANCMD)
90 cd "$(GSDLHOME)"
[9990]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)"
[12404]100 cd src\phind\generate
101 $(MAKECLEANCMD)
102 cd "$(GSDLHOME)"
[12684]103 cd src\hashfile
104 $(MAKECLEANCMD)
105 cd "$(GSDLHOME)"
[15516]106 cd src\gdbmedit\txt2db
[12684]107 $(MAKECLEANCMD)
108 cd "$(GSDLHOME)"
[15516]109 cd src\gdbmedit\db2txt
[12684]110 $(MAKECLEANCMD)
111 cd "$(GSDLHOME)"
[13777]112 cd indexers
113 call winMake.bat clean
114 cd "$(GSDLHOME)"
[9990]115
[2338]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
[11554]127$(YAZ_DIR): FORCE
128 cd "$@"
129 nmake HAVE_ICONV=0 HAVE_LIBXML2=0
130 cd "$(GSDLHOME)"
131
[13777]132$(INDEXERSDIR): FORCE
133 cd "$@"
134 call winMake.bat all nojava
135 call winMake.bat install nojava
[15056]136 if NOT EXIST "$(GSDLHOME)\bin\windows" mkdir "$(GSDLHOME)\bin\windows"
[13777]137 copy bin\*.exe "$(GSDLHOME)\bin\windows"
138 cd "$(GSDLHOME)"
139
[2338]140FORCE:
[11554]141
Note: See TracBrowser for help on using the repository browser.