diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-01-06 19:19:25 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2007-01-06 19:19:25 +0100 |
commit | 5ea51dfb6c6af8ec58f51f2af3a342fdb527ac6e (patch) | |
tree | 5525711bc9d84271e2c5a9c3cac3fe5824d1370d /Makefile | |
parent | f8e73988952cbf8a6ec023c394ea4f841d202a30 (diff) |
Makefile: Add mudflap options to CFLAGS and LDFLAGS when debugging
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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 |