]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Mon, 9 Jan 2012 00:26:52 +0000 (00:26 +0000)
committerhadaq <hadaq>
Mon, 9 Jan 2012 00:26:52 +0000 (00:26 +0000)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..3d7e770
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,55 @@
+# ------------ TARGETS -------------------------------------------------
+
+TARGETS = libtrbnet trbrich trbnetd pexor
+
+# ------------ Targets -------------------------------------------------
+
+all: $(TARGETS)
+
+
+.PHONY: clean 
+clean:
+       make -C libtrbnet clean
+       make -C pexor clean
+       make -C trbrich clean
+       make -C trbnetd clean
+
+.PHONY: distclean
+distclean: clean
+       make -C libtrbnet distclean
+       make -C pexor distclean
+       make -C trbrich distclean
+       make -C trbnetd distclean
+       rm -rf bin/* binlocal/* kernel-modules/* lib/* liblocal/* include/*
+
+.PHONY: cleanrpc
+cleanrpc:
+       rm -f trbrpc_clnt.c trbrpc_svc.c trbrpc.h trbrpc_xdr.c
+
+.PHONY: depend
+depend:
+       $(CC) -MM $(CFLAGS) $(CPPFLAGS) $(INCDIR) *.c
+
+install: pexor libtrbnet trbrich trbnetd
+       make -C libtrbnet install
+       make -C pexor install
+       make -C trbrich install
+       make -C trbnetd install
+
+# ------------ Dependencies --------------------------------------------
+
+.PHONY: pexor
+pexor: libtrbnet
+       make -C pexor all
+
+.PHONY: libtrbnet
+libtrbnet:
+       make -C libtrbnet all
+
+.PHONY: trbrich
+trbrich: libtrbnet
+       make -C trbrich all
+
+.PHONY: trbnetd
+trbnetd: libtrbnet
+       make -C trbnetd all