-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile.unix
182 lines (163 loc) · 4.32 KB
/
makefile.unix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
SRCDIR = source
OBJDIR = bin
BINDIR = bin
# debuging compiling and linking
#LDFLAGS = -g -ldl
#CFLAGS = -g -Wall -DHASHER=1 -DHEADER_HASHER=1 $(COMPRESSION) -DONE_PARSER \
# -Wno-missing-braces -Wno-unknown-pragmas -Wno-write-strings
# normal compiling and linking
LDFLAGS = -ldl
CFLAGS = -DHASHER=1 -DHEADER_HASHER=1 $(COMPRESSION) -O2 -DONE_PARSER \
#CFLAGS = $CFLAGS -Wno-missing-braces -Wno-unknown-pragmas -Wno-write-strings
# parallel compiling and linking
LDFLAGS += -pthread
CFLAGS += -DPARALLEL_INDEXING
#
# Please use either system or built-in libs, not both
#
# use system libz and libbz2 libraries
USE_SYSTEM_ZLIB = 0
USE_SYSTEM_BZLIB = 0
# use ant's built-in libz and libbz2 libraries
USE_BUILT_IN_ZLIB = 0
USE_BUILT_IN_BZLIB = 0
ifeq ($(USE_SYSTEM_ZLIB), 1)
CFLAGS += -DANT_HAS_ZLIB
LDFLAGS += -lz
endif
ifeq ($(USE_SYSTEM_BZLIB), 1)
# use system libbz2 library
CFLAGS += -DANT_HAS_BZLIB
LDFLAGS += -lbz2
endif
ifeq ($(USE_BUILT_IN_ZLIB), 1)
CFLAGS += -DANT_HAS_ZLIB -I zlib/zlib-1.2.3
EXTRA_OBJS += zlib/zlib-1.2.3/libz.a
endif
ifeq ($(USE_BUILT_IN_BZLIB), 1)
CFLAGS += -DANT_HAS_BZLIB -I bzip/bzip2-1.0.5
EXTRA_OBJS += bzip/bzip2-1.0.5/libbz2.a
endif
CC = cc
#CC = icpc
OBJECTS = \
sockets.o \
channel_file.o \
channel_socket.o \
parser.o \
parser_readability.o \
memory_index_hash_node.o \
memory_index.o \
stats_memory_index.o \
hash_table.o \
postings_piece.o \
ctypes.o \
file.o \
file_memory.o \
file_internals.o \
maths.o \
memory.o \
search_engine.o \
search_engine_accumulator.o \
search_engine_result.o \
search_engine_result_iterator.o \
mean_average_precision.o \
assessment.o \
assessment_ANT.o \
assessment_INEX.o \
assessment_factory.o \
relevant_document.o \
stats.o \
stats_time.o \
stats_search_engine.o \
search_engine_forum.o \
search_engine_forum_INEX.o \
search_engine_forum_INEX_efficiency.o \
search_engine_forum_TREC.o \
str.o \
stop_word.o \
disk.o \
directory_iterator.o \
directory_iterator_compressor.o \
directory_iterator_multiple.o \
directory_iterator_internals.o \
directory_iterator_tar.o \
directory_iterator_warc.o \
directory_iterator_pkzip.o \
directory_iterator_file.o \
directory_iterator_recursive.o \
btree_iterator.o \
stemmer.o \
stemmer_term_similarity.o \
stemmer_term_similarity_threshold.o \
stemmer_term_similarity_weighted.o \
porter.o \
lovins.o \
stemmer_factory.o \
paice_husk.o \
learned_wikipedia_stem.o \
relevant_topic.o \
bitstream.o \
compress_elias_gamma.o \
compress_elias_delta.o \
compress_golomb.o \
compress_simple9.o \
compress_relative10.o \
compress_carryover12.o \
compress_variable_byte.o \
compress_simple16.o \
compress_none.o \
compress_sigma.o \
compression_factory.o \
compress_text_none.o \
compress_text_bz2.o \
compress_text_deflate.o \
compression_text_factory.o \
readability_dale_chall.o \
readability_factory.o \
search_engine_readability.o \
plugin_manager.o \
indexer_param_block_rank.o \
indexer_param_block.o \
indexer_param_block_rank.o \
ant_param_block.o \
version.o \
ranking_function.o \
ranking_function_impact.o \
ranking_function_similarity.o \
ranking_function_readability.o \
ranking_function_lmd.o \
ranking_function_lmjm.o \
ranking_function_bose_einstein.o \
ranking_function_divergence.o \
ranking_function_bm25.o \
ranking_function_inner_product.o \
ranking_function_term_count.o \
instream_file.o \
instream_deflate.o \
instream_bz2.o \
instream_buffer.o \
nexi.o \
NEXI_term_iterator.o \
NEXI_term_ant.o \
NEXI_term.o \
semaphores.o \
critical_section.o \
focus.o\
focus_lowest_tag.o \
threads.o
OBJECTS_W_DIR = $(OBJECTS:%=$(OBJDIR)/%)
all : $(BINDIR)/index $(BINDIR)/ant
$(OBJDIR)/%.o : $(SRCDIR)/%.c
$(CC) $(CFLAGS) -c $< -o $@
$(BINDIR)/index : $(OBJECTS_W_DIR) $(OBJDIR)/index.o
$(CC) $(LDFLAGS) -o $@ $(EXTRA_OBJS) $^
$(BINDIR)/ant : $(OBJECTS_W_DIR) $(OBJDIR)/ant.o
$(CC) $(LDFLAGS) -o $@ $(EXTRA_OBJS) $^
$(OBJECTS_W_DIR) : makefile.unix
.PHONY : clean
clean :
\rm $(OBJDIR)/*.o $(BINDIR)/index $(BINDIR)/ant
depend :
makedepend -f- -Y -w1024 -pbin/ source/*.c -- $(CFLAGS) | sed -e "s/bin\/source/bin/" >| makefile.dependencies.unix
include makefile.dependencies.unix