Switch to unified view

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 wasatorcl #trhist qtry qxtry 
4
PROGS = xadump recollq #trhist qtry qxtry 
5
5
6
all: $(PROGS)
6
all: $(PROGS)
7
7
8
SRCS = xadump.cpp rclqlang.cpp
8
SRCS = xadump.cpp rclqlang.cpp
9
.cpp.o : 
9
.cpp.o : 
...
...
12
XADUMP_OBJS= xadump.o $(BIGLIB)
12
XADUMP_OBJS= xadump.o $(BIGLIB)
13
xadump : $(XADUMP_OBJS)
13
xadump : $(XADUMP_OBJS)
14
    $(CXX) $(ALL_CXXFLAGS) -o xadump $(XADUMP_OBJS) \
14
    $(CXX) $(ALL_CXXFLAGS) -o xadump $(XADUMP_OBJS) \
15
           $(LIBICONV) $(LIBXAPIAN) $(LIBSYS)
15
           $(LIBICONV) $(LIBXAPIAN) $(LIBSYS)
16
16
17
RECOLLQ_OBJS= recollq.o  $(BIGLIB) $(MIMELIB)
18
recollq : $(RECOLLQ_OBJS)
19
  $(CXX) $(ALL_CXXFLAGS) -o recollq $(RECOLLQ_OBJS) \
20
         $(LIBICONV) $(LIBXAPIAN)
21
recollq.o : recollq.cpp 
22
  $(CXX) $(ALL_CXXFLAGS) -c recollq.cpp
23
17
HISTORY_OBJS= trhist.o  $(BIGLIB) $(MIMELIB)
24
HISTORY_OBJS= trhist.o  $(BIGLIB) $(MIMELIB)
18
trhist : $(HISTORY_OBJS)
25
trhist : $(HISTORY_OBJS)
19
    $(CXX) $(ALL_CXXFLAGS) -o trhist $(HISTORY_OBJS) \
26
    $(CXX) $(ALL_CXXFLAGS) -o trhist $(HISTORY_OBJS) \
20
           $(LIBICONV) $(LIBXAPIAN)
27
           $(LIBICONV) $(LIBXAPIAN)
21
trhist.o : history.cpp history.h
28
trhist.o : history.cpp history.h
22
    $(CXX) $(ALL_CXXFLAGS) -DTEST_HISTORY -c -o trhist.o history.cpp
29
    $(CXX) $(ALL_CXXFLAGS) -DTEST_HISTORY -c -o trhist.o history.cpp
23
30
24
WASASTRINGTOQUERY_OBJS= trwasastrtoq.o  $(BIGLIB) $(MIMELIB)
31
WASASTRINGTOQUERY_OBJS= trwasastrtoq.o  $(BIGLIB) $(MIMELIB)
25
trwasastrtoq : $(WASASTRINGTOQUERY_OBJS)
32
trwasastrtoq : $(WASASTRINGTOQUERY_OBJS)
26
    $(CXX) $(ALL_CXXFLAGS) -o trwasastrtoq $(WASASTRINGTOQUERY_OBJS) \
33
    $(CXX) $(ALL_CXXFLAGS) -o trwasastrtoq $(WASASTRINGTOQUERY_OBJS) \
27
         $(LIBICONV) $(LIBXAPIAN)
34
             $(LIBICONV) $(LIBXAPIAN)
28
trwasastrtoq.o : wasastringtoquery.cpp wasastringtoquery.h
35
trwasastrtoq.o : wasastringtoquery.cpp wasastringtoquery.h
29
    $(CXX) $(ALL_CXXFLAGS) -DTEST_WASASTRINGTOQUERY -c \
36
    $(CXX) $(ALL_CXXFLAGS) -DTEST_WASASTRINGTOQUERY -c \
30
         -o trwasastrtoq.o wasastringtoquery.cpp
37
             -o trwasastrtoq.o wasastringtoquery.cpp
31
32
WASATORCL_OBJS= trwasatorcl.o  $(BIGLIB) $(MIMELIB)
33
wasatorcl : $(WASATORCL_OBJS)
34
  $(CXX) $(ALL_CXXFLAGS) -o wasatorcl $(WASATORCL_OBJS) \
35
         $(LIBICONV) $(LIBXAPIAN)
36
trwasatorcl.o : wasatorcl.cpp wasatorcl.h
37
  $(CXX) $(ALL_CXXFLAGS) -DTEST_WASATORCL -c \
38
         -o trwasatorcl.o wasatorcl.cpp
39
38
40
$(BIGLIB): force
39
$(BIGLIB): force
41
    cd $(depth)/lib;$(MAKE)
40
    cd $(depth)/lib;$(MAKE)
42
force:
41
force:
43
42