diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-07-13 18:01:01 -0700 |
---|---|---|
committer | Alan Coopersmith <alanc@alf.(none)> | 2006-07-13 18:01:01 -0700 |
commit | 1f3fadd3a0f8226fb19f94d6a6344e144e031bba (patch) | |
tree | d470387fd125f100012d08059fe7e9972af95527 | |
parent | 0b7f0333fe6384598e78f6e0dc61dfbf3636c1c8 (diff) |
Add lint checking & library targets
-rw-r--r-- | Makefile.am | 17 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 21 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index b44d5d2..0fd2e96 100644 --- a/Makefile.am +++ b/Makefile.am @@ -62,3 +62,20 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = xdmcp.pc EXTRA_DIST = xdmcp.pc.in autogen.sh Wraphelp.c Wraphelp.README.crypto + +if LINT +ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) + +lint: + $(LINT) $(ALL_LINT_FLAGS) $(libXdmcp_la_SOURCES) $(nodist_libXdmcp_la_SOURCES) $(LIBS) $(XDMCP_LIBS) +endif LINT + +if MAKE_LINT_LIB +lintlibdir = $(libdir) + +lintlib_DATA = $(LINTLIB) + +$(LINTLIB): $(libXdmcp_la_SOURCES) $(nodist_libXdmcp_la_SOURCES) + $(LINT) -y -oXdmcp -x $(ALL_LINT_FLAGS) $(libXdmcp_la_SOURCES) $(nodist_libXdmcp_la_SOURCES) +endif MAKE_LINT_LIB diff --git a/configure.ac b/configure.ac index f35f4e6..4d66597 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,10 @@ fi AM_CONDITIONAL(HASXDMAUTH,test x$HASXDMAUTH = xyes) +dnl Allow checking code with lint, sparse, etc. +XORG_WITH_LINT +XORG_LINT_LIBRARY([Xdmcp]) + XORG_RELEASE_VERSION AC_OUTPUT([Makefile |