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

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

Minor fix.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
RevLine 
[1076]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#
[15527]8# Copyright (C) 1999-2008 The New Zealand Digital Library Project
[1076]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
[15526]27GSDL_DIR = ..
28INDEXERS_DIR = $(GSDL_DIR)\indexers
29
30
[11256]31GSDL_VC4 = 0
[2338]32LOCAL_LIBRARY = 0
[7060]33DLL = 0
34DLLDEBUG = 0
[15526]35STLPATH = "$(GSDL_DIR)\packages\windows\stlport\stlport"
[1076]36
[7060]37
[11256]38!IF $(GSDL_VC4)
[3055]39CPPFLAGS = -GX
[11256]40!ELSE
41CPPFLAGS = -EHsc
42!ENDIF
43
[7060]44!IF $(DLL)
45CPPFLAGS = $(CPPFLAGS) -MD
46!ELSE
47!IF ($(DLLDEBUG))
48CPPFLAGS = $(CPPFLAGS) -MDd
49!ENDIF
50!ENDIF
[1076]51
[15514]52
53AR = lib
54CC = cl
[2338]55DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN \
[11253]56 -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
[15537]57INCLUDES = -I"$(GSDL_DIR)" -I"$(INDEXERS_DIR)\mg\lib" -I"$(GSDL_DIR)\packages\windows\gdbm\gdbm"
[15526]58
[11257]59!IF $(GSDL_VC4)
[2338]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
[15514]67
[11253]68COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
[1076]69
[15514]70
[1076]71.SUFFIXES:
72.SUFFIXES: .cpp .obj
73.cpp.obj:
74 $(COMPILE) $<
75
76
[15418]77SOURCES = \
[15514]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
[1076]94
[15418]95OBJECTS = \
[15514]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
[1076]112
[15526]113LIBRARY = gsdllib.lib
[15429]114
[1076]115
116gsdllib.lib : $(OBJECTS)
[1748]117 if EXIST gsdllib.lib del gsdllib.lib
[11253]118 $(AR) -nologo /out:gsdllib.lib $(OBJECTS)
[1076]119
[15526]120all: $(LIBRARY)
[2338]121
[15526]122install: $(LIBRARY)
123
[1076]124clean:
125 del *.obj
126 del gsdllib.lib
127
[2338]128
[15526]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.