diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-07-14 13:02:02 -0700 |
---|---|---|
committer | Alan Coopersmith <alanc@alf.(none)> | 2006-07-14 13:02:02 -0700 |
commit | 41211f8c849de67cebeb9d9f7516eb5a4a7eb3cf (patch) | |
tree | 36474cf7728960ce8802daedd3acdf6e3af1e377 | |
parent | bfe7bc6a04d468f7943ebed9a7ea571cbf916d9e (diff) |
Add XORG_WITH_LINT & lint targets for checking code with lint/sparse/etc.
-rw-r--r-- | Makefile.am | 11 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | greeter/Makefile.am | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index d945683..1ebc23a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -164,3 +164,14 @@ appdefault_DATA = $(APPDEFAULTFILES) CLEANFILES += $(APPDEFAULTFILES) EXTRA_DIST += $(APPDEFAULTFILES:%=%.ad) + +if LINT +ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) + +lint: + $(LINT) $(ALL_LINT_FLAGS) $(xdm_CFLAGS) $(xdm_SOURCES) $(xdm_LDADD) + $(LINT) $(ALL_LINT_FLAGS) $(xdmshell_CFLAGS) $(xdmshell_SOURCES) + $(LINT) $(ALL_LINT_FLAGS) $(chooser_CFLAGS) $(chooser_SOURCES) $(chooser_LDADD) + (cd greeter && $(MAKE) $(AM_MAKEFLAGS) lint) +endif LINT diff --git a/configure.ac b/configure.ac index 45094ce..186ea2d 100644 --- a/configure.ac +++ b/configure.ac @@ -492,6 +492,7 @@ appdefaultdir=$(pkg-config --variable=appdefaultdir xt) AC_SUBST(appdefaultdir) AC_SUBST(MKTEMP_COMMAND) +XORG_WITH_LINT XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION diff --git a/greeter/Makefile.am b/greeter/Makefile.am index d035811..7dc8a98 100644 --- a/greeter/Makefile.am +++ b/greeter/Makefile.am @@ -16,3 +16,12 @@ AM_CFLAGS = $(XDMGREET_CFLAGS) -I$(top_srcdir) libXdmGreet_la_LDFLAGS = -module -avoid-version endif + +if LINT +ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) + +lint: + $(LINT) $(ALL_LINT_FLAGS) $(libXdmGreet_la_SOURCES) + +endif LINT |