summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-10-10 13:33:33 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-10-10 13:33:33 -0700
commitd0e12a97849871b0b2af04bf8d7a3839c54b31a8 (patch)
tree6f54e01dbcad005acf2c27127d798b128ac5cc28 /src
parent932965298c244553f303fab3bdf23941cc40bb23 (diff)
Add XORG_WITH_LINT to allow checking code with lint/sparse/etc.
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 d52a0f4..a8734f3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -18,3 +18,11 @@ libXcursor_la_LDFLAGS = -version-number 1:0:2 -no-undefined
libXcursorincludedir = $(includedir)/X11/Xcursor
libXcursorinclude_HEADERS = $(top_srcdir)/include/X11/Xcursor/Xcursor.h
+
+if LINT
+ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
+
+lint:
+ $(LINT) $(ALL_LINT_FLAGS) $(libXcursor_la_SOURCES) $(XCURSOR_LIBS)
+endif LINT