#LD = $(CXX)
LDFLAGS =
-LIBDIR = -L.
-LOADLIBES =
+LIBDIR = -L../libtrbnet
+LOADLIBES = -ltrbnet
# ------------ TARGETS -------------------------------------------------
TARGETS = trbcmd trbrichcmd trbflash trb_i2c trbdhcp pulser
-LIB_TARGETS = libtrbnet.a
+LIB_TARGETS =
# ------------ Libaries ------------------------------------------------
# ------------ Targets -------------------------------------------------
.PHONY: all
-all: $(LIB_TARGETS) $(TARGETS)
+all: $(LIB_TARGETS) $(TARGETS) trbrpc.h
.PHONY: clean
clean:
# ------------ Dependencies --------------------------------------------
-trbcmd: trbcmd.o libtrbnet.a
+trbcmd: trbcmd.o
trbcmd.o: trbcmd.c trbnet.h trberror.h
-trbdhcp: trbdhcp.o libtrbnet.a
+trbdhcp: trbdhcp.o
trbdhcp.o: trbdhcp.c trbnet.h trberror.h
-trbflash: trbflash.o libtrbnet.a
+trbflash: trbflash.o
trbflash.o: trbflash.c trbnet.h trberror.h
-trbrichcmd: trbrichcmd.o libtrbnet.a
+trbrichcmd: trbrichcmd.o
trbrichcmd.o: trbrichcmd.c trbnet.h trberror.h
-trb_i2c: trb_i2c.o libtrbnet.a
+trb_i2c: trb_i2c.o
trb_i2c.o: trb_i2c.c trbnet.h trberror.h
-pulser: pulser.o libtrbnet.a
+pulser: pulser.o
pulser.o: pulser.c trbnet.h trberror.h
# ----------------------------------------------------------------------
-libtrbnet.a: trbnetrpc.o trbrpc_clnt.o trbrpc_xdr.o trberror.o
-
trbnetrpc.o: trbnetrpc.c trbrpc.h trbnet.h trberror.h
trbrpc_clnt.o: trbrpc_clnt.c trbrpc.h