[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] | 27 | GSDLHOME = $(MAKEDIR)
|
---|
[11256] | 28 | GSDL_VC4 = 0
|
---|
[2338] | 29 | LOCAL_LIBRARY = 0
|
---|
[7060] | 30 | DLL = 0
|
---|
| 31 | DLLDEBUG = 0
|
---|
| 32 |
|
---|
| 33 | MDEFINES = /f win32.mak
|
---|
[1001] | 34 |
|
---|
[11188] | 35 | OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt packages\windows\expat\expat \
|
---|
[8307] | 36 | packages\mg\lib src\mgpp\lib lib src\colservr
|
---|
[1001] | 37 |
|
---|
[10283] | 38 | INSTALLDIRS = packages\mg\src\text src\mgpp\text src\recpt src\oaiservr \
|
---|
| 39 | src\hashfile src\db2txt src\txt2db
|
---|
[1001] | 40 |
|
---|
[2338] | 41 | MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
|
---|
[11257] | 42 | !IF $(GSDL_VC4)
|
---|
| 43 | MAKECMD = $(MAKECMD) GSDL_VC4=1
|
---|
[2338] | 44 | !ENDIF
|
---|
| 45 | !IF $(LOCAL_LIBRARY)
|
---|
| 46 | MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
|
---|
| 47 | INSTALLDIRS = $(INSTALLDIRS) src\w32server
|
---|
| 48 | !ENDIF
|
---|
[7060] | 49 | !IF $(DLL)
|
---|
| 50 | MAKECMD = $(MAKECMD) DLL=1
|
---|
| 51 | !ENDIF
|
---|
| 52 | !IF $(DLLDEBUG)
|
---|
| 53 | MAKECMD = $(MAKECMD) DLLDEBUG=1
|
---|
| 54 | !ENDIF
|
---|
[1001] | 55 |
|
---|
[9990] | 56 | MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
|
---|
| 57 |
|
---|
[2338] | 58 | all: win32.mak $(OTHERDIRS) $(INSTALLDIRS)
|
---|
[1001] | 59 |
|
---|
[2338] | 60 | install: win32.mak $(INSTALLDIRS)
|
---|
| 61 |
|
---|
[9990] | 62 | clean:
|
---|
| 63 | cd packages\windows\crypt\crypt
|
---|
| 64 | $(MAKECLEANCMD)
|
---|
| 65 | cd "$(GSDLHOME)"
|
---|
| 66 | cd packages\windows\gdbm\gdbm
|
---|
| 67 | $(MAKECLEANCMD)
|
---|
| 68 | cd "$(GSDLHOME)"
|
---|
[11188] | 69 | cd packages\windows\expat\expat
|
---|
| 70 | $(MAKECLEANCMD)
|
---|
| 71 | cd "$(GSDLHOME)"
|
---|
[9990] | 72 | cd lib
|
---|
| 73 | $(MAKECLEANCMD)
|
---|
| 74 | cd "$(GSDLHOME)"
|
---|
| 75 | cd packages\mg\lib
|
---|
| 76 | $(MAKECLEANCMD)
|
---|
| 77 | cd "$(GSDLHOME)"
|
---|
| 78 | cd packages\mg\src\text
|
---|
| 79 | $(MAKECLEANCMD)
|
---|
| 80 | cd "$(GSDLHOME)"
|
---|
| 81 | cd src\mgpp\lib
|
---|
| 82 | $(MAKECLEANCMD)
|
---|
| 83 | cd "$(GSDLHOME)"
|
---|
| 84 | cd src\mgpp\text
|
---|
| 85 | $(MAKECLEANCMD)
|
---|
| 86 | cd "$(GSDLHOME)"
|
---|
| 87 | cd src\colservr
|
---|
| 88 | $(MAKECLEANCMD)
|
---|
| 89 | cd "$(GSDLHOME)"
|
---|
| 90 | cd src\recpt
|
---|
| 91 | $(MAKECLEANCMD)
|
---|
| 92 | cd "$(GSDLHOME)"
|
---|
| 93 | cd src\oaiservr
|
---|
| 94 | $(MAKECLEANCMD)
|
---|
| 95 | cd "$(GSDLHOME)"
|
---|
| 96 | cd src\w32server
|
---|
| 97 | $(MAKECLEANCMD)
|
---|
| 98 | cd "$(GSDLHOME)"
|
---|
| 99 |
|
---|
[2338] | 100 | $(OTHERDIRS): FORCE
|
---|
| 101 | cd "$@"
|
---|
| 102 | $(MAKECMD)
|
---|
| 103 | cd "$(GSDLHOME)"
|
---|
| 104 |
|
---|
| 105 | $(INSTALLDIRS): FORCE
|
---|
| 106 | cd "$@"
|
---|
| 107 | $(MAKECMD)
|
---|
| 108 | $(MAKECMD) install
|
---|
| 109 | cd "$(GSDLHOME)"
|
---|
| 110 |
|
---|
| 111 | FORCE:
|
---|