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