Switch to unified view

a/src/common/Makefile b/src/common/Makefile
1
# @(#$Id: Makefile,v 1.16 2008-12-17 14:26:49 dockes Exp $  (C) 2005 J.F.Dockes
2
depth = ..
1
depth = ..
3
include $(depth)/mk/sysconf
2
include $(depth)/mk/sysconf
4
3
5
# Only test executables get build in here
4
# Only test executables get build in here
6
PROGS = unacpp textsplit rclconfig
5
PROGS = unacpp textsplit rclconfig
7
6
8
all: $(BIGLIB) $(PROGS) 
7
all: librecoll $(PROGS) 
9
8
10
$(BIGLIB): force
11
  cd $(depth)/lib;$(MAKE)
12
force:
13
14
UNACPP_OBJS= trunacpp.o $(BIGLIB)
9
UNACPP_OBJS= trunacpp.o
15
unacpp : $(UNACPP_OBJS)
10
unacpp : $(UNACPP_OBJS)
16
    $(CXX) $(ALL_CXXFLAGS) -o unacpp $(UNACPP_OBJS) \
11
    $(CXX) $(ALL_CXXFLAGS) -o unacpp $(UNACPP_OBJS) \
17
         $(LIBICONV)
12
         $(LIBRECOLL)  $(LIBICONV)
18
trunacpp.o : unacpp.cpp unacpp.h
13
trunacpp.o : unacpp.cpp unacpp.h
19
    $(CXX) $(ALL_CXXFLAGS) -DTEST_UNACPP -c -o trunacpp.o unacpp.cpp
14
    $(CXX) $(ALL_CXXFLAGS) -DTEST_UNACPP -c -o trunacpp.o unacpp.cpp
20
15
21
TEXTSPLIT_OBJS= trtextsplit.o  $(BIGLIB)
16
TEXTSPLIT_OBJS= trtextsplit.o  
22
textsplit : $(TEXTSPLIT_OBJS)
17
textsplit : $(TEXTSPLIT_OBJS)
23
    $(CXX) $(ALL_CXXFLAGS) -o textsplit $(TEXTSPLIT_OBJS) $(LIBICONV)
18
    $(CXX) $(ALL_CXXFLAGS) -o textsplit $(TEXTSPLIT_OBJS) \
19
        $(LIBRECOLL) $(LIBICONV)
24
trtextsplit.o : textsplit.cpp 
20
trtextsplit.o : textsplit.cpp 
25
    $(CXX) $(ALL_CXXFLAGS) -DTEST_TEXTSPLIT -c -o trtextsplit.o \
21
    $(CXX) $(ALL_CXXFLAGS) -DTEST_TEXTSPLIT -c -o trtextsplit.o \
26
           textsplit.cpp
22
           textsplit.cpp
27
23
28
RCLCONFIG_OBJS= trrclconfig.o  $(BIGLIB) 
24
RCLCONFIG_OBJS= trrclconfig.o 
29
rclconfig : $(RCLCONFIG_OBJS) 
25
rclconfig : $(RCLCONFIG_OBJS) 
30
    $(CXX) $(ALL_CXXFLAGS) -o rclconfig $(RCLCONFIG_OBJS) \
26
    $(CXX) $(ALL_CXXFLAGS) -o rclconfig $(RCLCONFIG_OBJS) \
31
           $(LIBICONV) $(LIBSYS)
27
           $(LIBRECOLL) $(LIBICONV) $(LIBSYS)
32
trrclconfig.o : rclconfig.cpp 
28
trrclconfig.o : rclconfig.cpp 
33
    $(CXX) $(ALL_CXXFLAGS) -DTEST_RCLCONFIG -c -o trrclconfig.o \
29
    $(CXX) $(ALL_CXXFLAGS) -DTEST_RCLCONFIG -c -o trrclconfig.o \
34
           rclconfig.cpp
30
           rclconfig.cpp
35
31
36
clean:
32
include $(depth)/mk/commontargets
37
  rm -f *.o $(PROGS)
38
33