summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-06-22 22:39:22 +0200
committerLouis Burda <quent.burda@gmail.com>2023-06-22 22:39:22 +0200
commitfc1ea8d4b498e21d5248b5f1a62337dfe3013e1a (patch)
treef0b851abd5c0c721426242eafdd611ac47d19df5 /Makefile
parent7c5179b792a8504564131d08692a838c5a019749 (diff)
downloadrevb-master.tar.gz
revb-master.zip
Add MIT license and warning flagsHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3d324fc..0efc09f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,13 @@
PREFIX ?= /usr/local
BINDIR ?= /bin
-CFLAGS = -g
+CFLAGS = -Wunused-variable -Wunused-function -Wconversion
+
+ifeq ($(DEBUG),1)
+CFLAGS += -Og -g
+else
+CFLAGS += -O2
+endif
all: revb