Updated the Makefile, set debug option for the compiler, and fixed all the warnings generated by gcc with O2 optimization option for release builds.

This commit is contained in:
2022-03-18 17:01:15 +00:00
parent 1e6bbb87d4
commit bf59a98628
3 changed files with 22 additions and 10 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
CC = gcc
CFLAGS=-Wall -DDEBUG
CFLAGS=-g -Wall -DDEBUG
SRCDIR=src
OBJDIR=obj
SRCS=$(wildcard $(SRCDIR)/*.c)
@@ -31,7 +31,7 @@ $(OBJDIR):
.PHONY: test
clean:
rm -r $(BINDIR)/* $(OBJDIR)/*
rm -rf $(BINDIR)/* $(OBJDIR)/*
test:
$(BIN) test.lox