aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-09-08 01:11:28 -0700
committerBruce Hill <bruce@bruce-hill.com>2020-09-08 01:11:28 -0700
commit70d218d211adcc03611e37488ace2da30d6709b5 (patch)
tree6c4e116c0aa250e93abd6197b5eb1f12bbea681c /Makefile
parent63ed89d2b4eae0abebc1e79b0fd06dea260333e6 (diff)
Simplified repeat code and added file input
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