source: gsdl/trunk/common-src/win32.mak@ 16575

Last change on this file since 16575 was 16575, checked in by davidb, 16 years ago

Windows support for new sub-directories

File size: 3.0 KB
Line 
1###########################################################################
2#
3# win32 makefile -- common code between gsdl runtime and buildtime
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
27COMMONHOME = $(GSDLHOME)
28COMMONHOME = $(MAKEDIR)
29GSDL_VC4 = 0
30DLL = 0
31DLLDEBUG = 0
32USE_SQLITE = 0
33
34MDEFINES = /f win32.mak
35
36INDEXERSDIR = indexers
37
38COMPILEDIRS = packages\windows\gdbm\gdbm packages\windows\crypt\crypt \
39 packages\windows\expat\expat src\lib
40
41INSTALLDIRS = src\gdbmedit\db2txt src\gdbmedit\txt2db
42
43PACKAGEDIRS =
44
45SQLITE_DIR = packages\sqlite\sqlite-amalgamation-3.5.9
46
47MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
48
49!IF $(GSDL_VC4)
50MAKECMD = $(MAKECMD) GSDL_VC4=1
51!ENDIF
52!IF $(DLL)
53MAKECMD = $(MAKECMD) DLL=1
54!ENDIF
55!IF $(DLLDEBUG)
56MAKECMD = $(MAKECMD) DLLDEBUG=1
57!ENDIF
58!IF $(USE_SQLITE)
59MAKECMD = $(MAKECMD) USE_SQLITE=1
60PACKAGEDIRS = $(PACKAGEDIRS) $(SQLITE_DIR)
61!ENDIF
62
63MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
64
65all: win32.mak $(INDEXERSDIR) $(PACKAGEDIRS) $(COMPILEDIRS) $(INSTALLDIRS)
66
67install: win32.mak $(INDEXERSDIR) $(INSTALLDIRS)
68
69clean:
70 cd packages\windows\crypt\crypt
71 $(MAKECLEANCMD)
72 cd "$(COMMONHOME)"
73 cd packages\windows\gdbm\gdbm
74 $(MAKECLEANCMD)
75 cd "$(COMMONHOME)"
76 cd packages\windows\expat\expat
77 $(MAKECLEANCMD)
78 cd "$(COMMONHOME)"
79 cd src\lib
80 $(MAKECLEANCMD)
81 cd "$(COMMONHOME)"
82 cd src\gdbmedit\txt2db
83 $(MAKECLEANCMD)
84 cd "$(COMMONHOME)"
85 cd src\gdbmedit\db2txt
86 $(MAKECLEANCMD)
87 cd "$(COMMONHOME)"
88 cd indexers
89 call winMake.bat clean
90 cd "$(COMMONHOME)"
91
92$(COMPILEDIRS): FORCE
93 cd "$@"
94 $(MAKECMD)
95 cd "$(GSDLHOME)"
96
97$(INSTALLDIRS): FORCE
98 cd "$@"
99 $(MAKECMD)
100 $(MAKECMD) install
101 cd "$(COMMONHOME)"
102
103$(SQLITE_DIR): FORCE
104 cd "$@"
105 $(MAKECMD)
106 $(MAKECMD) install
107 cd "$(COMMONHOME)"
108
109$(INDEXERSDIR): FORCE
110 cd "$@"
111 call winMake.bat all gs2
112 call winMake.bat install gs2
113 if NOT EXIST "$(GSDLHOME)\bin\windows" mkdir "$(GSDLHOME)\bin\windows"
114 if NOT EXIST "$(GSDLHOME)\bin\java" mkdir "$(GSDLHOME)\bin\java"
115 for %%i in (bin\*.exe) do \
116 copy %%i "$(GSDLHOME)\bin\windows"
117 copy lucene-gs\LuceneWrapper.jar "$(GSDLHOME)\bin\java"
118 cd "$(GSDLHOME)"
119
120FORCE:
121
Note: See TracBrowser for help on using the repository browser.