about summary refs log tree commit diff stats
path: root/dev/c/src/hello
diff options
context:
space:
mode:
Diffstat (limited to 'dev/c/src/hello')
-rw-r--r--dev/c/src/hello/Makefile7
-rw-r--r--dev/c/src/hello/hello.c6
2 files changed, 13 insertions, 0 deletions
diff --git a/dev/c/src/hello/Makefile b/dev/c/src/hello/Makefile
new file mode 100644
index 0000000..a6d9f07
--- /dev/null
+++ b/dev/c/src/hello/Makefile
@@ -0,0 +1,7 @@
+CC=gcc
+CFLAGS=-Wall
+
+hello: hello.o
+
+clean:
+	rm -f *.o hello
diff --git a/dev/c/src/hello/hello.c b/dev/c/src/hello/hello.c
new file mode 100644
index 0000000..df66493
--- /dev/null
+++ b/dev/c/src/hello/hello.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main() {
+    printf("hello World!");
+    return 0;
+}