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

Last change on this file since 2308 was 1748, checked in by sjboddie, 23 years ago

* empty log message *

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 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#
8# Copyright (C) 1999 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
[1748]27GSDLHOME = ..
28STLPATH = f:\stlport
[1076]29
30AR = lib
31CC = cl
32CPPFLAGS =
[1748]33# note that if compiling with a newer version of VC++ than 4.2 we'll
34# use the built in STL and so the following definitions should not
35# be defined - this setup is for use with VC++ 4.2 and STLPort
36# GSDL_NAMESPACE_BROKEN
37# GSDL_USE_IOS_H
38# __STL_NO_NEW_IOSTREAMS
[1076]39DEFS = -DQUIET -D__WIN32__ -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H \
40 -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H -D__STL_NO_NEW_IOSTREAMS
41INCLUDES = -I$(GSDLHOME)\packages\mg\lib -I$(STLPATH)
42
43COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
44
45.SUFFIXES:
46.SUFFIXES: .c .obj
47.c.obj:
48 $(COMPILE) $<
49
50.SUFFIXES: .cpp .obj
51.cpp.obj:
52 $(COMPILE) $<
53
54HEADERS = \
55 cfgread.h fileutil.h gsdlunicode.h text_t.h \
56 display.h gsdlconf.h gsdltimes.h gsdltools.h
57
58SOURCES = \
59 cfgread.cpp fileutil.cpp text_t.cpp \
60 display.cpp gsdlunicode.cpp gsdltimes.cpp gsdltools.cpp
61
62OBJECTS = \
63 cfgread.obj fileutil.obj text_t.obj \
64 display.obj gsdlunicode.obj gsdltimes.obj gsdltools.obj
65
66all: gsdllib.lib
67
68gsdllib.lib : $(OBJECTS)
[1748]69 if EXIST gsdllib.lib del gsdllib.lib
[1076]70 $(AR) /out:gsdllib.lib $(OBJECTS)
71
72clean:
73 del *.obj
74 del gsdllib.lib
75
76install:
Note: See TracBrowser for help on using the repository browser.