root/main/trunk/greenstone2/runtime-src/win32.mak @ 24508

Revision 22090, 3.4 KB (checked in by ak19, 10 years ago)

Windows makefiles to work with USE_GDBM and USE_JDBM: 1. Added winMake.bat to both gs-jdbm-1.0.tar.gz and common-src's jdbmedit so that jdbm java files can now get compiled up. 2. These new winMake bat files are then called from the updated windows makefiles in common-src and common-src's src-lib folder. 3. Changed win32.mak files to work with USE_GDBM and USE_JDBM: these set their USE_DBDEFINES flag when on to prevent memory errors due to makefiles' inconsistent setting of USE_DEFINES between folders. Also certain gdbm related lib, includes and dir statements are moved out of the general part of the windows makefiles into the USE_GDBM section of the makefiles.

Line 
1###########################################################################
2#
3# win32 makefile -- gsdl runtime code
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
27GSDLHOME = $(GSDLHOME)
28RUNTIMEHOME = $(MAKEDIR)
29
30GSDL_VC4 = 0
31LOCAL_LIBRARY = 0
32APACHE_HTTPD = 0
33DEBUG = 0
34DLL = 0
35DLLDEBUG = 0
36USE_GDBM = 1
37USE_JDBM = 1
38USE_SQLITE = 1
39USE_MSSQL = 0
40USE_Z3950 = 0
41ENABLE_MG = 1
42ENABLE_MGPP = 1
43ENABLE_LUCENE = 1
44
45MDEFINES = /f win32.mak
46
47COMPILEDIRS = src\colservr src\protocol
48
49INSTALLDIRS = src\recpt src\oaiservr
50
51PACKAGEDIRS =
52
53YAZ_DIR = packages\yaz\yaz-2.1.4\win
54
55MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
56!IF $(GSDL_VC4)
57MAKECMD = $(MAKECMD) GSDL_VC4=1
58!ENDIF
59!IF $(LOCAL_LIBRARY)
60MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
61INSTALLDIRS = $(INSTALLDIRS) src\w32server
62!ENDIF
63!IF $(APACHE_HTTPD)
64MAKECMD = $(MAKECMD) APACHE_HTTPD=1
65INSTALLDIRS = $(INSTALLDIRS) src\w32apachectl packages\apache-httpd
66!ENDIF
67!IF $(DEBUG)
68MAKECMD = $(MAKECMD) DEBUG=1
69!ENDIF
70!IF $(DLL)
71MAKECMD = $(MAKECMD) DLL=1
72!ENDIF
73!IF $(DLLDEBUG)
74MAKECMD = $(MAKECMD) DLLDEBUG=1
75!ENDIF
76!IF !$(USE_GDBM)
77MAKECMD = $(MAKECMD) USE_GDBM=0
78!ENDIF
79!IF !$(USE_JDBM)
80MAKECMD = $(MAKECMD) USE_JDBM=0
81!ENDIF
82!IF !$(USE_SQLITE)
83MAKECMD = $(MAKECMD) USE_SQLITE=0
84!ENDIF
85!IF $(USE_MSSQL)
86MAKECMD = $(MAKECMD) USE_MSSQL=1
87!ENDIF
88!IF $(USE_Z3950)
89MAKECMD = $(MAKECMD) USE_Z3950=1
90INSTALLDIRS = src\z3950 $(INSTALLDIRS)
91PACKAGEDIRS = $(PACKAGEDIRS) packages\d2m $(YAZ_DIR)
92!ENDIF
93!IF !$(ENABLE_MG)
94MAKECMD = $(MAKECMD) ENABLE_MG=0
95!ENDIF
96!IF !$(ENABLE_MGPP)
97MAKECMD = $(MAKECMD) ENABLE_MGPP=0
98!ENDIF
99!IF !$(ENABLE_LUCENE)
100MAKECMD = $(MAKECMD) ENABLE_LUCENE=0
101!ENDIF
102
103MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
104
105all: win32.mak $(PACKAGEDIRS) $(COMPILEDIRS) $(INSTALLDIRS)
106
107install: win32.mak $(INSTALLDIRS)   
108    if not exist "$(GSDLHOME)\etc\logs-gsi\*.*" MD "$(GSDLHOME)\etc\logs-gsi"
109clean:
110    cd "$(RUNTIMEHOME)"
111    cd src\colservr
112    $(MAKECLEANCMD)
113    cd "$(RUNTIMEHOME)"
114    cd src\protocol
115    $(MAKECLEANCMD)
116    cd "$(RUNTIMEHOME)"
117    cd src\recpt
118    $(MAKECLEANCMD)
119    cd "$(RUNTIMEHOME)"
120    cd src\oaiservr
121    $(MAKECLEANCMD)
122    cd "$(RUNTIMEHOME)"
123    cd src\w32server
124    $(MAKECLEANCMD)
125    cd "$(RUNTIMEHOME)"
126    cd src\w32apachectl
127    $(MAKECLEANCMD)
128    cd "$(RUNTIMEHOME)"
129    cd packages\apache-httpd
130    $(MAKECLEANCMD)
131    cd "$(GSDLHOME)"
132
133$(COMPILEDIRS): FORCE
134    cd "$(RUNTIMEHOME)"
135    cd "$@"
136    $(MAKECMD)
137    cd "$(GSDLHOME)"
138
139$(INSTALLDIRS): FORCE
140    cd "$(RUNTIMEHOME)"
141    cd "$@"
142    $(MAKECMD)
143    $(MAKECMD) install
144    cd "$(GSDLHOME)"
145
146$(YAZ_DIR): FORCE
147    cd "$@"
148    nmake HAVE_ICONV=0 HAVE_LIBXML2=0
149    cd "$(GSDLHOME)"
150
151FORCE:
152
Note: See TracBrowser for help on using the browser.