added lint targets for Makefiles and a configure test to find whether lclint or lint...
[mmh] / mts / smtp / Makefile.in
index a4fc8d9..9890d1c 100644 (file)
@@ -26,6 +26,8 @@ TSORT   = @TSORT@
 RANLIB  = @RANLIB@
 LIBTOOL = @LIBTOOL@
 GNU_LIBTOOL = @GNU_LIBTOOL@
+LINT   = @LINT@
+LINTFLAGS = @LINTFLAGS@
 
 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
 
@@ -56,7 +58,7 @@ all: libsmtp.a
 
 libsmtp.a: $(OBJS)
        rm -f $@
-       if test x$(LIBTOOL) != xno -a x$(GNU_LIBTOOL) = x ; then \
+       if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
          $(LIBTOOL) -static -c $(OBJS) -o $@  ; \
        else \
          ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)`  ; \
@@ -82,6 +84,11 @@ realclean: distclean
 
 superclean: realclean
 
+# ========== DEPENDENCIES FOR LINT =================
+
+lint: 
+       $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
+
 # ========== DEPENDENCIES FOR MAINTENANCE ==========
 
 subdir = mts/smtp