source: trunk/gsdl/win32.mak@ 11256

Last change on this file since 11256 was 11256, checked in by mdewsnip, 18 years ago

Added a "GSDL_VC4" option that has to be specified with the nmake command when using Visual C++ 4. This is used to determine whether "-GX" (Visual C++ 4) or "-EHsc" (Visual C++ 6/Visual Studio 2005) is specified as a command-line option to the compiler.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 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
29USE_STLPORT = 0
30LOCAL_LIBRARY = 0
31DLL = 0
32DLLDEBUG = 0
33
34MDEFINES = /f win32.mak
35
36OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt packages\windows\expat\expat \
37 packages\mg\lib src\mgpp\lib lib src\colservr
38
39INSTALLDIRS = packages\mg\src\text src\mgpp\text src\recpt src\oaiservr \
40 src\hashfile src\db2txt src\txt2db
41
42MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
43!IF $(USE_STLPORT)
44MAKECMD = $(MAKECMD) USE_STLPORT=1
45!ENDIF
46!IF $(LOCAL_LIBRARY)
47MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
48INSTALLDIRS = $(INSTALLDIRS) src\w32server
49!ENDIF
50!IF $(DLL)
51MAKECMD = $(MAKECMD) DLL=1
52!ENDIF
53!IF $(DLLDEBUG)
54MAKECMD = $(MAKECMD) DLLDEBUG=1
55!ENDIF
56
57MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
58
59all: win32.mak $(OTHERDIRS) $(INSTALLDIRS)
60
61install: win32.mak $(INSTALLDIRS)
62
63clean:
64 cd packages\windows\crypt\crypt
65 $(MAKECLEANCMD)
66 cd "$(GSDLHOME)"
67 cd packages\windows\gdbm\gdbm
68 $(MAKECLEANCMD)
69 cd "$(GSDLHOME)"
70 cd packages\windows\expat\expat
71 $(MAKECLEANCMD)
72 cd "$(GSDLHOME)"
73 cd lib
74 $(MAKECLEANCMD)
75 cd "$(GSDLHOME)"
76 cd packages\mg\lib
77 $(MAKECLEANCMD)
78 cd "$(GSDLHOME)"
79 cd packages\mg\src\text
80 $(MAKECLEANCMD)
81 cd "$(GSDLHOME)"
82 cd src\mgpp\lib
83 $(MAKECLEANCMD)
84 cd "$(GSDLHOME)"
85 cd src\mgpp\text
86 $(MAKECLEANCMD)
87 cd "$(GSDLHOME)"
88 cd src\colservr
89 $(MAKECLEANCMD)
90 cd "$(GSDLHOME)"
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)"
100
101$(OTHERDIRS): FORCE
102 cd "$@"
103 $(MAKECMD)
104 cd "$(GSDLHOME)"
105
106$(INSTALLDIRS): FORCE
107 cd "$@"
108 $(MAKECMD)
109 $(MAKECMD) install
110 cd "$(GSDLHOME)"
111
112FORCE:
Note: See TracBrowser for help on using the repository browser.