aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodorSmall <TheodorSmall@users.noreply.github.com>2022-05-28 12:23:21 +0100
committerElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2022-05-29 01:45:48 +0200
commitc120df15e8a977831e22196ab5b842e20e9fa1f7 (patch)
tree2cf1a16cd84121cfb6fdd0a96e608cf1eb86606a
parent0c42082067500c0dae3237f918e8c80c0971f766 (diff)
downloadcenter-c120df15e8a977831e22196ab5b842e20e9fa1f7.tar.xz
Move compiler flags into CFLAGS variable
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fba43e7..fffa57e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
PREFIX=/usr/local
+CFLAGS=-Wall -Wextra
center: center.c
- $(CC) center.c -o center -Wall -Wextra
+ $(CC) center.c -o center $(CFLAGS)
install: center
mkdir -p $(PREFIX)/bin