aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-09-30 15:28:37 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-30 15:28:37 -0700
commitb9deaf1bd83c0f04090faa97f1f945236a589e51 (patch)
tree08ea40dea3b2d52177a9a40a86537eba69d6f226
parent435dd32ae2d9a5543318e5c4b5d29de672cae1b5 (diff)
downloaduemacs-b9deaf1bd83c0f04090faa97f1f945236a589e51.tar.gz
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...
-rw-r--r--makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/makefile b/makefile
index beb0ffd..8c5e40c 100644
--- a/makefile
+++ b/makefile
@@ -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