[855] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
[2468] | 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.
|
---|
[855] | 7 | #
|
---|
[2468] | 8 | # Copyright (C) 2000 The New Zealand Digital Library Project
|
---|
| 9 | #
|
---|
| 10 | #
|
---|
[855] | 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 |
|
---|
[2468] | 27 | GSDLHOME = ..\..\..
|
---|
| 28 | USE_STLPORT = 0
|
---|
[7060] | 29 | DLL = 0
|
---|
| 30 | DLLDEBUG = 0
|
---|
[2468] | 31 | STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
|
---|
| 32 |
|
---|
[855] | 33 | CC = cl
|
---|
[7060] | 34 |
|
---|
| 35 | CPPFLAGS = -GX
|
---|
| 36 | !IF $(DLL)
|
---|
| 37 | CPPFLAGS = $(CPPFLAGS) -MD
|
---|
| 38 | !ELSE
|
---|
| 39 | !IF ($(DLLDEBUG))
|
---|
| 40 | CPPFLAGS = $(CPPFLAGS) -MDd
|
---|
| 41 | !ENDIF
|
---|
| 42 | !ENDIF
|
---|
| 43 |
|
---|
[11253] | 44 | DEFS = -DSHORT_SUFFIX -DSILENT -DHAVE_CONFIG_H -D__WIN32__ -D_CRT_SECURE_NO_DEPRECATE
|
---|
[2468] | 45 | INCLUDES = -I"$(GSDLHOME)"
|
---|
| 46 | !IF $(USE_STLPORT)
|
---|
| 47 | DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
|
---|
| 48 | INCLUDES = $(INCLUDES) -I$(STLPATH)
|
---|
| 49 | !ENDIF
|
---|
| 50 |
|
---|
| 51 | LDFLAGS =
|
---|
| 52 |
|
---|
| 53 | LIBS =
|
---|
| 54 |
|
---|
[11253] | 55 | COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
[2468] | 56 | LINK = $(CC) $(LDFLAGS)
|
---|
| 57 |
|
---|
[855] | 58 | .SUFFIXES:
|
---|
[2468] | 59 | .SUFFIXES: .c .obj .cpp
|
---|
[855] | 60 | .c.obj:
|
---|
| 61 | $(COMPILE) $<
|
---|
[2468] | 62 | .cpp.obj:
|
---|
| 63 | $(COMPILE) $<
|
---|
[855] | 64 |
|
---|
| 65 | o = .obj
|
---|
[2468] | 66 |
|
---|
[855] | 67 | HEADERS = \
|
---|
| 68 | bitio_m_random.h local_strings.h lovinstem.h \
|
---|
[2468] | 69 | bitio_m_stdio.h memlib.h netorder.h \
|
---|
[855] | 70 | bitio_gen.h mgheap.h messages.h \
|
---|
| 71 | bitio_m.h huffman.h \
|
---|
| 72 | bitio_m_mem.h perf_hash.h \
|
---|
[2556] | 73 | bitio_m_mems.h getopt_old.h \
|
---|
[855] | 74 | pathmax.h getpagesize.h sysfuncs.h bitio_m_abstract.h \
|
---|
| 75 | random.h simplefrenchstem.h unitool.h longlong.h \
|
---|
[2468] | 76 | non_ansi.h
|
---|
[855] | 77 |
|
---|
| 78 | SOURCES = \
|
---|
[2468] | 79 | mgheap.cpp \
|
---|
[855] | 80 | huffman.cpp messages.cpp \
|
---|
| 81 | bitio_gen.cpp perf_hash.cpp \
|
---|
[2468] | 82 | local_strings.cpp lovinstem.cpp \
|
---|
[855] | 83 | bitio_m_mem.cpp bitio_m_stdio.cpp bitio_m_mems.cpp \
|
---|
[2468] | 84 | alloca.c xmalloc.c strstr.cpp \
|
---|
| 85 | ftruncate.cpp strcasecmp.cpp random.cpp \
|
---|
[855] | 86 | simplefrenchstem.cpp unitool.cpp bitio_m_random.cpp \
|
---|
[2556] | 87 | bitio_m_abstract.cpp getopt_old.c
|
---|
[855] | 88 |
|
---|
[2468] | 89 | OBJECTS = mgheap$o \
|
---|
[855] | 90 | huffman$o messages$o \
|
---|
| 91 | bitio_gen$o perf_hash$o \
|
---|
[2468] | 92 | local_strings$o lovinstem$o \
|
---|
[855] | 93 | bitio_m_mem$o bitio_m_stdio$o bitio_m_mems$o \
|
---|
| 94 | xmalloc$o bitio_m_random$o bitio_m_abstract$o \
|
---|
[2468] | 95 | random$o simplefrenchstem$o \
|
---|
[2710] | 96 | unitool$o win32in$o getopt_old$o
|
---|
[855] | 97 |
|
---|
| 98 | all : libmg.lib
|
---|
| 99 |
|
---|
[2468] | 100 | libmg.lib: $(OBJECTS)
|
---|
| 101 | if EXIST libmg.lib del libmg.lib
|
---|
[11253] | 102 | lib -nologo /out:libmg.lib $(OBJECTS)
|
---|
[855] | 103 |
|
---|
[2468] | 104 | clean:
|
---|
| 105 | del *$o
|
---|
[855] | 106 | del libmg.lib
|
---|
| 107 |
|
---|
[2468] | 108 | install: |
---|