aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordavid <[email protected]>2026-07-04 00:11:12 -0300
committerdavid <[email protected]>2026-07-04 00:11:12 -0300
commit7b460110b139c0e8a488f695459c150a517d34b6 (patch)
tree5bfad11ecc9d1c5a17d38a362e2e3136da848b81 /Makefile
parent95295e94f2ed3953e84e7f0b3c024941ed3f6862 (diff)
downloadpetratc-7b460110b139c0e8a488f695459c150a517d34b6.tar.gz
petratc-7b460110b139c0e8a488f695459c150a517d34b6.zip
made the 'main menu' also ncurses because i was bored and remembered this thing existed and i wanna work on it more but i don't really have any idea what else to add to it...
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a1e2ae7..ba710d9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
CC = gcc
-CFLAGS = -Wall -Wextra -lncurses
+CFLAGS = -Wall -Wextra -O2 -pipe
+LDLIBS = -lncurses -ltinfo
TARGET = petratc
SRC = petratc.c $(wildcard games/*.c)
PREFIX = /usr/local
$(TARGET): $(SRC)
- $(CC) $(CFLAGS) -o $(TARGET) $(SRC)
+ $(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDLIBS)
install: $(TARGET)
install -D $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)