1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # win32 makefile -- getgw
|
---|
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-2008 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 | COMMON_DIR = ..
|
---|
28 | !IF "$(GSDLHOME)"==""
|
---|
29 | GSDLHOME = ..\..
|
---|
30 | !ELSE
|
---|
31 | GSDLHOME = $(GSDLHOME)
|
---|
32 | !ENDIF
|
---|
33 |
|
---|
34 | GSDL_VC4 = 0
|
---|
35 | LOCAL_LIBRARY = 0
|
---|
36 | DEBUG = 0
|
---|
37 | DLL = 0
|
---|
38 | DLLDEBUG = 0
|
---|
39 |
|
---|
40 | CGIDIR=$(GSDLHOME)\cgi-bin\windows
|
---|
41 | !IF "$(PROCESSOR_ARCHITECTURE)"==""
|
---|
42 | CGIDIR=$(GSDLHOME)\cgi-bin\windows
|
---|
43 | !ELSE IF EXIST ("$(GSDLHOME)\bin\windows")
|
---|
44 | CGIDIR=$(GSDLHOME)\cgi-bin\windows
|
---|
45 | !ELSE IF "$(PROCESSOR_ARCHITECTURE)"=="x86"
|
---|
46 | CGIDIR=$(GSDLHOME)\cgi-bin\windows32
|
---|
47 | !ELSE
|
---|
48 | CGIDIR=$(GSDLHOME)\cgi-bin\windows64
|
---|
49 | !ENDIF
|
---|
50 |
|
---|
51 | all:
|
---|
52 | if not exist "$(CGIDIR)" mkdir "$(CGIDIR)"
|
---|
53 | for %%i in ("$(COMMON_DIR)\cgi-bin") do copy %%i "$(CGIDIR)\."
|
---|
54 | for %%i in (Makefile.in Makefile win32.mak) do if exist "$(CGIDIR)\%%i" del "$(CGIDIR)\%%i"
|
---|
55 |
|
---|
56 | clean:
|
---|
57 | if exist "$(CGIDIR)" rmdir /S /Q "$(CGIDIR)"
|
---|
58 |
|
---|
59 | install:
|
---|