aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-04-12 22:39:14 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-04-12 22:39:14 -0700
commit14876a091a31b10a0cef7aa59a8384b48a059af8 (patch)
tree47c41b069fb4fc2d58a5ed0a0e66266af441e025 /Makefile
parent000a4668b6fe6fc822d1265152656fb675a26a73 (diff)
downloadyetihack-14876a091a31b10a0cef7aa59a8384b48a059af8.tar.zst
Modernize the build systemHEADmain
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