summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..3f481bc
--- /dev/null
+++ b/makefile
@@ -0,0 +1,15 @@
1include config.mk
2
3bin/app: obj/main.o | bin
4 c++ $(LDFLAGS) $^ -o $@
5
6obj/%.o: src/%.cpp | obj
7 c++ $(CPPFLAGS) -c $< -o $@
8
9clean:
10 rm -rf bin obj
11
12bin obj:
13 mkdir $@
14
15.PHONY: all clean