.PHONY: distclean
distclean: clean
rm -f $(TARGETS) $(LIB_TARGETS)
+ find . -type l -exec rm {} \;
rcsclean -u
.PHONY: cleanrpc
# ------------ Dependencies --------------------------------------------
-trbcmd: trbcmd.o libtrbnet.a
-trbcmd.o: trbcmd.c
+trbcmd: trbcmd.o libtrbnet.a
+trbcmd.o: trbcmd.c trberror.h
trbdhcp: trbdhcp.o libtrbnet.a
-trbdhcp.o: trbdhcp.c
+trbdhcp.o: trbdhcp.c trberror.h
trbflash: trbflash.o libtrbnet.a
-trbflash.o: trbflash.c
+trbflash.o: trbflash.c trberror.h
trbrichcmd: trbrichcmd.o libtrbnet.a
-trbrichcmd.o: trbrichcmd.c
+trbrichcmd.o: trbrichcmd.c trberror.h
trb_i2c: trb_i2c.o libtrbnet.a
-trb_i2c.o: trb_i2c.c
+trb_i2c.o: trb_i2c.c trberror.h
pulser: pulser.o libtrbnet.a
-pulser.o: pulser.c
+pulser.o: pulser.c trberror.h
# ----------------------------------------------------------------------
libtrbnet.a: trbnetrpc.o trbrpc_clnt.o trbrpc_xdr.o trberror.o
-trbnetrpc.o: trbnetrpc.c trbrpc.h
+trbnetrpc.o: trbnetrpc.c trbrpc.h trbnet.h trberror.h
trbrpc_clnt.o: trbrpc_clnt.c trbrpc.h
trberror.o: trberror.c
+# ----------------------------------------------------------------------
+trbcmd.c:
+ ln -s ../libtrbnet/trbcmd.c
+
+trbdhcp.c :
+ ln -s ../libtrbnet/trbdhcp.c
+
+pulser.c:
+ ln -s ../trbrich/pulser.c
+
+trb_i2c.c:
+ ln -s ../trbrich/trb_i2c.c
+
+trbflash.c:
+ ln -s ../trbrich/trbflash.c
+
+trbrichcmd.c:
+ ln -s ../trbrich/trbrichcmd.c
+
+trbnet.h:
+ ln -s ../libtrbnet/trbnet.h
+
+trberror.h:
+ ln -s ../libtrbnet/trberror.h
+
+trberror.c:
+ ln -s ../libtrbnet/trberror.c