File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ CC=gcc
2020AR =ar
2121INSTALL =install
2222
23+ #
24+ # sparse is architecture-neutral, which means that we need to tell it
25+ # explicitly what architecture to check for. Fix this up for yours..
26+ #
27+ SPARSE_FLAGS =-D__BIG_ENDIAN__ -D__powerpc__
28+
2329SCRIPTS =git git-apply-patch-script git-merge-one-file-script git-prune-script \
2430 git-pull-script git-tag-script git-resolve-script git-whatchanged \
2531 git-fetch-script git-status-script git-commit-script \
@@ -49,7 +55,7 @@ LIB_OBJS=read-cache.o sha1_file.o usage.o object.o commit.o tree.o blob.o \
4955 epoch.o refs.o csum-file.o pack-check.o pkt-line.o
5056LIB_FILE =libgit.a
5157LIB_H =cache.h object.h blob.h tree.h commit.h tag.h delta.h epoch.h csum-file.h \
52- pack.h pkt-line.h
58+ pack.h pkt-line.h refs.h
5359
5460LIB_H += strbuf.h
5561LIB_OBJS += strbuf.o
@@ -81,6 +87,9 @@ CFLAGS += '-DSHA1_HEADER=$(SHA1_HEADER)'
8187$(LIB_FILE ) : $(LIB_OBJS )
8288 $(AR ) rcs $@ $(LIB_OBJS )
8389
90+ check :
91+ for i in * .c; do sparse $( CFLAGS) $( SPARSE_FLAGS) $$ i; done
92+
8493test-date : test-date.c date.o
8594 $(CC ) $(CFLAGS ) -o $@ test-date.c date.o
8695
You can’t perform that action at this time.
0 commit comments