From 5ea51dfb6c6af8ec58f51f2af3a342fdb527ac6e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 6 Jan 2007 19:19:25 +0100 Subject: Makefile: Add mudflap options to CFLAGS and LDFLAGS when debugging --- Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-54-g00ecf