add -Wall tag to comple and fix wwarnings
This commit is contained in:
4
makefile
4
makefile
@@ -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
|
||||
|
Reference in New Issue
Block a user