source: trunk/gsdl/win32.mak@ 14092

Last change on this file since 14092 was 14092, checked in by qq6, 15 years ago

delete a few lines when running make clean

  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 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 src\colservr
86 $(MAKECLEANCMD)
87 cd "$(GSDLHOME)"
88 cd src\recpt
89 $(MAKECLEANCMD)
90 cd "$(GSDLHOME)"
91 cd src\oaiservr
92 $(MAKECLEANCMD)
93 cd "$(GSDLHOME)"
94 cd src\w32server
95 $(MAKECLEANCMD)
96 cd "$(GSDLHOME)"
97 cd src\phind\generate
98 $(MAKECLEANCMD)
99 cd "$(GSDLHOME)"
100 cd src\hashfile
101 $(MAKECLEANCMD)
102 cd "$(GSDLHOME)"
103 cd src\txt2db
104 $(MAKECLEANCMD)
105 cd "$(GSDLHOME)"
106 cd src\db2txt
107 $(MAKECLEANCMD)
108 cd "$(GSDLHOME)"
109 cd indexers
110 call winMake.bat clean
111 cd "$(GSDLHOME)"
112
113$(OTHERDIRS): FORCE
114 cd "$@"
115 $(MAKECMD)
116 cd "$(GSDLHOME)"
117
118$(INSTALLDIRS): FORCE
119 cd "$@"
120 $(MAKECMD)
121 $(MAKECMD) install
122 cd "$(GSDLHOME)"
123
124$(YAZ_DIR): FORCE
125 cd "$@"
126 nmake HAVE_ICONV=0 HAVE_LIBXML2=0
127 cd "$(GSDLHOME)"
128
129$(INDEXERSDIR): FORCE
130 cd "$@"
131 call winMake.bat all nojava
132 call winMake.bat install nojava
133 copy bin\*.exe "$(GSDLHOME)\bin\windows"
134 cd "$(GSDLHOME)"
135
136FORCE:
137
Note: See TracBrowser for help on using the repository browser.