root/gsdl/trunk/win32.mak @ 16577

Revision 16577, 2.0 KB (checked in by davidb, 11 years ago)

Minor tweaks to windows make files

  • Property svn:keywords set to Author Date Id Revision
RevLine 
[1001]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
[2338]27GSDLHOME = $(MAKEDIR)
[11256]28GSDL_VC4 = 0
[2338]29LOCAL_LIBRARY = 0
[7060]30DLL = 0
31DLLDEBUG = 0
[15817]32USE_SQLITE = 0
[11554]33USE_Z3950 = 0
[7060]34
35MDEFINES = /f win32.mak
[1001]36
[16574]37INSTALLDIRS = common-src build-src runtime-src
[15818]38
[1001]39
[2338]40MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
[16574]41
[11257]42!IF $(GSDL_VC4)
43MAKECMD = $(MAKECMD) GSDL_VC4=1
[2338]44!ENDIF
45!IF $(LOCAL_LIBRARY)
46MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
47!ENDIF
[7060]48!IF $(DLL)
49MAKECMD = $(MAKECMD) DLL=1
50!ENDIF
51!IF $(DLLDEBUG)
52MAKECMD = $(MAKECMD) DLLDEBUG=1
53!ENDIF
[15817]54!IF $(USE_SQLITE)
55MAKECMD = $(MAKECMD) USE_SQLITE=1
56!ENDIF
[11554]57!IF $(USE_Z3950)
58MAKECMD = $(MAKECMD) USE_Z3950=1
59!ENDIF
[1001]60
[9990]61MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
62
[16577]63all: win32.mak $(INSTALLDIRS)
[1001]64
[16574]65install: win32.mak $(INSTALLDIRS)
[2338]66
[9990]67clean:
[16574]68    cd common-src
[9990]69    $(MAKECLEANCMD)
70    cd "$(GSDLHOME)"
[16574]71    cd build-src
[9990]72    $(MAKECLEANCMD)
73    cd "$(GSDLHOME)"
[16574]74    cd runtime-src
[11188]75    $(MAKECLEANCMD)
76    cd "$(GSDLHOME)"
[9990]77
[2338]78$(INSTALLDIRS): FORCE
79    cd "$@"
80    $(MAKECMD)
81    $(MAKECMD) install
82    cd "$(GSDLHOME)"
83
84FORCE:
[11554]85
Note: See TracBrowser for help on using the browser.