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 | LOCAL_LIBRARY = 0
|
---|
34 | DLL = 0
|
---|
35 | DLLDEBUG = 0
|
---|
36 |
|
---|
37 | MDEFINES = /f win32.mak
|
---|
38 | COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
39 |
|
---|
40 | SOURCES =
|
---|
41 |
|
---|
42 | OBJECTS =
|
---|
43 |
|
---|
44 | OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt \
|
---|
45 | packages\mg\lib src\mgpp\lib lib src\colservr
|
---|
46 |
|
---|
47 | INSTALLDIRS = packages\mg\src\text src\mgpp\text src\recpt src\oaiservr
|
---|
48 |
|
---|
49 | MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
|
---|
50 | !IF $(USE_STLPORT)
|
---|
51 | MAKECMD = $(MAKECMD) USE_STLPORT=1
|
---|
52 | !ENDIF
|
---|
53 | !IF $(LOCAL_LIBRARY)
|
---|
54 | MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
|
---|
55 | INSTALLDIRS = $(INSTALLDIRS) src\w32server
|
---|
56 | !ENDIF
|
---|
57 | !IF $(DLL)
|
---|
58 | MAKECMD = $(MAKECMD) DLL=1
|
---|
59 | !ENDIF
|
---|
60 | !IF $(DLLDEBUG)
|
---|
61 | MAKECMD = $(MAKECMD) DLLDEBUG=1
|
---|
62 | !ENDIF
|
---|
63 |
|
---|
64 | all: win32.mak $(OTHERDIRS) $(INSTALLDIRS)
|
---|
65 |
|
---|
66 | install: win32.mak $(INSTALLDIRS)
|
---|
67 |
|
---|
68 | $(OTHERDIRS): FORCE
|
---|
69 | cd "$@"
|
---|
70 | $(MAKECMD)
|
---|
71 | cd "$(GSDLHOME)"
|
---|
72 |
|
---|
73 | $(INSTALLDIRS): FORCE
|
---|
74 | cd "$@"
|
---|
75 | $(MAKECMD)
|
---|
76 | $(MAKECMD) install
|
---|
77 | cd "$(GSDLHOME)"
|
---|
78 |
|
---|
79 | FORCE:
|
---|