diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-07-13 17:01:49 -0700 |
---|---|---|
committer | Alan Coopersmith <alanc@alf.(none)> | 2006-07-13 17:01:49 -0700 |
commit | 881115413a7c157c9aab8fba39c8929692baaacc (patch) | |
tree | b9fb27b5548b37cf504a4ca7bf48af9ceb542a94 | |
parent | f25155b03b9fa866d522714ad64e92bf7f2b95fa (diff) |
Generate lint library for checking programs that call functions in libXau
(Disabled by default, enable with --enable-lint-library)
-rw-r--r-- | Makefile.am | 15 | ||||
-rw-r--r-- | 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 |