added lint targets for Makefiles and a configure test to find whether lclint or lint...
[mmh] / zotnet / mts / Makefile.in
index ab8ad65..a57b2f1 100644 (file)
@@ -26,6 +26,8 @@ KRB4_INCLUDES = @KRB4_INCLUDES@
 HESIOD_INCLUDES = @HESIOD_INCLUDES@
 INCLUDES   = -I../.. -I$(srcdir) -I$(top_srcdir) $(KRB4_INCLUDES) $(HESIOD_INCLUDES)
 CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' -DMAILSPOOL='"$(mailspool)"' -DSENDMAILPATH='"$(sendmailpath)"'
+LINT      = @LINT@
+LINTFLAGS  = @LINTFLAGS@
 
 COMPILE  = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
@@ -78,6 +80,11 @@ realclean: distclean
 
 superclean: realclean
 
+# ========== DEPENDENCIES FOR LINT ================
+
+lint: 
+       $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
+
 # ========== DEPENDENCIES FOR MAINTENANCE ==========
 
 subdir = zotnet/mts