|
a/src/utils/Makefile |
|
b/src/utils/Makefile |
|
... |
|
... |
4 |
PROGS = trecrontab
|
4 |
PROGS = trecrontab
|
5 |
#trnetcon trcopyfile trcircache trmd5 trreadfile trfileudi \
|
5 |
#trnetcon trcopyfile trcircache trmd5 trreadfile trfileudi \
|
6 |
#trconftree wipedir smallut trfstreewalk trpathut transcode trbase64 \
|
6 |
#trconftree wipedir smallut trfstreewalk trpathut transcode trbase64 \
|
7 |
#trmimeparse trexecmd utf8iter idfile
|
7 |
#trmimeparse trexecmd utf8iter idfile
|
8 |
|
8 |
|
9 |
all: $(PROGS) $(BIGLIB)
|
9 |
all: librecoll $(PROGS)
|
10 |
|
10 |
|
11 |
$(BIGLIB): force
|
|
|
12 |
cd $(depth)/lib;$(MAKE)
|
|
|
13 |
force:
|
|
|
14 |
|
|
|
15 |
ECRONTAB_OBJS= trecrontab.o $(BIGLIB)
|
11 |
ECRONTAB_OBJS= trecrontab.o
|
16 |
trecrontab : $(ECRONTAB_OBJS)
|
12 |
trecrontab : $(ECRONTAB_OBJS)
|
17 |
$(CXX) -o trecrontab $(ECRONTAB_OBJS) $(LIBICONV) \
|
13 |
$(CXX) -o trecrontab $(ECRONTAB_OBJS) \
|
18 |
$(LIBSYS)
|
14 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
19 |
trecrontab.o : ecrontab.cpp ecrontab.h
|
15 |
trecrontab.o : ecrontab.cpp ecrontab.h
|
20 |
$(CXX) -o trecrontab.o -c $(ALL_CXXFLAGS) \
|
16 |
$(CXX) -o trecrontab.o -c $(ALL_CXXFLAGS) \
|
21 |
-DTEST_ECRONTAB ecrontab.cpp
|
17 |
-DTEST_ECRONTAB ecrontab.cpp
|
22 |
|
18 |
|
23 |
FSTREEWALK_OBJS= trfstreewalk.o $(BIGLIB)
|
19 |
FSTREEWALK_OBJS= trfstreewalk.o
|
24 |
trfstreewalk : $(FSTREEWALK_OBJS)
|
20 |
trfstreewalk : $(FSTREEWALK_OBJS)
|
25 |
$(CXX) -o trfstreewalk $(FSTREEWALK_OBJS) $(LIBICONV) \
|
21 |
$(CXX) -o trfstreewalk $(FSTREEWALK_OBJS) \
|
26 |
$(LIBSYS)
|
22 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
27 |
trfstreewalk.o : fstreewalk.cpp fstreewalk.h
|
23 |
trfstreewalk.o : fstreewalk.cpp fstreewalk.h
|
28 |
$(CXX) -o trfstreewalk.o -c $(ALL_CXXFLAGS) \
|
24 |
$(CXX) -o trfstreewalk.o -c $(ALL_CXXFLAGS) \
|
29 |
-DTEST_FSTREEWALK fstreewalk.cpp
|
25 |
-DTEST_FSTREEWALK fstreewalk.cpp
|
30 |
|
26 |
|
31 |
READFILE_OBJS= trreadfile.o $(BIGLIB)
|
27 |
READFILE_OBJS= trreadfile.o
|
32 |
trreadfile : $(READFILE_OBJS)
|
28 |
trreadfile : $(READFILE_OBJS)
|
33 |
$(CXX) -o trreadfile $(READFILE_OBJS) $(LIBICONV) $(LIBSYS)
|
29 |
$(CXX) -o trreadfile $(READFILE_OBJS) $(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
34 |
trreadfile.o : readfile.cpp readfile.h
|
30 |
trreadfile.o : readfile.cpp readfile.h
|
35 |
$(CXX) -o trreadfile.o -c $(ALL_CXXFLAGS) \
|
31 |
$(CXX) -o trreadfile.o -c $(ALL_CXXFLAGS) \
|
36 |
-DTEST_READFILE readfile.cpp
|
32 |
-DTEST_READFILE readfile.cpp
|
37 |
|
33 |
|
38 |
CIRCACHE_OBJS= trcircache.o $(BIGLIB)
|
34 |
CIRCACHE_OBJS= trcircache.o
|
39 |
trcircache : $(CIRCACHE_OBJS)
|
35 |
trcircache : $(CIRCACHE_OBJS)
|
40 |
$(CXX) -o trcircache $(CIRCACHE_OBJS) $(LIBICONV) $(LIBSYS) -lz
|
36 |
$(CXX) -o trcircache $(CIRCACHE_OBJS) \
|
|
|
37 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS) -lz
|
41 |
trcircache.o : circache.cpp circache.h
|
38 |
trcircache.o : circache.cpp circache.h
|
42 |
$(CXX) -o trcircache.o -c $(ALL_CXXFLAGS) \
|
39 |
$(CXX) -o trcircache.o -c $(ALL_CXXFLAGS) \
|
43 |
-DTEST_CIRCACHE circache.cpp
|
40 |
-DTEST_CIRCACHE circache.cpp
|
44 |
|
41 |
|
45 |
COPYFILE_OBJS= trcopyfile.o $(BIGLIB)
|
42 |
COPYFILE_OBJS= trcopyfile.o
|
46 |
trcopyfile : $(COPYFILE_OBJS)
|
43 |
trcopyfile : $(COPYFILE_OBJS)
|
47 |
$(CXX) -o trcopyfile $(COPYFILE_OBJS) $(LIBICONV) $(LIBSYS)
|
44 |
$(CXX) -o trcopyfile $(COPYFILE_OBJS) $(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
48 |
trcopyfile.o : copyfile.cpp copyfile.h
|
45 |
trcopyfile.o : copyfile.cpp copyfile.h
|
49 |
$(CXX) -o trcopyfile.o -c $(ALL_CXXFLAGS) \
|
46 |
$(CXX) -o trcopyfile.o -c $(ALL_CXXFLAGS) \
|
50 |
-DTEST_COPYFILE copyfile.cpp
|
47 |
-DTEST_COPYFILE copyfile.cpp
|
51 |
|
48 |
|
52 |
MD5_OBJS= trmd5.o $(BIGLIB)
|
49 |
MD5_OBJS= trmd5.o
|
53 |
trmd5 : $(MD5_OBJS)
|
50 |
trmd5 : $(MD5_OBJS)
|
54 |
$(CXX) -o trmd5 $(MD5_OBJS) $(LIBICONV) $(LIBSYS)
|
51 |
$(CXX) -o trmd5 $(MD5_OBJS) $(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
55 |
trmd5.o : md5.cpp md5.h
|
52 |
trmd5.o : md5.cpp md5.h
|
56 |
$(CXX) -o trmd5.o -c $(ALL_CXXFLAGS) -DTEST_MD5 md5.cpp
|
53 |
$(CXX) -o trmd5.o -c $(ALL_CXXFLAGS) -DTEST_MD5 md5.cpp
|
57 |
|
54 |
|
58 |
PATHUT_OBJS= trpathut.o $(BIGLIB)
|
55 |
PATHUT_OBJS= trpathut.o
|
59 |
trpathut : $(PATHUT_OBJS)
|
56 |
trpathut : $(PATHUT_OBJS)
|
60 |
$(CXX) $(ALL_CXXFLAGS) -o trpathut $(PATHUT_OBJS) $(LIBICONV) $(LIBSYS)
|
57 |
$(CXX) $(ALL_CXXFLAGS) -o trpathut $(PATHUT_OBJS) \
|
|
|
58 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
61 |
trpathut.o : pathut.cpp pathut.h
|
59 |
trpathut.o : pathut.cpp pathut.h
|
62 |
$(CXX) -o trpathut.o -c $(ALL_CXXFLAGS) -DTEST_PATHUT pathut.cpp
|
60 |
$(CXX) -o trpathut.o -c $(ALL_CXXFLAGS) -DTEST_PATHUT pathut.cpp
|
63 |
|
61 |
|
64 |
NETCON_OBJS= trnetcon.o $(BIGLIB)
|
62 |
NETCON_OBJS= trnetcon.o
|
65 |
trnetcon : $(NETCON_OBJS)
|
63 |
trnetcon : $(NETCON_OBJS)
|
66 |
$(CXX) $(ALL_CXXFLAGS) -o trnetcon $(NETCON_OBJS) $(LIBICONV) $(LIBSYS)
|
64 |
$(CXX) $(ALL_CXXFLAGS) -o trnetcon $(NETCON_OBJS) \
|
|
|
65 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
67 |
trnetcon.o : netcon.cpp netcon.h
|
66 |
trnetcon.o : netcon.cpp netcon.h
|
68 |
$(CXX) -o trnetcon.o -c $(ALL_CXXFLAGS) -DTEST_NETCON netcon.cpp
|
67 |
$(CXX) -o trnetcon.o -c $(ALL_CXXFLAGS) -DTEST_NETCON netcon.cpp
|
69 |
|
68 |
|
70 |
FILEUDI_OBJS= trfileudi.o $(BIGLIB)
|
69 |
FILEUDI_OBJS= trfileudi.o
|
71 |
trfileudi : $(FILEUDI_OBJS)
|
70 |
trfileudi : $(FILEUDI_OBJS)
|
72 |
$(CXX) $(ALL_CXXFLAGS) -o trfileudi $(FILEUDI_OBJS)
|
71 |
$(CXX) $(ALL_CXXFLAGS) -o trfileudi $(FILEUDI_OBJS)
|
73 |
trfileudi.o : fileudi.cpp fileudi.h
|
72 |
trfileudi.o : fileudi.cpp fileudi.h
|
74 |
$(CXX) -o trfileudi.o -c $(ALL_CXXFLAGS) -DTEST_FILEUDI fileudi.cpp
|
73 |
$(CXX) -o trfileudi.o -c $(ALL_CXXFLAGS) -DTEST_FILEUDI fileudi.cpp
|
75 |
|
74 |
|
76 |
EXECMD_OBJS= trexecmd.o $(BIGLIB)
|
75 |
EXECMD_OBJS= trexecmd.o
|
77 |
trexecmd : $(EXECMD_OBJS)
|
76 |
trexecmd : $(EXECMD_OBJS)
|
78 |
$(CXX) $(ALL_CXXFLAGS) -o trexecmd $(EXECMD_OBJS) $(LIBICONV) $(LIBSYS)
|
77 |
$(CXX) $(ALL_CXXFLAGS) -o trexecmd $(EXECMD_OBJS) \
|
|
|
78 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
79 |
trexecmd.o : execmd.cpp execmd.h
|
79 |
trexecmd.o : execmd.cpp execmd.h
|
80 |
$(CXX) -o trexecmd.o -c $(ALL_CXXFLAGS) -DTEST_EXECMD execmd.cpp
|
80 |
$(CXX) -o trexecmd.o -c $(ALL_CXXFLAGS) -DTEST_EXECMD execmd.cpp
|
81 |
|
81 |
|
82 |
TRANSCODE_OBJS= trtranscode.o $(BIGLIB)
|
82 |
TRANSCODE_OBJS= trtranscode.o
|
83 |
transcode : $(TRANSCODE_OBJS)
|
83 |
transcode : $(TRANSCODE_OBJS)
|
84 |
$(CXX) $(ALL_CXXFLAGS) -o transcode $(TRANSCODE_OBJS) \
|
84 |
$(CXX) $(ALL_CXXFLAGS) -o transcode $(TRANSCODE_OBJS) \
|
85 |
$(LIBICONV) $(LIBSYS)
|
85 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
86 |
trtranscode.o : transcode.cpp
|
86 |
trtranscode.o : transcode.cpp
|
87 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_TRANSCODE -c -o trtranscode.o \
|
87 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_TRANSCODE -c -o trtranscode.o \
|
88 |
transcode.cpp
|
88 |
transcode.cpp
|
89 |
|
89 |
|
90 |
IDFILE_OBJS= tridfile.o $(BIGLIB)
|
90 |
IDFILE_OBJS= tridfile.o
|
91 |
idfile : $(IDFILE_OBJS)
|
91 |
idfile : $(IDFILE_OBJS)
|
92 |
$(CXX) $(ALL_CXXFLAGS) -o idfile $(IDFILE_OBJS) \
|
92 |
$(CXX) $(ALL_CXXFLAGS) -o idfile $(IDFILE_OBJS) \
|
93 |
$(LIBICONV) $(LIBSYS)
|
93 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
94 |
tridfile.o : idfile.cpp
|
94 |
tridfile.o : idfile.cpp
|
95 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_IDFILE -c -o tridfile.o \
|
95 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_IDFILE -c -o tridfile.o idfile.cpp
|
96 |
idfile.cpp
|
|
|
97 |
|
96 |
|
98 |
MIMEPARSE_OBJS= trmimeparse.o $(BIGLIB)
|
97 |
MIMEPARSE_OBJS= trmimeparse.o
|
99 |
trmimeparse : $(MIMEPARSE_OBJS)
|
98 |
trmimeparse : $(MIMEPARSE_OBJS)
|
100 |
$(CXX) $(ALL_CXXFLAGS) -o trmimeparse $(MIMEPARSE_OBJS) \
|
99 |
$(CXX) $(ALL_CXXFLAGS) -o trmimeparse $(MIMEPARSE_OBJS) \
|
101 |
$(LIBICONV) $(LIBSYS)
|
100 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
102 |
trmimeparse.o : mimeparse.cpp
|
101 |
trmimeparse.o : mimeparse.cpp
|
103 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_MIMEPARSE -c -o trmimeparse.o \
|
102 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_MIMEPARSE -c -o trmimeparse.o \
|
104 |
mimeparse.cpp
|
103 |
mimeparse.cpp
|
105 |
|
104 |
|
106 |
SMALLUT_OBJS= trsmallut.o ../lib/smallut.o
|
105 |
SMALLUT_OBJS= trsmallut.o ../lib/smallut.o
|
107 |
smallut : $(SMALLUT_OBJS) smallut.h
|
106 |
smallut : $(SMALLUT_OBJS) smallut.h
|
108 |
$(CXX) $(ALL_CXXFLAGS) -o smallut $(SMALLUT_OBJS) $(LIBICONV)
|
107 |
$(CXX) $(ALL_CXXFLAGS) -o smallut $(SMALLUT_OBJS) \
|
|
|
108 |
$(LIBRECOLL) $(LIBICONV)
|
109 |
trsmallut.o : smallut.cpp smallut.h
|
109 |
trsmallut.o : smallut.cpp smallut.h
|
110 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_SMALLUT -c -o trsmallut.o \
|
110 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_SMALLUT -c -o trsmallut.o smallut.cpp
|
111 |
smallut.cpp
|
|
|
112 |
../lib/smallut.o: smallut.cpp smallut.h
|
111 |
../lib/smallut.o: smallut.cpp smallut.h
|
113 |
cd ../lib;make smallut.o
|
112 |
cd ../lib;make smallut.o
|
114 |
|
113 |
|
115 |
WIPEDIR_OBJS= trwipedir.o $(BIGLIB)
|
114 |
WIPEDIR_OBJS= trwipedir.o
|
116 |
wipedir : $(WIPEDIR_OBJS)
|
115 |
wipedir : $(WIPEDIR_OBJS)
|
117 |
$(CXX) $(ALL_CXXFLAGS) -o wipedir $(WIPEDIR_OBJS) $(LIBICONV) $(LIBSYS)
|
116 |
$(CXX) $(ALL_CXXFLAGS) -o wipedir $(WIPEDIR_OBJS) $(LIBICONV) $(LIBSYS)
|
118 |
trwipedir.o : wipedir.cpp
|
117 |
trwipedir.o : wipedir.cpp
|
119 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_WIPEDIR -c -o trwipedir.o wipedir.cpp
|
118 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_WIPEDIR -c -o trwipedir.o wipedir.cpp
|
120 |
|
119 |
|
121 |
UTF8ITER_OBJS= trutf8iter.o
|
120 |
UTF8ITER_OBJS= trutf8iter.o
|
122 |
utf8iter : $(UTF8ITER_OBJS)
|
121 |
utf8iter : $(UTF8ITER_OBJS)
|
123 |
$(CXX) $(ALL_CXXFLAGS) -o utf8iter $(UTF8ITER_OBJS) $(BIGLIB) \
|
122 |
$(CXX) $(ALL_CXXFLAGS) -o utf8iter $(UTF8ITER_OBJS) \
|
124 |
$(LIBICONV) $(LIBSYS)
|
123 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
125 |
trutf8iter.o : utf8iter.cpp utf8iter.h
|
124 |
trutf8iter.o : utf8iter.cpp utf8iter.h
|
126 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_UTF8ITER -c -o trutf8iter.o utf8iter.cpp
|
125 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_UTF8ITER -c -o trutf8iter.o utf8iter.cpp
|
127 |
|
126 |
|
128 |
CONFTREE_OBJS= trconftree.o $(BIGLIB)
|
127 |
CONFTREE_OBJS= trconftree.o
|
129 |
trconftree : $(CONFTREE_OBJS)
|
128 |
trconftree : $(CONFTREE_OBJS)
|
130 |
$(CXX) $(ALL_CXXFLAGS) -o trconftree $(CONFTREE_OBJS) \
|
129 |
$(CXX) $(ALL_CXXFLAGS) -o trconftree $(CONFTREE_OBJS) \
|
131 |
$(LIBICONV) $(LIBSYS)
|
130 |
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
132 |
trconftree.o : conftree.cpp
|
131 |
trconftree.o : conftree.cpp
|
133 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_CONFTREE -c -o trconftree.o conftree.cpp
|
132 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_CONFTREE -c -o trconftree.o conftree.cpp
|
134 |
|
133 |
|
135 |
BASE64_OBJS= trbase64.o $(BIGLIB)
|
134 |
BASE64_OBJS= trbase64.o
|
136 |
trbase64 : $(BASE64_OBJS)
|
135 |
trbase64 : $(BASE64_OBJS)
|
137 |
$(CXX) $(ALL_CXXFLAGS) -o trbase64 $(BASE64_OBJS)
|
136 |
$(CXX) $(ALL_CXXFLAGS) -o trbase64 $(BASE64_OBJS)
|
138 |
trbase64.o : base64.cpp
|
137 |
trbase64.o : base64.cpp
|
139 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_BASE64 -c -o trbase64.o base64.cpp
|
138 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_BASE64 -c -o trbase64.o base64.cpp
|
140 |
|
139 |
|
|
... |
|
... |
144 |
trx11mon.o : x11mon.cpp x11mon.h
|
143 |
trx11mon.o : x11mon.cpp x11mon.h
|
145 |
$(CXX) -o trx11mon.o -c $(ALL_CXXFLAGS) -DTEST_X11MON x11mon.cpp
|
144 |
$(CXX) -o trx11mon.o -c $(ALL_CXXFLAGS) -DTEST_X11MON x11mon.cpp
|
146 |
x11mon.o: x11mon.cpp
|
145 |
x11mon.o: x11mon.cpp
|
147 |
$(CXX) -c -I/usr/X11R6/include $(ALL_CXXFLAGS) x11mon.cpp
|
146 |
$(CXX) -c -I/usr/X11R6/include $(ALL_CXXFLAGS) x11mon.cpp
|
148 |
|
147 |
|
149 |
clean:
|
148 |
include $(depth)/mk/commontargets
|
150 |
rm -f *.o $(PROGS)
|
|
|
151 |
|
|
|