diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-04-12 22:39:14 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-04-12 22:39:14 -0700 |
| commit | 14876a091a31b10a0cef7aa59a8384b48a059af8 (patch) | |
| tree | 47c41b069fb4fc2d58a5ed0a0e66266af441e025 /Makefile | |
| parent | 000a4668b6fe6fc822d1265152656fb675a26a73 (diff) | |
| download | yetihack-14876a091a31b10a0cef7aa59a8384b48a059af8.tar.zst | |
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
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 |
