[9757] | 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 | AR = lib
|
---|
| 28 | CC = cl
|
---|
| 29 | CPPFLAGS =
|
---|
| 30 |
|
---|
| 31 | GSDLHOME = $(MAKEDIR)
|
---|
| 32 | USE_STLPORT = 0
|
---|
| 33 | DLL = 0
|
---|
| 34 | DLLDEBUG = 0
|
---|
| 35 |
|
---|
| 36 | MDEFINES = /f win32.mak
|
---|
| 37 | COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 38 |
|
---|
| 39 | SOURCES =
|
---|
| 40 |
|
---|
| 41 | OBJECTS =
|
---|
| 42 |
|
---|
[16256] | 43 | OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt src\lib
|
---|
[9757] | 44 |
|
---|
[15805] | 45 | INSTALLDIRS = src\gdbmedit\txt2db src\gdbmedit\db2txt src\hashfile src\phind\generate
|
---|
[9757] | 46 |
|
---|
| 47 | MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
|
---|
| 48 | !IF $(USE_STLPORT)
|
---|
| 49 | MAKECMD = $(MAKECMD) USE_STLPORT=1
|
---|
| 50 | !ENDIF
|
---|
| 51 | !IF $(DLL)
|
---|
| 52 | MAKECMD = $(MAKECMD) DLL=1
|
---|
| 53 | !ENDIF
|
---|
| 54 | !IF $(DLLDEBUG)
|
---|
| 55 | MAKECMD = $(MAKECMD) DLLDEBUG=1
|
---|
| 56 | !ENDIF
|
---|
| 57 |
|
---|
[13867] | 58 | all: win32.mak indexers $(OTHERDIRS) $(INSTALLDIRS)
|
---|
[9757] | 59 |
|
---|
[13867] | 60 | install: win32.mak indexers-install $(INSTALLDIRS)
|
---|
[9757] | 61 |
|
---|
| 62 | $(OTHERDIRS): FORCE
|
---|
| 63 | cd "$@"
|
---|
| 64 | $(MAKECMD)
|
---|
| 65 | cd "$(GSDLHOME)"
|
---|
| 66 |
|
---|
| 67 | $(INSTALLDIRS): FORCE
|
---|
| 68 | cd "$@"
|
---|
| 69 | $(MAKECMD)
|
---|
| 70 | $(MAKECMD) install
|
---|
| 71 | cd "$(GSDLHOME)"
|
---|
| 72 |
|
---|
[13867] | 73 | indexers: FORCE
|
---|
| 74 | cd "indexers"
|
---|
| 75 | call winMake.bat all
|
---|
| 76 | cd "$(GSDLHOME)"
|
---|
| 77 |
|
---|
| 78 | indexers-install:
|
---|
| 79 | cd indexers
|
---|
| 80 | call winMake.bat install
|
---|
| 81 | cd "$(GSDLHOME)"
|
---|
| 82 |
|
---|
[9757] | 83 | FORCE:
|
---|
[9770] | 84 |
|
---|
| 85 | clean: win32.mak
|
---|
| 86 | cd packages\windows\gdbm\gdbm
|
---|
| 87 | $(MAKECMD) clean
|
---|
| 88 | cd ..\..\..\..
|
---|
| 89 | cd packages\windows\crypt\crypt
|
---|
| 90 | $(MAKECMD) clean
|
---|
| 91 | cd ..\..\..\..
|
---|
[13858] | 92 | cd indexers
|
---|
| 93 | call winMake.bat clean
|
---|
| 94 | cd ..
|
---|
[16256] | 95 | cd src\lib
|
---|
[9770] | 96 | $(MAKECMD) clean
|
---|
[16256] | 97 | cd ..\..
|
---|