linux-btrace.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Alan D. Brunelle" <alan.brunelle@hp.com>
To: linux-btrace@vger.kernel.org
Subject: [BTT patch] Fixed Makefile
Date: Mon, 09 Apr 2007 14:53:07 +0000	[thread overview]
Message-ID: <461A5353.3070302@hp.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: fix-Makefile --]
[-- Type: text/plain, Size: 1798 bytes --]

From: Alan D. Brunelle <Alan.Brunelle@hp.com>

Fixed Makefile back - had the DEBUG version enabled...

Signed-off-by: Alan D. Brunelle <Alan.Brunelle@hp.com>
---

 btt/Makefile |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/btt/Makefile b/btt/Makefile
index fcb09a4..920c70c 100644
--- a/btt/Makefile
+++ b/btt/Makefile
@@ -1,16 +1,17 @@
-CC	= gcc
-
-ECFLAGS	= 
-# ECFLAGS	= -DCOUNT_IOS
+#
+# OCFLAGS:
+# 	COUNT_IOS	- Counts struct io's left at end
+# 	DEBUG		- Various and sundy debug asserts
+# 	NDEBUG		- Defined: no asserts, Undefined: asserts
+#
 
-# CFLAGS	= -Wall -O2 -W -g $(ECFLAGS)
-CFLAGS	= -Wall -g -W -UDO_INLINE -DDEBUG $(ECFLAGS)
+CC	= gcc
+INCS	= -I. -I..
+OCFLAGS	= -UCOUNT_IOS -UDEBUG -DNDEBUG
+XCFLAGS	= -Wall -W -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+CFLAGS	= $(INCS) -O2 $(XCFLAGS) $(OCFLAGS)
 
-ALL_CFLAGS = $(CFLAGS) -I.. -D_GNU_SOURCE -D_LARGEFILE_SOURCE \
-		-D_FILE_OFFSET_BITS=64
 PROGS	= btt
-#ELIBS	= -lefence
-#PLIBS	= -lpthread
 LIBS	= $(PLIBS) $(ELIBS)
 OBJS	= args.o bt_timeline.o devmap.o devs.o dip_rb.o iostat.o latency.o \
 	  misc.o output.o proc.o seek.o trace.o trace_complete.o trace_im.o \
@@ -20,19 +21,19 @@ OBJS	= args.o bt_timeline.o devmap.o devs.o dip_rb.o iostat.o latency.o \
 all: depend $(PROGS)
 
 rbtree.o: ../rbtree.c
-	$(CC) -o $*.o -c $(ALL_CFLAGS) $<
+	$(CC) -o $*.o -c $(CFLAGS) $<
 
 depend:
-	@$(CC) -MM $(ALL_CFLAGS) -I.. *.c 1> .depend
+	@$(CC) -MM $(CFLAGS) -I.. *.c 1> .depend
 
 clean: docsclean
 	-rm -f *.o $(PROGS) .depend
 
 %.o: %.c
-	$(CC) -o $*.o -c $(ALL_CFLAGS) $<
+	$(CC) -o $*.o -c $(CFLAGS) $<
 
 btt: $(OBJS)
-	$(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)
+	$(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)
 
 docs:
 	$(MAKE) -C doc all

                 reply	other threads:[~2007-04-09 14:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=461A5353.3070302@hp.com \
    --to=alan.brunelle@hp.com \
    --cc=linux-btrace@vger.kernel.org \
    /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).