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