Very optimistically add a "sparse" makefile target.

Since sparse really wants clean ANSI C, we're not even _remotely_ close
to being sparse-clean.  But maybe some day...
This commit is contained in:
Linus Torvalds 2005-09-30 15:28:37 -07:00
parent 435dd32ae2
commit b9deaf1bd8
1 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,12 @@ LIBDIR=/usr/lib
em: ${OBJ}
${CC} ${DEFINES} -o em ${OBJ} ${LIBS}
SPARSE=sparse
SPARSE_FLAGS=-D__BIG_ENDIAN__ -D__ppc__ -D__linux__ -D__unix__
sparse:
for i in $(SRC); do $(SPARSE) $(SPARSE_FLAGS) $(DEFINES) $$i; done
clean:
rm -f core lintout makeout tags makefile.bak *.o