aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorc2024-01-28 20:15:35 -0500
committerc2024-01-28 20:15:35 -0500
commit422606d8b3cc6fba74f97af46f0378fc274d60ad (patch)
tree34314628de5e3132cffc661901bd1e4c9b2aa0de /Makefile
parent87e0d4b3d23a7eb38f0e196eac333c318fef27ea (diff)
Fixed things.
- Fixed `parser_nxt_token()` assuming the existance of a parser's token. - Fixed block parsing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 03203b4..0e61c64 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
BIN := halk
PREFIX := /usr/local/bin
CC := gcc
-REG_CFLAGS := -ansi -O3 -s
-DBG_CFLAGS := -ansi -Og -ggdb -pedantic
+REG_CFLAGS := -std=c99 -O3 -s
+DBG_CFLAGS := -std=c99 -Og -ggdb -pedantic
DBG_CFLAGS += -Wall -Wextra -Wformat -Werror -Wpedantic
DBG_CFLAGS += -fsanitize=leak,address,undefined -fno-omit-frame-pointer
CFLAGS := $(REG_CFLAGS)
@@ -35,7 +35,7 @@ dbg: CFLAGS := $(DBG_CFLAGS)
dbg: dbg_options $(OBJS)
$(CC) $(OBJS) $(DBG_CFLAGS) -o $(BIN).out
-test: dbg $(TEST_OUTS)
+test: clean dbg $(TEST_OUTS)
set -e
for f in $(TEST_OUTS); do ./$$f; done