source: other-projects/trunk/gs2build-extra/win32.mak@ 16299

Last change on this file since 16299 was 16256, checked in by ak19, 16 years ago

Corrected 2 references to src\lib directory from lib and clean command also goes back up the corresponding two levels after cd-ing into src\lib

  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
RevLine 
[9757]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
27AR = lib
28CC = cl
29CPPFLAGS =
30
31GSDLHOME = $(MAKEDIR)
32USE_STLPORT = 0
33DLL = 0
34DLLDEBUG = 0
35
36MDEFINES = /f win32.mak
37COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
38
39SOURCES =
40
41OBJECTS =
42
[16256]43OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt src\lib
[9757]44
[15805]45INSTALLDIRS = src\gdbmedit\txt2db src\gdbmedit\db2txt src\hashfile src\phind\generate
[9757]46
47MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
48!IF $(USE_STLPORT)
49MAKECMD = $(MAKECMD) USE_STLPORT=1
50!ENDIF
51!IF $(DLL)
52MAKECMD = $(MAKECMD) DLL=1
53!ENDIF
54!IF $(DLLDEBUG)
55MAKECMD = $(MAKECMD) DLLDEBUG=1
56!ENDIF
57
[13867]58all: win32.mak indexers $(OTHERDIRS) $(INSTALLDIRS)
[9757]59
[13867]60install: win32.mak indexers-install $(INSTALLDIRS)
[9757]61
62$(OTHERDIRS): FORCE
63 cd "$@"
64 $(MAKECMD)
65 cd "$(GSDLHOME)"
66
67$(INSTALLDIRS): FORCE
68 cd "$@"
69 $(MAKECMD)
70 $(MAKECMD) install
71 cd "$(GSDLHOME)"
72
[13867]73indexers: FORCE
74 cd "indexers"
75 call winMake.bat all
76 cd "$(GSDLHOME)"
77
78indexers-install:
79 cd indexers
80 call winMake.bat install
81 cd "$(GSDLHOME)"
82
[9757]83FORCE:
[9770]84
85clean: win32.mak
86 cd packages\windows\gdbm\gdbm
87 $(MAKECMD) clean
88 cd ..\..\..\..
89 cd packages\windows\crypt\crypt
90 $(MAKECMD) clean
91 cd ..\..\..\..
[13858]92 cd indexers
93 call winMake.bat clean
94 cd ..
[16256]95 cd src\lib
[9770]96 $(MAKECMD) clean
[16256]97 cd ..\..
Note: See TracBrowser for help on using the repository browser.