1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # win32 makefile -- mgpp\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 | MGPPHOME = ..
|
---|
28 |
|
---|
29 | AR = lib
|
---|
30 | CC = cl
|
---|
31 | CPPFLAGS =
|
---|
32 |
|
---|
33 | DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -DSHORT_SUFFIX
|
---|
34 | INCLUDES = -I"." -I"$(MGPPHOME)"
|
---|
35 |
|
---|
36 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
|
---|
37 |
|
---|
38 | .SUFFIXES:
|
---|
39 | .SUFFIXES: .c .cpp .obj
|
---|
40 | .c.obj:
|
---|
41 | $(COMPILE) $<
|
---|
42 | .cpp.obj:
|
---|
43 | $(COMPILE) $<
|
---|
44 |
|
---|
45 | ANSI2KNR =
|
---|
46 | o = .obj
|
---|
47 |
|
---|
48 | HEADERS = \
|
---|
49 | bitio_m_random.h local_strings.h lovinstem.h \
|
---|
50 | bitio_m_stdio.h memlib.h netorder.h \
|
---|
51 | bitio_gen.h mgheap.h messages.h \
|
---|
52 | bitio_m.h huffman.h \
|
---|
53 | bitio_m_mem.h perf_hash.h \
|
---|
54 | bitio_m_mems.h \
|
---|
55 | pathmax.h getpagesize.h sysfuncs.h bitio_m_abstract.h \
|
---|
56 | random.h simplefrenchstem.h unitool.h longlong.h \
|
---|
57 | non_ansi.h getopt_old.h win32in.h
|
---|
58 |
|
---|
59 |
|
---|
60 | SOURCES = \
|
---|
61 | mgheap.cpp \
|
---|
62 | huffman.cpp messages.cpp \
|
---|
63 | bitio_gen.cpp perf_hash.cpp \
|
---|
64 | local_strings.cpp lovinstem.cpp \
|
---|
65 | bitio_m_mem.cpp bitio_m_stdio.cpp bitio_m_mems.cpp \
|
---|
66 | alloca.c xmalloc.c strstr.cpp \
|
---|
67 | ftruncate.cpp strcasecmp.cpp random.cpp \
|
---|
68 | simplefrenchstem.cpp unitool.cpp bitio_m_random.cpp \
|
---|
69 | bitio_m_abstract.cpp getopt_old.c win32in.c
|
---|
70 | # memlib.cpp removed
|
---|
71 |
|
---|
72 |
|
---|
73 | OBJECTS = mgheap$o \
|
---|
74 | huffman$o messages$o \
|
---|
75 | bitio_gen$o perf_hash$o \
|
---|
76 | local_strings$o lovinstem$o \
|
---|
77 | bitio_m_mem$o bitio_m_stdio$o bitio_m_mems$o \
|
---|
78 | xmalloc$o bitio_m_random$o bitio_m_abstract$o \
|
---|
79 | random$o simplefrenchstem$o \
|
---|
80 | unitool$o getopt_old$o win32in$o
|
---|
81 |
|
---|
82 |
|
---|
83 | DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
|
---|
84 |
|
---|
85 | all : libmgpp.lib
|
---|
86 |
|
---|
87 | libmgpp.lib : $(OBJECTS)
|
---|
88 | if EXIST libmgpp.lib del libmgpp.lib
|
---|
89 | $(AR) /out:libmgpp.lib $(OBJECTS)
|
---|
90 |
|
---|
91 | $(OBJECTS): "$(MGPPHOME)\win32cfg.h"
|
---|
92 |
|
---|
93 | install:
|
---|
94 | clean:
|
---|
95 | del *$o
|
---|
96 | del libmgpp.lib
|
---|