Switch to unified view

a/src/index/Makefile b/src/index/Makefile
1
depth = ..
1
include ../mk/sysconf
2
include $(depth)/mk/sysconf
2
3
3
PROGS = recollindex csguess mimetype
4
PROGS = recollindex csguess mimetype
4
SRCS = recollindex.cpp
5
SRCS = recollindex.cpp
5
6
6
all: depend $(PROGS) 
7
all: depend $(PROGS) 
7
8
8
RECOLLINDEX_OBJS= recollindex.o $(BIGLIB) $(MIMELIB)
9
RECOLLINDEX_OBJS= recollindex.o $(BIGLIB) $(MIMELIB)
9
recollindex : $(RECOLLINDEX_OBJS)
10
recollindex : $(RECOLLINDEX_OBJS)
10
    $(CXX) $(CXXFLAGS) -o recollindex $(RECOLLINDEX_OBJS) \
11
    $(CXX) $(ALL_CXXFLAGS) -o recollindex $(RECOLLINDEX_OBJS) \
11
           $(BSTATIC) $(LIBXAPIAN) $(LIBICONV) $(BDYNAMIC) $(LIBSYS)
12
           $(BSTATIC) $(LIBXAPIAN) $(LIBICONV) $(BDYNAMIC) $(LIBSYS)
12
recollindex.o : recollindex.cpp
13
recollindex.o : recollindex.cpp
13
    $(CXX) $(CXXFLAGS) -c -o recollindex.o $<
14
    $(CXX) $(ALL_CXXFLAGS) -c -o recollindex.o $<
14
15
15
CSGUESS_OBJS= trcsguess.o  $(BIGLIB) 
16
CSGUESS_OBJS= trcsguess.o  $(BIGLIB) 
16
csguess : $(CSGUESS_OBJS)
17
csguess : $(CSGUESS_OBJS)
17
    $(CXX) $(CXXFLAGS) -o csguess $(CSGUESS_OBJS) \
18
    $(CXX) $(ALL_CXXFLAGS) -o csguess $(CSGUESS_OBJS) \
18
           $(LIBICONV)
19
           $(LIBICONV)
19
trcsguess.o : csguess.cpp
20
trcsguess.o : csguess.cpp
20
    $(CXX) $(CXXFLAGS) -DTEST_CSGUESS -c -o trcsguess.o \
21
    $(CXX) $(ALL_CXXFLAGS) -DTEST_CSGUESS -c -o trcsguess.o \
21
           csguess.cpp
22
           csguess.cpp
22
23
23
MIMETYPE_OBJS= trmimetype.o  $(BIGLIB) 
24
MIMETYPE_OBJS= trmimetype.o  $(BIGLIB) 
24
mimetype : $(MIMETYPE_OBJS)
25
mimetype : $(MIMETYPE_OBJS)
25
    $(CXX) $(CXXFLAGS) -o mimetype $(MIMETYPE_OBJS) \
26
    $(CXX) $(ALL_CXXFLAGS) -o mimetype $(MIMETYPE_OBJS) \
26
           $(LIBICONV) $(LIBSYS)
27
           $(LIBICONV) $(LIBSYS)
27
trmimetype.o : mimetype.cpp
28
trmimetype.o : mimetype.cpp
28
    $(CXX) $(CXXFLAGS) -DTEST_MIMETYPE -c -o trmimetype.o \
29
    $(CXX) $(ALL_CXXFLAGS) -DTEST_MIMETYPE -c -o trmimetype.o \
29
           mimetype.cpp
30
           mimetype.cpp
30
31
31
$(BIGLIB): 
32
$(BIGLIB): 
32
    cd ../lib;$(MAKE)
33
    cd $(depth)/lib;$(MAKE)
33
$(MIMELIB): 
34
$(MIMELIB): 
34
    cd ../bincimapmime;$(MAKE)
35
    cd $(depth)/bincimapmime;$(MAKE)
35
36
36
depend: alldeps.stamp
37
depend: alldeps.stamp
37
alldeps.stamp : $(SRCS)
38
alldeps.stamp : $(SRCS)
38
    $(CXX) -M $(CXXFLAGS) $(SRCS) > alldeps
39
    $(CXX) -M $(ALL_CXXFLAGS) $(SRCS) > alldeps
39
    touch alldeps.stamp
40
    touch alldeps.stamp
40
41
41
clean:
42
clean:
42
    cp /dev/null alldeps
43
    cp /dev/null alldeps
43
    rm -f alldeps.stamp
44
    rm -f alldeps.stamp