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 |
|
---|
43 | OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt \
|
---|
44 | packages\mg\lib src\mgpp\lib lib
|
---|
45 |
|
---|
46 | INSTALLDIRS = packages\mg\src\text src\mgpp\text
|
---|
47 |
|
---|
48 | MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
|
---|
49 | !IF $(USE_STLPORT)
|
---|
50 | MAKECMD = $(MAKECMD) USE_STLPORT=1
|
---|
51 | !ENDIF
|
---|
52 | !IF $(DLL)
|
---|
53 | MAKECMD = $(MAKECMD) DLL=1
|
---|
54 | !ENDIF
|
---|
55 | !IF $(DLLDEBUG)
|
---|
56 | MAKECMD = $(MAKECMD) DLLDEBUG=1
|
---|
57 | !ENDIF
|
---|
58 |
|
---|
59 | all: win32.mak $(OTHERDIRS) $(INSTALLDIRS)
|
---|
60 |
|
---|
61 | install: win32.mak $(INSTALLDIRS)
|
---|
62 |
|
---|
63 | $(OTHERDIRS): FORCE
|
---|
64 | cd "$@"
|
---|
65 | $(MAKECMD)
|
---|
66 | cd "$(GSDLHOME)"
|
---|
67 |
|
---|
68 | $(INSTALLDIRS): FORCE
|
---|
69 | cd "$@"
|
---|
70 | $(MAKECMD)
|
---|
71 | $(MAKECMD) install
|
---|
72 | cd "$(GSDLHOME)"
|
---|
73 |
|
---|
74 | FORCE:
|
---|
75 |
|
---|
76 | clean: win32.mak
|
---|
77 | cd packages\windows\gdbm\gdbm
|
---|
78 | $(MAKECMD) clean
|
---|
79 | cd ..\..\..\..
|
---|
80 | cd packages\windows\crypt\crypt
|
---|
81 | $(MAKECMD) clean
|
---|
82 | cd ..\..\..\..
|
---|
83 | cd packages\mg\lib
|
---|
84 | $(MAKECMD) clean
|
---|
85 | cd ..\..\..
|
---|
86 | cd packages\mg\src\text
|
---|
87 | $(MAKECMD) clean
|
---|
88 | cd ..\..\..\..
|
---|
89 | cd src\mgpp\lib
|
---|
90 | $(MAKECMD) clean
|
---|
91 | cd ..\..\..
|
---|
92 | cd src\mgpp\text
|
---|
93 | $(MAKECMD) clean
|
---|
94 | cd ..\..\..
|
---|
95 | cd lib
|
---|
96 | $(MAKECMD) clean
|
---|
97 | cd ..
|
---|