[3365] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
[3929] | 3 | # win32 makefile -- mgpp\lib
|
---|
[3365] | 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 | #
|
---|
[3929] | 8 | # Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
[3365] | 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 |
|
---|
[3929] | 27 | MGPPHOME = ..
|
---|
[3365] | 28 |
|
---|
[3929] | 29 | AR = lib
|
---|
[3365] | 30 | CC = cl
|
---|
[3929] | 31 | CPPFLAGS =
|
---|
[3365] | 32 |
|
---|
[3929] | 33 | DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -DSHORT_SUFFIX
|
---|
| 34 | INCLUDES = -I"." -I"$(MGPPHOME)"
|
---|
[3365] | 35 |
|
---|
[3929] | 36 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
|
---|
[3365] | 37 |
|
---|
| 38 | .SUFFIXES:
|
---|
[3929] | 39 | .SUFFIXES: .c .cpp .obj
|
---|
[3365] | 40 | .c.obj:
|
---|
| 41 | $(COMPILE) $<
|
---|
| 42 | .cpp.obj:
|
---|
| 43 | $(COMPILE) $<
|
---|
| 44 |
|
---|
[3929] | 45 | ANSI2KNR =
|
---|
[3365] | 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 \
|
---|
[3929] | 54 | bitio_m_mems.h \
|
---|
[3365] | 55 | pathmax.h getpagesize.h sysfuncs.h bitio_m_abstract.h \
|
---|
| 56 | random.h simplefrenchstem.h unitool.h longlong.h \
|
---|
[3929] | 57 | non_ansi.h getopt_old.h win32in.h
|
---|
[3365] | 58 |
|
---|
[3929] | 59 |
|
---|
[3365] | 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 \
|
---|
[3929] | 69 | bitio_m_abstract.cpp getopt_old.c win32in.c
|
---|
| 70 | # memlib.cpp removed
|
---|
[3365] | 71 |
|
---|
[3929] | 72 |
|
---|
[3365] | 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 \
|
---|
[3929] | 80 | unitool$o getopt_old$o win32in$o
|
---|
[3365] | 81 |
|
---|
[3929] | 82 |
|
---|
| 83 | DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
|
---|
| 84 |
|
---|
[13756] | 85 | all : libmgpplib.lib
|
---|
[3365] | 86 |
|
---|
[13756] | 87 | libmgpplib.lib : $(OBJECTS)
|
---|
| 88 | if EXIST libmgpplib.lib del libmgpplib.lib
|
---|
| 89 | $(AR) /out:libmgpplib.lib $(OBJECTS)
|
---|
[3365] | 90 |
|
---|
[3929] | 91 | $(OBJECTS): "$(MGPPHOME)\win32cfg.h"
|
---|
| 92 |
|
---|
| 93 | install:
|
---|
[3365] | 94 | clean:
|
---|
| 95 | del *$o
|
---|
[13756] | 96 | del libmgpplib.lib
|
---|