forked from qinbill/IndexMerge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (40 loc) · 1.7 KB
/
Makefile
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
##############
# Make the project
# By qinjianbin
##############
PROD := DEBUG
OPT := -O0
VERSION := \"2.0_${PROD}\"
TARGETS := txt2bin vanidxgen search querygen mgdidxgen dumpgrp
DEFINES := -DMEM_ACCESS
SRCS := binio.cpp index.cpp txt2bin.cpp mgdidx.cpp dict.cpp vanidxgen.cpp vanidx.cpp boolean_query_processing.cpp search.cpp boolean_queue.cpp querygen.cpp bq_heap_queue.cpp merge_boolean_queue.cpp mgdidxgen.cpp greedymerge.cpp usage.cpp dumpgrp.cpp
OBJS := ${SRCS:.cpp=.o}
CCFLAGS = ${OPT} -Wall -Wno-deprecated -ggdb -D${PROD} ${DEFINES} -DVERSION=${VERSION}
LDFLAGS = ${OPT} -ggdb
LIBS = -lcrypto
CC = g++
.PHONY: all clean distclean
all:: ${TARGETS}
mgdidxgen: binio.o index.o mgdidx.o dict.o greedymerge.o mgdidxgen.o bq_heap_queue.o merge_boolean_queue.o
${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
querygen: index.o binio.o querygen.o
${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
vanidxgen: binio.o dict.o vanidxgen.o vanidx.o boolean_queue.o bq_heap_queue.o
${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
search: bq_heap_queue.o search.o boolean_queue.o boolean_query_processing.o vanidx.o mgdidx.o dict.o binio.o bq_heap_queue.o merge_boolean_queue.o usage.o
${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
dumpgrp: dumpgrp.o mgdidx.o dict.o binio.o merge_boolean_queue.o
${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
${OBJS}: %.o: %.cpp
${CC} ${CCFLAGS} -o $@ -c $<
clean::
-rm -f *~ *.o ${TARGETS}
install::
mkdir -p ../bin
cp ${TARGETS} ../bin
installall::
cp ${TARGETS} /import/adams/1/jqin/snare06/sim/index_merge/bin/
cp ${TARGETS} /import/adams/1/jqin/snare03/sim/index_merge/bin/
cp ${TARGETS} /import/adams/1/jqin/snare04/sim/index_merge/bin/
cp ${TARGETS} /import/adams/1/jqin/snare05/sim/index_merge/bin/
distclean:: clean