Switch to unified view

a/src/query/Makefile b/src/query/Makefile
1
1
2
CXXFLAGS = -Wall -g -I. -I../index -I../utils -I../common -I/usr/local/include
2
CXXFLAGS = -Wall -g -I. -I../index -I../utils -I../common -I/usr/local/include
3
3
4
4
5
PROGS = xadump
5
PROGS = qtry qxtry xadump
6
all: $(PROGS)
6
all: $(PROGS)
7
7
8
XADUMP_OBJS= xadump.o transcode.o
8
XADUMP_OBJS= xadump.o transcode.o
9
xadump : $(XADUMP_OBJS)
9
xadump : $(XADUMP_OBJS)
10
    $(CXX) $(CXXFLAGS) -o xadump $(XADUMP_OBJS) \
10
    $(CXX) $(CXXFLAGS) -o xadump $(XADUMP_OBJS) \
11
           -L/usr/local/lib -lxapian -liconv
11
           -L/usr/local/lib -lxapian -liconv
12
12
13
QXTRY_OBJS= qxtry.o transcode.o
14
qxtry : $(QXTRY_OBJS)
15
  $(CXX) $(CXXFLAGS) -o qxtry $(QXTRY_OBJS) \
16
         -L/usr/local/lib -lxapian -liconv
17
18
QTRY_OBJS= qtry.o conftree.o rclconfig.o \
19
      rcldb.o transcode.o  \
20
      textsplit.o unac.o unacpp.o pathut.o
21
22
qtry : $(QTRY_OBJS)
23
  $(CXX) $(CXXFLAGS) -o qtry $(QTRY_OBJS) \
24
         -L/usr/local/lib -lxapian -liconv
25
13
transcode.o : ../index/transcode.cpp ../index/transcode.h
26
transcode.o : ../index/transcode.cpp ../index/transcode.h
14
    $(CXX) $(CXXFLAGS) -c -o transcode.o ../index/transcode.cpp
27
    $(CXX) $(CXXFLAGS) -c -o transcode.o ../index/transcode.cpp
15
28
29
conftree.o : ../utils/conftree.cpp ../utils/conftree.h
30
  $(CXX) $(CXXFLAGS) -c -o conftree.o ../utils/conftree.cpp
31
rclconfig.o : ../common/rclconfig.cpp ../common/rclconfig.h
32
  $(CXX) $(CXXFLAGS) -c -o rclconfig.o ../common/rclconfig.cpp
33
unacpp.o : ../common/unacpp.cpp ../common/unacpp.h
34
  $(CXX) $(CXXFLAGS) -I../unac -c -o unacpp.o ../common/unacpp.cpp
35
pathut.o : ../utils/pathut.cpp ../utils/pathut.h
36
  $(CXX) $(CXXFLAGS) -c -o pathut.o ../utils/pathut.cpp
37
rcldb.o : ../common/rcldb.cpp ../common/rcldb.h
38
  $(CXX) $(CXXFLAGS) -c -o rcldb.o ../common/rcldb.cpp
39
textsplit.o : ../common/textsplit.cpp ../common/textsplit.h
40
  $(CXX) $(CXXFLAGS) -c -o textsplit.o ../common/textsplit.cpp
41
42
43
CFLAGS = -g -I. -I../unac -I/usr/local/include -DUNAC_VERSION=\"1.0.7\"
44
unac.o : ../unac/unac.c ../unac/unac.h
45
  $(CC) $(CFLAGS) -c -o unac.o ../unac/unac.c
46
16
clean: 
47
clean: 
17
    rm -f *.o $(PROGS)
48
    rm -f *.o $(PROGS)
49
alldeps:depend
50
depend:
51
  $(CXX) $(CXXFLAGS) -M *.cpp > alldeps
52
include alldeps
53