source: trunk/gsdl/win32.mak@ 10283

Last change on this file since 10283 was 10283, checked in by davidb, 19 years ago

hashfile, db2txt, and txt2db added to INSTALLDIRS in win32.mak file. Their omission
from the file is thought to be on oversight due to the way the Windows installation is
formed: these binaries come from checking out 'winbin' and therefore the fact that
they are never compiled goes unnoticed. When compiling strictly from
source, however, they are missing and import.pl subsequently fails when used. It's
possible there is a reason for why they have been left out, however neither Michael
nor Stefan could think of one when I discussed it with them. Adding the targets in
helps with automated tested of the CVS version of Greenstone under Windows.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
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
27AR = lib
28CC = cl
29CPPFLAGS =
30
31GSDLHOME = $(MAKEDIR)
32USE_STLPORT = 0
33LOCAL_LIBRARY = 0
34DLL = 0
35DLLDEBUG = 0
36
37MDEFINES = /f win32.mak
38COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
39
40SOURCES =
41
42OBJECTS =
43
44OTHERDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt \
45 packages\mg\lib src\mgpp\lib lib src\colservr
46
47INSTALLDIRS = packages\mg\src\text src\mgpp\text src\recpt src\oaiservr \
48 src\hashfile src\db2txt src\txt2db
49
50MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
51!IF $(USE_STLPORT)
52MAKECMD = $(MAKECMD) USE_STLPORT=1
53!ENDIF
54!IF $(LOCAL_LIBRARY)
55MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
56INSTALLDIRS = $(INSTALLDIRS) src\w32server
57!ENDIF
58!IF $(DLL)
59MAKECMD = $(MAKECMD) DLL=1
60!ENDIF
61!IF $(DLLDEBUG)
62MAKECMD = $(MAKECMD) DLLDEBUG=1
63!ENDIF
64
65MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
66
67all: win32.mak $(OTHERDIRS) $(INSTALLDIRS)
68
69install: win32.mak $(INSTALLDIRS)
70
71clean:
72 cd packages\windows\crypt\crypt
73 $(MAKECLEANCMD)
74 cd "$(GSDLHOME)"
75 cd packages\windows\gdbm\gdbm
76 $(MAKECLEANCMD)
77 cd "$(GSDLHOME)"
78 cd lib
79 $(MAKECLEANCMD)
80 cd "$(GSDLHOME)"
81 cd packages\mg\lib
82 $(MAKECLEANCMD)
83 cd "$(GSDLHOME)"
84 cd packages\mg\src\text
85 $(MAKECLEANCMD)
86 cd "$(GSDLHOME)"
87 cd src\mgpp\lib
88 $(MAKECLEANCMD)
89 cd "$(GSDLHOME)"
90 cd src\mgpp\text
91 $(MAKECLEANCMD)
92 cd "$(GSDLHOME)"
93 cd src\colservr
94 $(MAKECLEANCMD)
95 cd "$(GSDLHOME)"
96 cd src\recpt
97 $(MAKECLEANCMD)
98 cd "$(GSDLHOME)"
99 cd src\oaiservr
100 $(MAKECLEANCMD)
101 cd "$(GSDLHOME)"
102 cd src\w32server
103 $(MAKECLEANCMD)
104 cd "$(GSDLHOME)"
105
106$(OTHERDIRS): FORCE
107 cd "$@"
108 $(MAKECMD)
109 cd "$(GSDLHOME)"
110
111$(INSTALLDIRS): FORCE
112 cd "$@"
113 $(MAKECMD)
114 $(MAKECMD) install
115 cd "$(GSDLHOME)"
116
117FORCE:
Note: See TracBrowser for help on using the repository browser.