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

Last change on this file since 10918 was 10918, checked in by kjdon, 16 years ago

some src packages were left off the INSTALLDIRS list

  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 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 \
44 packages\mg\lib src\mgpp\lib lib
45
46INSTALLDIRS = packages\mg\src\text src\mgpp\text src\txt2db src\db2txt src\hashfile src\phind\generate
47
48MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
49!IF $(USE_STLPORT)
50MAKECMD = $(MAKECMD) USE_STLPORT=1
51!ENDIF
52!IF $(DLL)
53MAKECMD = $(MAKECMD) DLL=1
54!ENDIF
55!IF $(DLLDEBUG)
56MAKECMD = $(MAKECMD) DLLDEBUG=1
57!ENDIF
58
59all: win32.mak $(OTHERDIRS) $(INSTALLDIRS)
60
61install: win32.mak $(INSTALLDIRS)
62
63$(OTHERDIRS): FORCE
64 cd "$@"
65 $(MAKECMD)
66 cd "$(GSDLHOME)"
67
68$(INSTALLDIRS): FORCE
69 cd "$@"
70 $(MAKECMD)
71 $(MAKECMD) install
72 cd "$(GSDLHOME)"
73
74FORCE:
75
76clean: win32.mak
77 cd packages\windows\gdbm\gdbm
78 $(MAKECMD) clean
79 cd ..\..\..\..
80 cd packages\windows\crypt\crypt
81 $(MAKECMD) clean
82 cd ..\..\..\..
83 cd packages\mg\lib
84 $(MAKECMD) clean
85 cd ..\..\..
86 cd packages\mg\src\text
87 $(MAKECMD) clean
88 cd ..\..\..\..
89 cd src\mgpp\lib
90 $(MAKECMD) clean
91 cd ..\..\..
92 cd src\mgpp\text
93 $(MAKECMD) clean
94 cd ..\..\..
95 cd lib
96 $(MAKECMD) clean
97 cd ..
Note: See TracBrowser for help on using the repository browser.