From c8794508467f344d88aad93fb0e03bfd18df850f Mon Sep 17 00:00:00 2001 From: test2 Date: Wed, 11 Mar 2020 15:49:00 +0200 Subject: [PATCH] hello --- examples/helloworld.c | 9 +++++++++ swarmlab/Makefile | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 examples/helloworld.c create mode 100644 swarmlab/Makefile diff --git a/examples/helloworld.c b/examples/helloworld.c new file mode 100644 index 0000000..6747842 --- /dev/null +++ b/examples/helloworld.c @@ -0,0 +1,9 @@ +/* Hello World C Program */ + +#include + +main() +{ + printf("Hello World!"); + +} diff --git a/swarmlab/Makefile b/swarmlab/Makefile new file mode 100644 index 0000000..f85c24f --- /dev/null +++ b/swarmlab/Makefile @@ -0,0 +1,13 @@ +all: hello run + +hello: + + gcc ../examples/helloworld.c -o /root/helloworld + +run: + + /root/helloworld 2>&1 | tee /tmp/output.log + + + +