about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-09-17 14:31:46 +0200
committerLeah Neukirchen <leah@vuxu.org>2018-09-17 14:31:59 +0200
commit10f6237df0234b4704b1609a190b72da1b0333fa (patch)
treedf2d393399f81f6be32661b0b3a3cbfe8c52bbf2
parent8fd9f3e185676e070aa267fac708cc5376e0cef8 (diff)
downloadextrace-10f6237df0234b4704b1609a190b72da1b0333fa.tar.gz
extrace-10f6237df0234b4704b1609a190b72da1b0333fa.tar.xz
extrace-10f6237df0234b4704b1609a190b72da1b0333fa.zip
Makefile: use ?= for CFLAGS and PREFIX
Closes #5.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 50b7247..6ff0da1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
 ALL=extrace pwait
 
-CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings -pedantic -ansi
+CFLAGS?=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings -pedantic -ansi
 
 DESTDIR=
-PREFIX=/usr/local
+PREFIX?=/usr/local
 BINDIR=$(PREFIX)/bin
 MANDIR=$(PREFIX)/share/man