summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-04-17 11:17:13 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-04-17 11:17:13 -0700
commitf5eb468f0ca87917488bdd8bdecf9e31fce88945 (patch)
treea896eb1b3b03865d0e6f04e3b8d8027add08336d
parent2d43b8fa9b21bcf9f5c289ab1afba3e73c42f661 (diff)
Add rules for checking code with sparse/lint/etc.
-rw-r--r--Makefile.am8
-rw-r--r--configure.ac3
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 318b801..d9db3e0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -70,3 +70,11 @@ SUFFIXES = .$(APP_MAN_SUFFIX) .man
.man.$(APP_MAN_SUFFIX):
sed $(MAN_SUBSTS) < $< > $@
+
+if LINT
+ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(setxkbmap_CFLAGS)
+
+lint:
+ $(LINT) $(ALL_LINT_FLAGS) $(setxkbmap_SOURCES)
+endif LINT
diff --git a/configure.ac b/configure.ac
index 608a5ef..9b0c022 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,6 +43,9 @@ PKG_CHECK_MODULES(SETXKBMAP, xkbfile x11)
AC_SUBST(SETXKBMAP_CFLAGS)
AC_SUBST(SETXKBMAP_LIBS)
+# Allow checking code with lint, sparse, etc.
+XORG_WITH_LINT
+
XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION