From 70d218d211adcc03611e37488ace2da30d6709b5 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 8 Sep 2020 01:11:28 -0700 Subject: Simplified repeat code and added file input --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3