[19057] | 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 | GSDL_DIR = ..\..\..
|
---|
| 28 | COMMON_DIR = $(GSDLHOME)\common-src
|
---|
| 29 |
|
---|
| 30 | COMMON_PACKAGES_DIR = $(COMMON_DIR)\packages
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | GSDL_VC4 = 0
|
---|
| 34 | LOCAL_LIBRARY = 0
|
---|
| 35 | DLL = 0
|
---|
| 36 | DLLDEBUG = 0
|
---|
| 37 | USE_SQLITE = 1
|
---|
| 38 | USE_MSSQL = 0
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 | !IF $(GSDL_VC4)
|
---|
| 42 | CPPFLAGS = -GX
|
---|
| 43 | !ELSE
|
---|
| 44 | CPPFLAGS = -EHsc
|
---|
| 45 | !ENDIF
|
---|
| 46 |
|
---|
| 47 | !IF $(DLL)
|
---|
| 48 | CPPFLAGS = $(CPPFLAGS) -MD
|
---|
| 49 | !ELSE
|
---|
| 50 | !IF ($(DLLDEBUG))
|
---|
| 51 | CPPFLAGS = $(CPPFLAGS) -MDd
|
---|
| 52 | !ENDIF
|
---|
| 53 | !ENDIF
|
---|
| 54 |
|
---|
| 55 | CC = cl
|
---|
| 56 | DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
|
---|
[19275] | 57 | INCLUDES = -I"$(GSDL_DIR)" -I"$(COMMON_DIR)\src\lib" -I"$(COMMON_DIR)\packages\windows\crypt\crypt"
|
---|
| 58 | LIBS = "$(COMMON_DIR)\src\lib\gsdllib.lib" "$(COMMON_DIR)\packages\windows\crypt\crypt\crypt.lib"
|
---|
[19057] | 59 |
|
---|
[19275] | 60 |
|
---|
[19057] | 61 | !IF $(GSDL_VC4)
|
---|
| 62 | DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
|
---|
| 63 | INCLUDES = $(INCLUDES) -I"$(COMMON_PACKAGES_DIR)\windows\stlport\stlport"
|
---|
| 64 | !ENDIF
|
---|
[19275] | 65 |
|
---|
[19057] | 66 | !IF $(LOCAL_LIBRARY)
|
---|
| 67 | DEFS = $(DEFS) -DGSDL_LOCAL_LIBRARY
|
---|
| 68 | !ENDIF
|
---|
| 69 |
|
---|
| 70 |
|
---|
| 71 | COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 72 | LINK = $(CC) -nologo $(LDFLAGS)
|
---|
| 73 |
|
---|
| 74 | .SUFFIXES:
|
---|
| 75 | .SUFFIXES: .cpp .obj
|
---|
| 76 | .cpp.obj:
|
---|
| 77 | $(COMPILE) $<
|
---|
| 78 |
|
---|
| 79 |
|
---|
[19275] | 80 | SOURCES = getpw.cpp
|
---|
| 81 | OBJECTS = getpw.obj
|
---|
[19057] | 82 | EXEC = getpw.exe
|
---|
| 83 |
|
---|
| 84 | all: $(EXEC)
|
---|
| 85 |
|
---|
| 86 | install:
|
---|
| 87 | copy $(EXEC) "$(GSDLHOME)\bin\windows"
|
---|
| 88 |
|
---|
| 89 | clean:
|
---|
| 90 | del *.obj
|
---|
| 91 | del $(EXEC)
|
---|
| 92 |
|
---|
| 93 | getpw.exe: $(OBJECTS)
|
---|
[19275] | 94 | $(LINK) $(OBJECTS) $(LIBS)
|
---|
[19057] | 95 |
|
---|
| 96 |
|
---|
| 97 |
|
---|
| 98 |
|
---|