[3745] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # gcc win32 makefile -- mg\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) 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 |
|
---|
| 28 | AR = ar
|
---|
| 29 | RANLIB = ranlib
|
---|
| 30 | CC = gcc
|
---|
| 31 | DELETE = del
|
---|
| 32 |
|
---|
| 33 | CPPFLAGS = -g
|
---|
| 34 | DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN
|
---|
| 35 | INCLUDES = -I".." -I"."
|
---|
| 36 |
|
---|
| 37 | o = .o
|
---|
| 38 |
|
---|
| 39 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
|
---|
| 40 |
|
---|
| 41 | .SUFFIXES:
|
---|
| 42 | .SUFFIXES: .c $o
|
---|
| 43 | .c$o:
|
---|
| 44 | $(COMPILE) $<
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | HEADERS = \
|
---|
| 48 | bitio_m_random.h filestats.h local_strings.h lovinstem.h \
|
---|
| 49 | bitio_m_stdio.h getopt.h memlib.h bitio_gen.h bitio_mem.h \
|
---|
| 50 | mgheap.h messages.h bitio_m.h bitio_mems.h huffman.h \
|
---|
| 51 | timing.h bitio_m_mem.h bitio_random.h huffman_mem.h \
|
---|
| 52 | perf_hash.h bitio_m_mems.h bitio_stdio.h huffman_stdio.h \
|
---|
| 53 | sptree.h rx.h pathmax.h getpagesize.h random.h \
|
---|
| 54 | win32in.h simplefrenchstem.h unitool.h
|
---|
| 55 |
|
---|
| 56 | SOURCES = \
|
---|
| 57 | bitio_random.c mgheap.c memlib.c bitio_stdio.c huffman.c \
|
---|
| 58 | messages.c bitio_gen.c filestats.c huffman_mem.c \
|
---|
| 59 | perf_hash.c bitio_mem.c getopt.c huffman_stdio.c \
|
---|
| 60 | sptree.c bitio_mems.c getopt1.c local_strings.c \
|
---|
| 61 | lovinstem.c timing.c rx.c alloca.c error.c xmalloc.c \
|
---|
| 62 | strstr.c ftruncate.c strcasecmp.c random.c win32in.c \
|
---|
| 63 | simplefrenchstem.c unitool.h
|
---|
| 64 |
|
---|
| 65 | OBJECTS = \
|
---|
| 66 | rx$o bitio_random$o mgheap$o memlib$o bitio_stdio$o \
|
---|
| 67 | huffman$o messages$o bitio_gen$o filestats$o huffman_mem$o \
|
---|
| 68 | perf_hash$o bitio_mem$o getopt$o huffman_stdio$o sptree$o \
|
---|
| 69 | bitio_mems$o getopt1$o local_strings$o lovinstem$o \
|
---|
| 70 | timing$o error$o xmalloc$o random$o win32in$o \
|
---|
| 71 | simplefrenchstem$o unitool$o
|
---|
| 72 |
|
---|
| 73 | all : libmg.a
|
---|
| 74 |
|
---|
| 75 | libmg.a : $(OBJECTS)
|
---|
| 76 | $(DELETE) libmg.a
|
---|
| 77 | $(AR) cru libmg.a $(OBJECTS)
|
---|
| 78 | $(RANLIB) libmg.a
|
---|
| 79 |
|
---|
| 80 | install:
|
---|
| 81 |
|
---|
| 82 | clean:
|
---|
| 83 | $(DELETE) *$o
|
---|
| 84 | $(DELETE) libmg.a
|
---|