summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-01-06 19:19:25 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-01-06 19:19:25 +0100
commit5ea51dfb6c6af8ec58f51f2af3a342fdb527ac6e (patch)
tree5525711bc9d84271e2c5a9c3cac3fe5824d1370d /Makefile
parentf8e73988952cbf8a6ec023c394ea4f841d202a30 (diff)
Makefile: Add mudflap options to CFLAGS and LDFLAGS when debugging
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index cabb0a0..aeaed4c 100644
--- a/Makefile
+++ b/Makefile
@@ -4,23 +4,25 @@
#
# Licensed under the terms of the GNU General Public License; version 2 or later.
-VERSION = 0.2
+VERSION = 0.2
# Paths
prefix = /usr/local
DESTDIR =
-CC := gcc
-CFLAGS := $(CFLAGS) -Wall -pipe -D_USE_SOURCE -DVERSION="\"$(VERSION)\""
-WARN := -Wstrict-prototypes -Wsign-compare -Wshadow \
- -Wchar-subscripts -Wmissing-declarations -Wnested-externs \
- -Wpointer-arith -Wcast-align -Wmissing-prototypes
-CFLAGS += $(WARN)
+CC := gcc
+CFLAGS := $(CFLAGS) -Wall -pipe -D_USE_SOURCE -DVERSION="\"$(VERSION)\""
+WARN := -Wstrict-prototypes -Wsign-compare -Wshadow \
+ -Wchar-subscripts -Wmissing-declarations -Wnested-externs \
+ -Wpointer-arith -Wcast-align -Wmissing-prototypes
+CFLAGS += $(WARN)
+LDFLAGS :=
# Compile with 'make DEBUG=true' to enable debugging
DEBUG = false
ifeq ($(strip $(DEBUG)),true)
- CFLAGS += -g -DDEBUG
+ CFLAGS += -g -DDEBUG -fmudflap
+ LDFLAGS += -lmudflap
endif
all: inotail