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