|
a/src/query/Makefile |
|
b/src/query/Makefile |
1 |
depth = ..
|
1 |
depth = ..
|
2 |
include $(depth)/mk/sysconf
|
2 |
include $(depth)/mk/sysconf
|
3 |
|
3 |
|
4 |
PROGS = xadump recollq #trhist qtry qxtry
|
4 |
PROGS = xadump recollq #trhist qtry qxtry
|
|
|
5 |
SRCS = xadump.cpp
|
5 |
|
6 |
|
6 |
all: $(PROGS)
|
7 |
all: depend $(PROGS) librecoll
|
7 |
|
8 |
|
8 |
SRCS = xadump.cpp rclqlang.cpp
|
|
|
9 |
.cpp.o :
|
|
|
10 |
$(CXX) -c $(ALL_CXXFLAGS) -o $@ $<
|
|
|
11 |
|
|
|
12 |
XADUMP_OBJS= xadump.o $(BIGLIB)
|
9 |
XADUMP_OBJS= xadump.o
|
13 |
xadump : $(XADUMP_OBJS)
|
10 |
xadump : $(XADUMP_OBJS)
|
14 |
$(CXX) $(ALL_CXXFLAGS) -o xadump $(XADUMP_OBJS) \
|
11 |
$(CXX) $(ALL_CXXFLAGS) -o xadump $(XADUMP_OBJS) \
|
15 |
$(LIBICONV) $(LIBXAPIAN) $(LIBSYS)
|
12 |
$(depth)/lib/librecoll.a $(LIBICONV) $(LIBXAPIAN) $(LIBSYS)
|
|
|
13 |
xadump.o : xadump.cpp
|
|
|
14 |
$(CXX) $(ALL_CXXFLAGS) -c xadump.cpp
|
16 |
|
15 |
|
17 |
RECOLLQ_OBJS= recollq.o $(BIGLIB)
|
16 |
RECOLLQ_OBJS= recollq.o
|
18 |
recollq : $(RECOLLQ_OBJS)
|
17 |
recollq : $(RECOLLQ_OBJS) librecoll
|
19 |
$(CXX) $(ALL_CXXFLAGS) -o recollq $(RECOLLQ_OBJS) \
|
18 |
$(CXX) $(ALL_CXXFLAGS) -o recollq $(RECOLLQ_OBJS) \
|
20 |
$(LIBICONV) $(LIBXAPIAN) $(LIBSYS)
|
19 |
$(BSTATIC) $(LIBRECOLL) $(LIBXAPIAN) $(LIBICONV) $(BDYNAMIC) \
|
|
|
20 |
$(LIBSYS)
|
21 |
recollq.o : recollq.cpp
|
21 |
recollq.o : recollq.cpp
|
22 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_RECOLLQ -c recollq.cpp
|
22 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_RECOLLQ -c recollq.cpp
|
23 |
|
23 |
|
24 |
HISTORY_OBJS= trhist.o $(BIGLIB)
|
24 |
HISTORY_OBJS= trhist.o $(BIGLIB)
|
25 |
trhist : $(HISTORY_OBJS)
|
25 |
trhist : $(HISTORY_OBJS)
|
26 |
$(CXX) $(ALL_CXXFLAGS) -o trhist $(HISTORY_OBJS) \
|
26 |
$(CXX) $(ALL_CXXFLAGS) -o trhist $(HISTORY_OBJS) \
|
27 |
$(LIBICONV) $(LIBXAPIAN)
|
27 |
$(LIBICONV) $(LIBXAPIAN)
|
28 |
trhist.o : history.cpp history.h
|
28 |
trhist.o : history.cpp history.h
|
29 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_HISTORY -c -o trhist.o history.cpp
|
29 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_HISTORY -c -o trhist.o history.cpp
|
30 |
|
30 |
|
31 |
WASASTRINGTOQUERY_OBJS= trwasastrtoq.o $(BIGLIB)
|
31 |
WASASTRINGTOQUERY_OBJS= trwasastrtoq.o
|
32 |
trwasastrtoq : $(WASASTRINGTOQUERY_OBJS)
|
32 |
trwasastrtoq : $(WASASTRINGTOQUERY_OBJS)
|
33 |
$(CXX) $(ALL_CXXFLAGS) -o trwasastrtoq $(WASASTRINGTOQUERY_OBJS) \
|
33 |
$(CXX) $(ALL_CXXFLAGS) -o trwasastrtoq $(WASASTRINGTOQUERY_OBJS) \
|
34 |
$(LIBICONV) $(LIBXAPIAN)
|
34 |
$(LIBRECOLL) $(LIBICONV) $(LIBXAPIAN)
|
35 |
trwasastrtoq.o : wasastringtoquery.cpp wasastringtoquery.h
|
35 |
trwasastrtoq.o : wasastringtoquery.cpp wasastringtoquery.h
|
36 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_WASASTRINGTOQUERY -c \
|
36 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_WASASTRINGTOQUERY -c \
|
37 |
-o trwasastrtoq.o wasastringtoquery.cpp
|
37 |
-o trwasastrtoq.o wasastringtoquery.cpp
|
38 |
|
38 |
|
39 |
$(BIGLIB): force
|
39 |
include $(depth)/mk/commontargets
|
40 |
cd $(depth)/lib;$(MAKE)
|
|
|
41 |
force:
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
depend: alldeps.stamp
|
|
|
45 |
alldeps.stamp : $(SRCS)
|
|
|
46 |
$(CXX) -M $(ALL_CXXFLAGS) $(SRCS) > alldeps
|
|
|
47 |
touch alldeps.stamp
|
|
|
48 |
|
|
|
49 |
clean:
|
|
|
50 |
cp /dev/null alldeps
|
|
|
51 |
rm -f alldeps.stamp
|
|
|
52 |
rm -f *.o $(PROGS)
|
|
|
53 |
|
40 |
|
54 |
include alldeps
|
41 |
include alldeps
|