From 1ff84932a0d724e6e550b760ada69d7dc477a998 Mon Sep 17 00:00:00 2001 From: Tait Hoyem Date: Fri, 20 Aug 2021 11:22:28 -0600 Subject: [PATCH] Add stricter compile options --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index aa5397d..0c8b7dc 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,16 @@ CC?=gcc +OPTS?=-O2 -Wall -Werror defualt: build morse.o: - $(CC) -O2 morse.c -c -o morse.o + $(CC) $(OPTS) morse.c -c -o morse.o build: morse.o - $(CC) -O2 morse.o main.c -o morse + $(CC) $(OPTS) morse.o main.c -o morse tests: morse.o - $(CC) -O2 test.c morse.o -o test + $(CC) $(OPTS) test.c morse.o -o test install: cp morse ~/.local/bin/