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

Last change on this file since 13756 was 13756, checked in by kjdon, 17 years ago

changed the names of libs to match the linux version. and other windows changes so that it works properly

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