aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5e50c9c..205b8c2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
PREFIX=
CFLAGS=-Wall -Wextra -pedantic -Wmissing-prototypes -Wstrict-prototypes
-OFLAGS=-O3
+G ?=
+O ?= -O3
all: bpeg
@@ -8,6 +9,6 @@ clean:
rm -f bpeg
bpeg: bpeg.c bpeg.h utils.h
- cc $(CFLAGS) $(OFLAGS) $< -o $@
+ cc $(CFLAGS) $(G) $(O) $< -o $@
.PHONY: all clean