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 |
|
---|
29 | COMMON_PACKAGES_DIR = $(COMMON_DIR)\packages
|
---|
30 |
|
---|
31 |
|
---|
32 | GSDL_VC4 = 0
|
---|
33 | LOCAL_LIBRARY = 0
|
---|
34 | DEBUG = 0
|
---|
35 | DLL = 0
|
---|
36 | DLLDEBUG = 0
|
---|
37 |
|
---|
38 | !IF $(DEBUG)
|
---|
39 | CXXFLAGS = -DEBUG -Z7 /errorReport:prompt
|
---|
40 | LDFLAGS = -DEBUG -Z7 /errorReport:prompt
|
---|
41 | !ELSE
|
---|
42 | CXXFLAGS =
|
---|
43 | LDFLAGS =
|
---|
44 | !ENDIF
|
---|
45 |
|
---|
46 | !IF $(GSDL_VC4)
|
---|
47 | CXXFLAGS = $(CXXFLAGS) -GX
|
---|
48 | !ELSE
|
---|
49 | CXXFLAGS = $(CXXFLAGS) -EHsc
|
---|
50 | !ENDIF
|
---|
51 |
|
---|
52 | !IF $(DLL)
|
---|
53 | CXXFLAGS = $(CXXFLAGS) -MD
|
---|
54 | !ELSE
|
---|
55 | !IF ($(DLLDEBUG))
|
---|
56 | CXXFLAGS = $(CXXFLAGS) -MDd
|
---|
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
|
---|
62 | INCLUDES = -I"$(COMMON_DIR)" -I"$(COMMON_DIR)\src\lib" -I"$(COMMON_DIR)\packages\windows\crypt\crypt"
|
---|
63 | LIBS = "$(COMMON_DIR)\src\lib\gsdllib.lib" "$(COMMON_DIR)\packages\windows\crypt\crypt\crypt.lib"
|
---|
64 |
|
---|
65 |
|
---|
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
|
---|
70 |
|
---|
71 | !IF $(LOCAL_LIBRARY)
|
---|
72 | DEFS = $(DEFS) -DGSDL_LOCAL_LIBRARY
|
---|
73 | !ENDIF
|
---|
74 |
|
---|
75 |
|
---|
76 | COMPILE = $(CC) -nologo -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
|
---|
77 | LINK = $(CC) -nologo $(LDFLAGS)
|
---|
78 |
|
---|
79 | .SUFFIXES:
|
---|
80 | .SUFFIXES: .cpp .obj
|
---|
81 | .cpp.obj:
|
---|
82 | $(COMPILE) $<
|
---|
83 |
|
---|
84 |
|
---|
85 | SOURCES = getpw.cpp
|
---|
86 | OBJECTS = getpw.obj
|
---|
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)
|
---|
99 | $(LINK) $(OBJECTS) $(LIBS)
|
---|
100 |
|
---|
101 |
|
---|
102 |
|
---|
103 |
|
---|