From 881115413a7c157c9aab8fba39c8929692baaacc Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 13 Jul 2006 17:01:49 -0700 Subject: Generate lint library for checking programs that call functions in libXau (Disabled by default, enable with --enable-lint-library) --- Makefile.am | 15 +++++++++++++-- configure.ac | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9c8bc12..ac78667 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,11 +36,22 @@ Autest_SOURCES=Autest.c Autest_LDADD=libXau.la if LINT +ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) + lint: - $(LINT) $(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(libXau_la_SOURCES) + $(LINT) $(ALL_LINT_FLAGS) $(libXau_la_SOURCES) endif LINT +if MAKE_LINT_LIB +lintlibdir = $(libdir) + +lintlib_DATA = $(LINTLIB) + +$(LINTLIB): $(libXau_la_SOURCES) + $(LINT) -y -oXau -x $(ALL_LINT_FLAGS) $(libXau_la_SOURCES) +endif MAKE_LINT_LIB + LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%) libmandir = $(LIB_MAN_DIR) diff --git a/configure.ac b/configure.ac index d9f6df5..3e911b7 100644 --- a/configure.ac +++ b/configure.ac @@ -64,6 +64,7 @@ fi dnl Allow checking code with lint, sparse, etc. XORG_WITH_LINT +XORG_LINT_LIBRARY([Xau]) LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}" if test "x$GCC" = "xyes"; then -- cgit v1.2.3