Switch to unified view

a/src/utils/Makefile b/src/utils/Makefile
1
include ../mk/sysconf
2
3
BIGLIB = ../lib/librcl.a
4
1
5
PROGS = trconftree wipedir smallut trfstreewalk trpathut transcode \
2
PROGS = trconftree wipedir smallut trfstreewalk trpathut transcode \
6
      trmimeparse trexecmd utf8iter idfile
3
      trmimeparse trexecmd utf8iter idfile
7
4
8
all: $(PROGS)
5
all: $(PROGS) $(BIGLIB)
6
7
$(BIGLIB):
8
  cd ../lib;$(MAKE)
9
9
10
FSTREEWALK_OBJS= trfstreewalk.o fstreewalk.o pathut.o
10
FSTREEWALK_OBJS= trfstreewalk.o fstreewalk.o pathut.o
11
trfstreewalk : $(FSTREEWALK_OBJS)
11
trfstreewalk : $(FSTREEWALK_OBJS)
12
    $(CXX) -o trfstreewalk $(FSTREEWALK_OBJS)
12
    $(CXX) -o trfstreewalk $(FSTREEWALK_OBJS)
13
trfstreewalk.o : fstreewalk.cpp fstreewalk.h
13
trfstreewalk.o : fstreewalk.cpp fstreewalk.h
...
...
67
trutf8iter.o : ../utils/utf8iter.cpp utf8iter.h
67
trutf8iter.o : ../utils/utf8iter.cpp utf8iter.h
68
    $(CXX) $(CXXFLAGS) -DTEST_UTF8ITER -c -o trutf8iter.o \
68
    $(CXX) $(CXXFLAGS) -DTEST_UTF8ITER -c -o trutf8iter.o \
69
           utf8iter.cpp
69
           utf8iter.cpp
70
70
71
71
72
73
CONFTREE_OBJS= trconftree.o  $(BIGLIB) 
72
CONFTREE_OBJS= trconftree.o  $(BIGLIB) 
74
trconftree : $(CONFTREE_OBJS)
73
trconftree : $(CONFTREE_OBJS)
75
    $(CXX) $(CXXFLAGS) -o trconftree $(CONFTREE_OBJS)
74
    $(CXX) $(CXXFLAGS) -o trconftree $(CONFTREE_OBJS)
76
trconftree.o : ../utils/conftree.cpp 
75
trconftree.o : ../utils/conftree.cpp 
77
    $(CXX) $(CXXFLAGS) -DTEST_CONFTREE -c -o trconftree.o \
76
    $(CXX) $(CXXFLAGS) -DTEST_CONFTREE -c -o trconftree.o \
78
           conftree.cpp
77
           conftree.cpp
79
78
79
clean:
80
  rm -f *.o $(PROGS)
80
81
81
82
include ../mk/sysconf
82
clean: 
83
  rm -f *.o $(PROGS)