source: gsdl/trunk/win32.mak@ 19291

Last change on this file since 19291 was 19017, checked in by davidb, 15 years ago

Provisional (optional) support for apache-httpd for Windows. Add APACHE_HTTPD=1 to end of nmake command line to activate

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