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