From: John Kacur <jkacur@redhat.com>
To: Clark Williams <williams@redhat.com>
Cc: John Kacur <jkacur@redhat.com>,
rt-users <linux-rt-users@vger.kernel.org>
Subject: [PATCH 3/3] rt-tests: Makefile - Add a DEBUG option to the Makefile
Date: Mon, 16 Nov 2009 19:40:14 +0100 [thread overview]
Message-ID: <1258396814-12929-4-git-send-email-jkacur@redhat.com> (raw)
In-Reply-To: <1258396814-12929-3-git-send-email-jkacur@redhat.com>
This allows you to do
make DEBUG=0
which changes CFLAGS from -Wall -Wno-nonnull -O2
to -Wall -Wno-nonnull -O0 -g
Signed-off-by: John Kacur <jkacur@redhat.com>
---
Makefile | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 96c7bca..7414a68 100644
--- a/Makefile
+++ b/Makefile
@@ -2,13 +2,19 @@ VERSION_STRING = 0.53
TARGETS = cyclictest signaltest classic_pi pi_stress \
hwlatdetect rt-migrate-test
-CFLAGS = -Wall -Wno-nonnull -O2
LIBS = -lpthread -lrt
DESTDIR ?=
prefix ?= /usr/local
bindir ?= $(prefix)/bin
mandir ?= $(prefix)/share/man/man8
+CFLAGS = -Wall -Wno-nonnull
+ifndef DEBUG
+ CFLAGS += -O2
+else
+ CFLAGS += -O0 -g
+endif
+
.PHONY: all
all: $(TARGETS)
--
1.6.2.5
prev parent reply other threads:[~2009-11-16 18:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-16 18:40 [PATCH 0/3] rt-tests: Makefile changes John Kacur
2009-11-16 18:40 ` [PATCH 1/3] rt-tests: Makefile - Change FLAGS to CFLAGS John Kacur
2009-11-16 18:40 ` [PATCH 2/3] rt-tests: Makefile - Specify when a target is a PHONY target John Kacur
2009-11-16 18:40 ` John Kacur [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1258396814-12929-4-git-send-email-jkacur@redhat.com \
--to=jkacur@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=williams@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).