source: main/trunk/greenstone2/common-src/cgi-bin/win32.mak@ 24902

Last change on this file since 24902 was 24902, checked in by ak19, 12 years ago

GSDLARCH used in Windows makefiles (and gsicontrol.bat) when working out the cgi-bin path (now cgi-bin\GSDL_OS_ARCH) to install the binaries like library.cgi and oaiserver.cgi into.

File size: 1.8 KB
Line 
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
27COMMON_DIR = ..
28!IF "$(GSDLHOME)"==""
29GSDLHOME = ..\..
30!ELSE
31GSDLHOME = $(GSDLHOME)
32!ENDIF
33
34GSDL_VC4 = 0
35LOCAL_LIBRARY = 0
36DEBUG = 0
37DLL = 0
38DLLDEBUG = 0
39
40CGIDIR="$(GSDLHOME)\cgi-bin\windows"
41!IF "$(PROCESSOR_ARCHITECTURE)"==""
42CGIDIR=$(GSDLHOME)\cgi-bin\windows
43!ELSE IF EXIST ("$(GSDLHOME)\bin\windows")
44CGIDIR=$(GSDLHOME)\cgi-bin\windows
45!ELSE IF "$(PROCESSOR_ARCHITECTURE)"=="x86"
46CGIDIR=$(GSDLHOME)\cgi-bin\windows32
47!ELSE
48CGIDIR=$(GSDLHOME)\cgi-bin\windows64
49!ENDIF
50
51all:
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
56clean:
57 if exist "$(CGIDIR)" rmdir /S "$(CGIDIR)"
58
59install:
Note: See TracBrowser for help on using the repository browser.