[16589] | 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 |
|
---|
| 27 | GSDLHOME = $(MAKEDIR)
|
---|
| 28 | GSDL_VC4 = 0
|
---|
| 29 | LOCAL_LIBRARY = 0
|
---|
| 30 | DLL = 0
|
---|
| 31 | DLLDEBUG = 0
|
---|
| 32 | USE_SQLITE = 0
|
---|
| 33 | USE_Z3950 = 0
|
---|
| 34 |
|
---|
| 35 | MDEFINES = /f win32.mak
|
---|
| 36 |
|
---|
| 37 | INSTALLDIRS = common-src build-src
|
---|
| 38 |
|
---|
| 39 |
|
---|
| 40 | MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
|
---|
| 41 |
|
---|
| 42 | !IF $(GSDL_VC4)
|
---|
| 43 | MAKECMD = $(MAKECMD) GSDL_VC4=1
|
---|
| 44 | !ENDIF
|
---|
| 45 | !IF $(DLL)
|
---|
| 46 | MAKECMD = $(MAKECMD) DLL=1
|
---|
| 47 | !ENDIF
|
---|
| 48 | !IF $(DLLDEBUG)
|
---|
| 49 | MAKECMD = $(MAKECMD) DLLDEBUG=1
|
---|
| 50 | !ENDIF
|
---|
| 51 | !IF $(USE_SQLITE)
|
---|
| 52 | MAKECMD = $(MAKECMD) USE_SQLITE=1
|
---|
| 53 | !ENDIF
|
---|
| 54 |
|
---|
| 55 | MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
|
---|
| 56 |
|
---|
| 57 | all: win32.mak $(INSTALLDIRS)
|
---|
| 58 |
|
---|
| 59 | install: win32.mak $(INSTALLDIRS)
|
---|
| 60 |
|
---|
| 61 | clean:
|
---|
| 62 | cd common-src
|
---|
| 63 | $(MAKECLEANCMD)
|
---|
| 64 | cd "$(GSDLHOME)"
|
---|
| 65 | cd build-src
|
---|
| 66 | $(MAKECLEANCMD)
|
---|
| 67 | cd "$(GSDLHOME)"
|
---|
| 68 |
|
---|
| 69 | $(INSTALLDIRS): FORCE
|
---|
| 70 | cd "$@"
|
---|
| 71 | $(MAKECMD)
|
---|
| 72 | $(MAKECMD) install
|
---|
| 73 | cd "$(GSDLHOME)"
|
---|
| 74 |
|
---|
| 75 | FORCE:
|
---|
| 76 |
|
---|