From 5d394ab67f56af3be995efa121acf93ec07b6ef5 Mon Sep 17 00:00:00 2001 From: BreadTom <76454866+BreadTom@users.noreply.github.com> Date: Fri, 1 Nov 2024 08:41:50 -0400 Subject: [PATCH] Add CFLAGS to Makefile --- grammar/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/grammar/Makefile b/grammar/Makefile index e32589c..ed81ba7 100644 --- a/grammar/Makefile +++ b/grammar/Makefile @@ -1,4 +1,7 @@ .PHONY: all clean + +CFLAGS = -O3 -march=native -pipe + all: build/parser build/parser_debug clean: @@ -11,7 +14,7 @@ build/parser.c: grammar.peg | build peg $^ > $@ build/parser: main.c | build/parser.c - $(CC) -O3 -o $@ $^ + $(CC) $(CFLAGS) -o $@ $^ build/parser_debug: main.c - $(CC) -O3 -o $@ $^ -DYY_DEBUG + $(CC) $(CFLAGS) -o $@ $^ -DYY_DEBUG