From 18a36b79ec68cd81ea29658bd4e137329c93b63a Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sun, 7 Jan 2018 21:27:25 +0100 Subject: [PATCH] added source and Makefile --- .gitignore | 3 +++ Makefile | 9 +++++++++ helloworld.c | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100644 Makefile create mode 100644 helloworld.c diff --git a/.gitignore b/.gitignore index c6127b3..569bb75 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Project based +helloworld + # Prerequisites *.d diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..acd1c9d --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +CC=gcc +CFLAGS="-Wall" + +debug:clean + $(CC) $(CFLAGS) -g -o helloworld helloworld.c +stable:clean + $(CC) $(CFLAGS) -o helloworld helloworld.c +clean: + rm -vfr *~ helloworld diff --git a/helloworld.c b/helloworld.c new file mode 100644 index 0000000..6211074 --- /dev/null +++ b/helloworld.c @@ -0,0 +1,7 @@ +#include +#include + +int main(int argc, char **argv) { + printf("Hello World!"); + return 0; +}