source: gsdl/trunk/lib/win32.mak@ 15537

Last change on this file since 15537 was 15537, checked in by mdewsnip, 13 years ago

Minor fix.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1###########################################################################
2#
3# win32 makefile -- lib
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
27GSDL_DIR = ..
28INDEXERS_DIR = $(GSDL_DIR)\indexers
29
30
31GSDL_VC4 = 0
32LOCAL_LIBRARY = 0
33DLL = 0
34DLLDEBUG = 0
35STLPATH = "$(GSDL_DIR)\packages\windows\stlport\stlport"
36
37
38!IF $(GSDL_VC4)
39CPPFLAGS = -GX
40!ELSE
41CPPFLAGS = -EHsc
42!ENDIF
43
44!IF $(DLL)
45CPPFLAGS = $(CPPFLAGS) -MD
46!ELSE
47!IF ($(DLLDEBUG))
48CPPFLAGS = $(CPPFLAGS) -MDd
49!ENDIF
50!ENDIF
51
52
53AR = lib
54CC = cl
55DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN \
56 -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
57INCLUDES = -I"$(GSDL_DIR)" -I"$(INDEXERS_DIR)\mg\lib" -I"$(GSDL_DIR)\packages\windows\gdbm\gdbm"
58
59!IF $(GSDL_VC4)
60DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
61INCLUDES = $(INCLUDES) -I$(STLPATH)
62!ENDIF
63!IF $(LOCAL_LIBRARY)
64DEFS = $(DEFS) -DGSDL_LOCAL_LIBRARY
65!ENDIF
66
67
68COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
69
70
71.SUFFIXES:
72.SUFFIXES: .cpp .obj
73.cpp.obj:
74 $(COMPILE) $<
75
76
77SOURCES = \
78 cfgread.cpp \
79 cnfgable.cpp \
80 cnfgator.cpp \
81 dbclass.cpp \
82 display.cpp \
83 fileutil.cpp \
84 gdbmclass.cpp \
85 gsdlsitecfg.cpp \
86 gsdltimes.cpp \
87 gsdltools.cpp \
88 gsdlunicode.cpp \
89 infodbclass.cpp \
90 md5.cpp \
91 OIDtools.cpp \
92 phrases.cpp \
93 text_t.cpp
94
95OBJECTS = \
96 cfgread.obj \
97 cnfgable.obj \
98 cnfgator.obj \
99 dbclass.obj \
100 display.obj \
101 fileutil.obj \
102 gdbmclass.obj \
103 gsdlsitecfg.obj \
104 gsdltimes.obj \
105 gsdltools.obj \
106 gsdlunicode.obj \
107 infodbclass.obj \
108 md5.obj \
109 OIDtools.obj \
110 phrases.obj \
111 text_t.obj
112
113LIBRARY = gsdllib.lib
114
115
116gsdllib.lib : $(OBJECTS)
117 if EXIST gsdllib.lib del gsdllib.lib
118 $(AR) -nologo /out:gsdllib.lib $(OBJECTS)
119
120all: $(LIBRARY)
121
122install: $(LIBRARY)
123
124clean:
125 del *.obj
126 del gsdllib.lib
127
128
129# Always recompile gsdltools in case GSDL_LOCAL_LIBRARY has changed
130gsdltools.obj: FORCE
131
132FORCE:
Note: See TracBrowser for help on using the repository browser.