summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-02-15 18:59:53 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-02-15 18:59:53 -0800
commitc98be137c711235fe5bff430e93222d2a47b5e6a (patch)
treecde490a617e8f6cb515e58a781cb67a538d92fe3 /src
parent269885f05a4aed0eb3ee192217fa8ec6494f90c5 (diff)
Add support for source code checkers such as sparse & lint
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 098ff05..7d718d4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,3 +7,11 @@ libXinerama_la_SOURCES = \
libXinerama_la_LIBADD = $(XINERAMA_LIBS)
libXinerama_la_LDFLAGS = -version-number 1:0:0 -no-undefined
+
+if LINT
+ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS)
+
+lint:
+ $(LINT) $(ALL_LINT_FLAGS) $(libXinerama_la_SOURCES) $(XINERAMA_LIBS)
+endif LINT