|
a/src/lib/mkMake |
|
b/src/lib/mkMake |
|
... |
|
... |
52 |
librcl.a : \$(DEPS) \$(OBJS) unac.o
|
52 |
librcl.a : \$(DEPS) \$(OBJS) unac.o
|
53 |
ar ru librcl.a \$(OBJS) unac.o
|
53 |
ar ru librcl.a \$(OBJS) unac.o
|
54 |
\$(RANLIB) librcl.a
|
54 |
\$(RANLIB) librcl.a
|
55 |
|
55 |
|
56 |
unac.o : \$(depth)/unac/unac.c \$(depth)/unac/unac.h
|
56 |
unac.o : \$(depth)/unac/unac.c \$(depth)/unac/unac.h
|
57 |
\$(CC) \$(UNACCFLAGS) -c \$<
|
57 |
\$(CC) \$(UNACCFLAGS) -c \$(depth)/unac/unac.c
|
58 |
EOF
|
58 |
EOF
|
59 |
|
59 |
|
60 |
for c in $SRCS;do
|
60 |
for c in $SRCS;do
|
61 |
o=`basename $c .cpp`.o
|
61 |
o=`basename $c .cpp`.o
|
62 |
echo "$o : $c" >> $mk
|
62 |
echo "$o : $c" >> $mk
|
63 |
echo " \$(CXX) \$(ALL_CXXFLAGS) -c \$<" >> $mk
|
63 |
echo " \$(CXX) \$(ALL_CXXFLAGS) -c $c" >> $mk
|
64 |
done
|
64 |
done
|
65 |
|
65 |
|
66 |
cat >> $mk <<EOF
|
66 |
cat >> $mk <<EOF
|
67 |
depend: \$(DEPS)
|
67 |
depend: \$(DEPS)
|
68 |
clean:
|
68 |
clean:
|
|
... |
|
... |
74 |
|
74 |
|
75 |
for c in $SRCS;do
|
75 |
for c in $SRCS;do
|
76 |
d=`basename $c .cpp`.dep
|
76 |
d=`basename $c .cpp`.dep
|
77 |
s=`basename $c .cpp`.dep.stamp
|
77 |
s=`basename $c .cpp`.dep.stamp
|
78 |
echo "$s : $c" >> $mk
|
78 |
echo "$s : $c" >> $mk
|
79 |
echo " \$(CXX) -M \$(ALL_CXXFLAGS) \$< > $d" >> $mk
|
79 |
echo " \$(CXX) -M \$(ALL_CXXFLAGS) $c > $d" >> $mk
|
80 |
echo " touch $s" >> $mk
|
80 |
echo " touch $s" >> $mk
|
81 |
done
|
81 |
done
|
82 |
for c in $SRCS;do
|
82 |
for c in $SRCS;do
|
83 |
d=`basename $c .cpp`.dep
|
83 |
d=`basename $c .cpp`.dep
|
84 |
echo "include $d" >> $mk
|
84 |
echo "include $d" >> $mk
|