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