From: Pavel Roskin <proski@gnu.org>
To: git <git@vger.kernel.org>
Subject: [PATCH] Support SPARSE in Makefile, better SPARSE_FLAGS
Date: Thu, 29 Sep 2005 16:46:05 -0400 [thread overview]
Message-ID: <1128026765.24397.46.camel@dv> (raw)
Support SPARSE in Makefile, better SPARSE_FLAGS
This patch makes it possible to use some other program instead of sparse
(e.g. a wrapper around sparse). It also provides a better default for
SPARSE_FLAGS. __BIG_ENDIAN__ should not be needed.
Signed-off-by: Pavel Roskin <proski@gnu.org>
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -66,8 +66,9 @@ INSTALL = install
RPMBUILD = rpmbuild
# sparse is architecture-neutral, which means that we need to tell it
-# explicitly what architecture to check for. Fix this up for yours..
-SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__
+# explicitly what architecture to check for.
+SPARSE = sparse
+SPARSE_FLAGS = -D__$(shell uname -i)__
@@ -335,7 +336,7 @@ test-delta: test-delta.c diff-delta.o pa
$(CC) $(ALL_CFLAGS) -o $@ $^
check:
- for i in *.c; do sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i; done
+ for i in *.c; do $(SPARSE) $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i; done
--
Regards,
Pavel Roskin
next reply other threads:[~2005-09-29 20:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 20:46 Pavel Roskin [this message]
2005-09-30 5:46 ` [PATCH] Support SPARSE in Makefile, better SPARSE_FLAGS Junio C Hamano
2005-09-30 13:41 ` Pavel Roskin
2005-09-30 19:19 ` H. Peter Anvin
2005-09-30 22:14 ` Pavel Roskin
2005-09-30 22:16 ` H. Peter Anvin
2005-10-01 4:13 ` Pavel Roskin
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=1128026765.24397.46.camel@dv \
--to=proski@gnu.org \
--cc=git@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.