aboutsummaryrefslogtreecommitdiffstats
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..2316ece
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+CFLAGS=-O2 -Wall -Wextra -Iinclude `pkg-config --cflags ncurses`
+LDFLAGS=`pkg-config --libs ncurses`
+
+yetihack: yetihack.o yeti.o
+ g++ $(LDFLAGS) -o $@ $^
+
+yetihack.o: src/yetihack.cpp include/yeti.h
+ g++ -c $(CFLAGS) -o $@ $<
+
+yeti.o: src/yeti.cpp include/yeti.h
+ g++ -c $(CFLAGS) -o $@ $<
+
+.PHONY: clean
+clean:
+ rm *.o yetihack