source: trunk/gs2build-extra/win32.mak@ 13858

Last change on this file since 13858 was 13858, checked in by kjdon, 15 years ago

modified windows makefiles to use new indexers package

  • Property svn:keywords set to Author Date Id Revision
File size: 2.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
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
43OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt lib
44
45INSTALLDIRS = src\txt2db src\db2txt src\hashfile src\phind\generate
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
58all: win32.mak $(OTHERDIRS) $(INSTALLDIRS)
59 cd indexers
60 call winMake.bat all
61 cd ..
62
63install: win32.mak $(INSTALLDIRS)
64 cd indexers
65 call winMake.bat install
66 cd ..
67
68$(OTHERDIRS): FORCE
69 cd "$@"
70 $(MAKECMD)
71 cd "$(GSDLHOME)"
72
73$(INSTALLDIRS): FORCE
74 cd "$@"
75 $(MAKECMD)
76 $(MAKECMD) install
77 cd "$(GSDLHOME)"
78
79FORCE:
80
81clean: win32.mak
82 cd packages\windows\gdbm\gdbm
83 $(MAKECMD) clean
84 cd ..\..\..\..
85 cd packages\windows\crypt\crypt
86 $(MAKECMD) clean
87 cd ..\..\..\..
88 cd indexers
89 call winMake.bat clean
90 cd ..
91 cd lib
92 $(MAKECMD) clean
93 cd ..
Note: See TracBrowser for help on using the repository browser.