summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2024-07-14 07:21:14 +0200
committerLouis Burda <quent.burda@gmail.com>2024-07-14 07:21:36 +0200
commit45f674aa80b6cec9c95e12ea086e06811ccbdeb2 (patch)
treebb588e81018d52afa77af85299bac216862d7be8 /Makefile
parent25aef9010259cf14d0b9a138cbadc13740feaff5 (diff)
downloadpipeln-master.tar.gz
pipeln-master.zip
Prevent re-closing input pipe file descriptorHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 62e95b5..9c072c7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,13 @@
PREFIX ?= /usr/local
BINDIR ?= /bin
-CFLAGS = -std=c99 -Wunused-variable -Wunused-function -Wconversion -O2
+CFLAGS = -std=c99 -Wunused-variable -Wunused-function -Wconversion
+
+ifeq ($(DEBUG), 1)
+CFLAGS += -Og -g
+else
+CFLAGS += -O2
+endif
all: pipeln