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 |
|
---|
27 | AR = lib
|
---|
28 | CC = cl
|
---|
29 | CPPFLAGS =
|
---|
30 | DEFS = -DQUIET -D__WIN32__ -D_LITTLE_ENDIAN -DGSDL_NAMESPACE_BROKEN \
|
---|
31 | -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H -D__STL_NO_NEW_IOSTREAMS
|
---|
32 | INCLUDES = -I../packages/mg/lib -I f:\STLport-3.2\stlport
|
---|
33 |
|
---|
34 | COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
35 |
|
---|
36 | .SUFFIXES:
|
---|
37 | .SUFFIXES: .c .obj
|
---|
38 | .c.obj:
|
---|
39 | $(COMPILE) $<
|
---|
40 |
|
---|
41 | .SUFFIXES: .cpp .obj
|
---|
42 | .cpp.obj:
|
---|
43 | $(COMPILE) $<
|
---|
44 |
|
---|
45 |
|
---|
46 | HEADERS = \
|
---|
47 | cfgread.h fileutil.h gsdlunicode.h text_t.h \
|
---|
48 | display.h gsdlconf.h gsdltimes.h
|
---|
49 |
|
---|
50 | SOURCES = \
|
---|
51 | cfgread.cpp fileutil.cpp text_t.cpp \
|
---|
52 | display.cpp gsdlunicode.cpp gsdltimes.cpp
|
---|
53 |
|
---|
54 | OBJECTS = \
|
---|
55 | cfgread.obj fileutil.obj text_t.obj \
|
---|
56 | display.obj gsdlunicode.obj gsdltimes.obj
|
---|
57 |
|
---|
58 | all: gsdllib.lib
|
---|
59 |
|
---|
60 | GSDLLIBOBJECTS = $(OBJECTS)
|
---|
61 |
|
---|
62 | gsdllib.lib : $(GSDLLIBOBJECTS)
|
---|
63 | del gsdllib.lib
|
---|
64 | $(AR) /out:gsdllib.lib $(GSDLLIBOBJECTS)
|
---|
65 |
|
---|
66 | clean:
|
---|
67 | del *.obj
|
---|
68 | del gsdllib.lib
|
---|
69 |
|
---|
70 | install:
|
---|