source: trunk/indexers/mgpp/text/WIN32.MAK@ 9817

Last change on this file since 9817 was 9817, checked in by kjdon, 19 years ago

added $e to each executable name - it wasn't working properly, and now hopefully it is

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 6.6 KB
Line 
1###########################################################################
2#
3# win32 makefile -- mgpp\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
27MGPPHOME = ..
28GSDL3HOME = ..\..\..
29AR = lib
30CC = cl
31CPPFLAGS = -GX
32LINK = cl
33
34DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -DSHORT_SUFFIX -D__STDC__ -D__GNU_LIBRARY__ -D__MSDOS__
35INCLUDES = -I"." -I"$(MGPPHOME)" -I"$(MGPPHOME)\lib"
36LIBS = $(MGPPHOME)\lib\libmgpp.lib
37
38COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
39
40.SUFFIXES:
41.SUFFIXES: .c .cpp .obj
42.c.obj:
43 $(COMPILE) $<
44.cpp.obj:
45 $(COMPILE) $<
46
47ANSI2KNR =
48o = .obj
49e = .exe
50
51HEADERS = \
52 FIvfLevelInfo.h TextEl.h hash.h stemmer.h \
53 FText.h TextGet.h invf.h text.h \
54 FileBuf.h UCArray.h locallib.h words.h \
55 FragLevelConvert.h WordData.h mg.h \
56 IndexData.h build.h mg_errors.h \
57 TagInfo.h comp_dict.h mg_files.h Weights.h \
58 MGQuery.h Terms.h QueryLex.h QueryParser.h \
59 GSDLQueryLex.h GSDLQueryParser.h
60
61
62SOURCES = \
63 FIvfLevelInfo.cpp ivf.pass1.cpp mgpp_invf_dump.cpp \
64 FText.cpp ivf.pass2.cpp mgpp_passes.cpp \
65 FileBuf.cpp locallib.cpp mgpp_perf_hash_build.cpp \
66 FragLevelConvert.cpp mg.special.cpp mgpp_stem_idx.cpp \
67 IndexData.cpp mgpp_compression_dict.cpp mgpp_weights_build.cpp \
68 TagInfo.cpp mgpp_decompress_text.cpp stemmer.cpp \
69 TextEl.cpp mg_errors.cpp text.cpp \
70 TextGet.cpp mgpp_fast_comp_dict.cpp text.pass1.cpp \
71 UCArray.cpp mg_files.cpp text.pass2.cpp \
72 comp_dict.cpp mgpp_invf_dict.cpp words.cpp \
73 invf.cpp mgpp_invf_dict_dump.cpp Weights.cpp \
74 MGQuery.cpp Terms.cpp QueryTester.cpp \
75 QueryLex.cpp QueryParser.cpp \
76 GSDLQueryLex.cpp GSDLQueryParser.cpp Queryer.cpp
77
78
79EXEC = mgpp_passes$e mgpp_decompress_text$e mgpp_perf_hash_build$e \
80 mgpp_invf_dump$e mgpp_weights_build$e mgpp_invf_dict$e \
81 mgpp_stem_idx$e mgpp_invf_dict_dump$e mgpp_compression_dict$e \
82 mgpp_fast_comp_dict$e QueryTester$e Queryer$e
83
84DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
85
86all : $(EXEC) libtextin.lib libmgpppass.lib
87
88
89PASSES_OBJS = \
90 mgpp_passes$o text.pass1$o comp_dict$o \
91 text.pass2$o locallib$o \
92 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o \
93 words$o invf$o FileBuf$o TextEl$o UCArray$o TagInfo$o \
94 FText$o text$o FIvfLevelInfo$o
95
96mgpp_passes$e: $(PASSES_OBJS)
97 $(LINK) $(PASSES_OBJS) $(LIBS)
98
99QUERYER_OBJS = Queryer$o mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
100 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
101 IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
102 GSDLQueryParser$o GSDLQueryLex$o words$o
103
104Queryer$e: $(QUERYER_OBJS)
105 $(LINK) $(QUERYER_OBJS) $(LIBS)
106
107QUERY_TESTER_OBJS = QueryTester$o mg_files$o invf$o UCArray$o \
108 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
109 IndexData$o stemmer$o Weights$o
110
111QueryTester$e: $(QUERY_TESTER_OBJS)
112 $(LINK) $(QUERY_TESTER_OBJS) $(LIBS)
113
114WEIGHTS_BUILD_OBJS = mgpp_weights_build$o mg_files$o invf$o UCArray$o \
115 FIvfLevelInfo$o FragLevelConvert$o
116
117mgpp_weights_build$e: $(WEIGHTS_BUILD_OBJS)
118 $(LINK) $(WEIGHTS_BUILD_OBJS) $(LIBS)
119
120COMP_DICT_OBJS = mgpp_compression_dict$o mg_files$o locallib$o
121
122mgpp_compression_dict$e: $(COMP_DICT_OBJS)
123 $(LINK) $(COMP_DICT_OBJS) $(LIBS)
124
125FAST_COMP_OBJS = mgpp_fast_comp_dict$o mg_files$o locallib$o
126
127mgpp_fast_comp_dict$e: $(FAST_COMP_OBJS)
128 $(LINK) $(FAST_COMP_OBJS) $(LIBS)
129
130INVF_DUMP_OBJS = mgpp_invf_dump$o locallib$o mg_files$o invf$o UCArray$o
131
132mgpp_invf_dump$e: $(INVF_DUMP_OBJS)
133 $(LINK) $(INVF_DUMP_OBJS) $(LIBS)
134
135INVF_DICT_OBJS = mgpp_invf_dict$o mg_files$o invf$o UCArray$o
136
137mgpp_invf_dict$e: $(INVF_DICT_OBJS)
138 $(LINK) $(INVF_DICT_OBJS) $(LIBS)
139
140INVF_DICT_DUMP_OBJS = mgpp_invf_dict_dump$o mg_files$o invf$o UCArray$o
141
142mgpp_invf_dict_dump$e: $(INVF_DICT_DUMP_OBJS)
143 $(LINK) $(INVF_DICT_DUMP_OBJS) $(LIBS)
144
145PERF_HASH_OBJS = mgpp_perf_hash_build$o mg_files$o invf$o UCArray$o
146
147mgpp_perf_hash_build$e: $(PERF_HASH_OBJS)
148 $(LINK) $(PERF_HASH_OBJS) $(LIBS)
149
150STEM_IDX_OBJS = mgpp_stem_idx$o mg_files$o stemmer$o \
151 invf$o UCArray$o
152
153mgpp_stem_idx$e: $(STEM_IDX_OBJS)
154 $(LINK) $(STEM_IDX_OBJS) $(LIBS)
155
156DECOMPRESS_TEXT_OBJS = \
157 mgpp_decompress_text$o mg_files$o mg_errors$o \
158 locallib$o text$o UCArray$o TextGet$o FText$o
159
160mgpp_decompress_text$e: $(DECOMPRESS_TEXT_OBJS)
161 $(LINK) $(DECOMPRESS_TEXT_OBJS) $(LIBS)
162
163
164LIB_OBJS = mg_files$o mg_errors$o locallib$o invf$o UCArray$o \
165 FIvfLevelInfo$o FragLevelConvert$o Terms$o MGQuery$o \
166 IndexData$o stemmer$o Weights$o TextGet$o text$o FText$o \
167 GSDLQueryParser$o GSDLQueryLex$o words$o
168
169libtextin.lib: $(LIB_OBJS)
170 if exist libtextin.lib del libtextin.lib
171 $(AR) /out:libtextin.lib $(LIB_OBJS)
172
173JNI_LIB_OBJS = \
174 mgpp_passes_4jni$o text.pass1$o comp_dict$o \
175 text.pass2$o locallib$o \
176 ivf.pass1$o ivf.pass2$o mg.special$o mg_files$o \
177 words$o invf$o FileBuf$o TextEl$o UCArray$o TagInfo$o \
178 FText$o text$o FIvfLevelInfo$o
179
180libmgpppass.lib: $(JNI_LIB_OBJS)
181 if exist libmgpppass.lib del libmgpppass.lib
182 $(AR) /out:libmgpppass.lib $(JNI_LIB_OBJS)
183
184install:
185 for %%i in ($(EXEC)) do \
186 copy %%i "$(GSDL3HOME)\bin"
187
188clean:
189 del *$o
190 del libtextin.lib libmgpppass.lib
191
Note: See TracBrowser for help on using the repository browser.