summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2013-04-10 20:04:11 +0100
committerRichard Maw <richard.maw@gmail.com>2013-04-11 21:13:33 +0100
commit07e387c40b128e4d0aec3f3ba2291508112b3dd6 (patch)
treef50a83f85a9f2458191ca0d94f80a8a2dd13ac8c
parent37daae1d629bf841fbc6aafb9936cb35692b222e (diff)
downloadbinding-lua-from-c-07e387c40b128e4d0aec3f3ba2291508112b3dd6.tar.bz2
Add simple Hello World project.
-rw-r--r--.gitignore2
-rw-r--r--Makefile11
-rw-r--r--hello.c6
3 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2db3799
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+hello
+*.o
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..450d3f5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+CC = gcc
+OBJS = hello.o
+BINS = hello
+
+all: $(BINS)
+
+hello: $(OBJS)
+
+.PHONY: clean
+clean:
+ $(RM) $(OBJS) $(BINS)
diff --git a/hello.c b/hello.c
new file mode 100644
index 0000000..2d719e1
--- /dev/null
+++ b/hello.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main(void){
+ printf("Hello World!\n");
+ return 0;
+}