add -Wall tag to comple and fix wwarnings

This commit is contained in:
nikola
2024-06-20 02:33:08 +02:00
parent 1cbf1628a3
commit 5e7e4eb40b
4 changed files with 7 additions and 369 deletions

View File

@@ -15,10 +15,10 @@ HDRS := $(wildcard $(INCLUDE_DIR)/*.h)
all: main run
main: main.cpp $(SRCS) $(HDRS)
$(CC) $(CFLAGS) -O3 -I$(INCLUDE_DIR) $(SRCS) main.cpp -o main
$(CC) $(CFLAGS) -O3 -I$(INCLUDE_DIR) $(SRCS) main.cpp -o main -Wall
debug: main.cpp $(SRCS) $(HDRS)
$(CC) $(CFLAGS) -I$(INCLUDE_DIR) $(SRCS) -g main.cpp -o main
$(CC) $(CFLAGS) -I$(INCLUDE_DIR) $(SRCS) -g main.cpp -o main -Wall
run: main
./main