1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # 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) 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 | MGHOME = ..
|
---|
28 |
|
---|
29 | AR = lib
|
---|
30 | CC = cl
|
---|
31 |
|
---|
32 | DEBUG = 0
|
---|
33 |
|
---|
34 | !IF $(DEBUG)
|
---|
35 | CFLAGS = -DEBUG -Z7 /errorReport:prompt
|
---|
36 | ARFLAGS = /DEBUG /Z7 /errorReport:prompt
|
---|
37 | !ELSE
|
---|
38 | CFLAGS =
|
---|
39 | ARFLAGS =
|
---|
40 | !ENDIF
|
---|
41 |
|
---|
42 |
|
---|
43 | DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN -DPARADOCNUM \
|
---|
44 | -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
|
---|
45 |
|
---|
46 | INCLUDES = -I"." -I"$(MGHOME)"
|
---|
47 |
|
---|
48 | COMPILE = $(CC) $(CFLAGS) -c $(DEFS) $(INCLUDES)
|
---|
49 |
|
---|
50 | .SUFFIXES: .c .obj
|
---|
51 | .c.obj:
|
---|
52 | $(COMPILE) $<
|
---|
53 |
|
---|
54 | o = .obj
|
---|
55 |
|
---|
56 | HEADERS = \
|
---|
57 | bitio_m_random.h filestats.h local_strings.h lovinstem.h \
|
---|
58 | bitio_m_stdio.h getopt.h memlib.h \
|
---|
59 | bitio_gen.h bitio_mem.h mgheap.h messages.h \
|
---|
60 | bitio_m.h bitio_mems.h huffman.h timing.h \
|
---|
61 | bitio_m_mem.h bitio_random.h huffman_mem.h perf_hash.h \
|
---|
62 | bitio_m_mems.h bitio_stdio.h huffman_stdio.h sptree.h \
|
---|
63 | rx.h pathmax.h getpagesize.h \
|
---|
64 | random.h win32in.h simplefrenchstem.h unitool.h \
|
---|
65 | longlong.h
|
---|
66 |
|
---|
67 | SOURCES = \
|
---|
68 | bitio_random.c mgheap.c memlib.c \
|
---|
69 | bitio_stdio.c huffman.c messages.c \
|
---|
70 | bitio_gen.c filestats.c huffman_mem.c perf_hash.c \
|
---|
71 | bitio_mem.c getopt.c huffman_stdio.c sptree.c \
|
---|
72 | bitio_mems.c getopt1.c local_strings.c lovinstem.c \
|
---|
73 | timing.c rx.c \
|
---|
74 | alloca.c error.c xmalloc.c strstr.c \
|
---|
75 | ftruncate.c strcasecmp.c random.c win32in.c \
|
---|
76 | simplefrenchstem.c unitool.h
|
---|
77 |
|
---|
78 | OBJECTS = rx$o \
|
---|
79 | bitio_random$o mgheap$o memlib$o \
|
---|
80 | bitio_stdio$o huffman$o messages$o \
|
---|
81 | bitio_gen$o filestats$o huffman_mem$o perf_hash$o \
|
---|
82 | bitio_mem$o getopt$o huffman_stdio$o sptree$o \
|
---|
83 | bitio_mems$o getopt1$o local_strings$o lovinstem$o \
|
---|
84 | timing$o \
|
---|
85 | error$o xmalloc$o \
|
---|
86 | random$o win32in$o simplefrenchstem$o \
|
---|
87 | unitool$o
|
---|
88 |
|
---|
89 | DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
|
---|
90 |
|
---|
91 | all : libmglib.lib
|
---|
92 |
|
---|
93 | libmglib.lib : $(OBJECTS)
|
---|
94 | if exist libmglib.lib del libmglib.lib
|
---|
95 | $(AR) /out:libmglib.lib $(ARFLAGS) $(OBJECTS)
|
---|
96 |
|
---|
97 | install:
|
---|
98 |
|
---|
99 | clean:
|
---|
100 | if exist *$o del *$o
|
---|
101 | if exist libmglib.lib del libmglib.lib
|
---|