summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 944d858)
raw | patch | inline | side by side (parent: 944d858)
author | Linus Torvalds <torvalds@g5.osdl.org> | |
Sun, 3 Jul 2005 17:02:35 +0000 (10:02 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Sun, 3 Jul 2005 17:02:35 +0000 (10:02 -0700) |
We're pretty sparse-clean already, thanks to earlier efforts, but some
things inevitably creep in.
things inevitably creep in.
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index b08727f3cbedcefc72252fadb9035fceb5d29e92..e86ba65805294353bb3500189a63f313dcfb3ed2 100644 (file)
--- a/Makefile
+++ b/Makefile
AR=ar
INSTALL=install
+#
+# 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__
+
SCRIPTS=git git-apply-patch-script git-merge-one-file-script git-prune-script \
git-pull-script git-tag-script git-resolve-script git-whatchanged \
git-fetch-script git-status-script git-commit-script \
epoch.o refs.o csum-file.o pack-check.o pkt-line.o
LIB_FILE=libgit.a
LIB_H=cache.h object.h blob.h tree.h commit.h tag.h delta.h epoch.h csum-file.h \
- pack.h pkt-line.h
+ pack.h pkt-line.h refs.h
LIB_H += strbuf.h
LIB_OBJS += strbuf.o
$(LIB_FILE): $(LIB_OBJS)
$(AR) rcs $@ $(LIB_OBJS)
+check:
+ for i in *.c; do sparse $(CFLAGS) $(SPARSE_FLAGS) $$i; done
+
test-date: test-date.c date.o
$(CC) $(CFLAGS) -o $@ test-date.c date.o