Added support for Solaris Lint.

diff --git a/Makefile.in b/Makefile.in
index 74bb0d7..29bf304 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -104,6 +104,9 @@
 # Sub-directories to run make install into
 INSTALLSUBDIRS = $(DOCSUBDIRS) $(INCSUBDIRS)
 
+# Sub-directories to run make lint into
+LINTSUBDIRS = $(LIBSUBDIRS) $(X11SUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
+
 LIBOBJS = \
 	controls/controls.o \
 	console/console.o \
@@ -165,6 +168,13 @@
 
 all: Makefile Make.rules $(MAIN_TARGET)
 
+LIBLINTS = $(LIBOBJS:.o=.ln) 
+X11LINTS = $(X11OBJS:.o=.ln)
+EMULINTS = $(EMUOBJS:.o=.ln)
+
+lint:: llib-lwine.ln $(EMULINTS)
+	$(LINT) $(ALLLINTFLAGS) -L. -lwine $(EMULINTS)
+
 @MAKE_RULES@
 
 Make.rules: Make.rules.in configure
@@ -189,6 +199,9 @@
 	$(AR) $@ $(LIBOBJS) $(X11OBJS)
 	$(RANLIB) $@
 
+llib-lwine.ln : $(LIBLINTS) $(X11LINTS)
+	$(LINT) $(ALLLINTFLAGS) -owine $(LIBLINTS) $(X11LINTS)
+
 libwine.so.1.0: $(LIBOBJS) $(X11OBJS)
 	$(LDSHARED) -o$@ $(LIBOBJS) $(X11OBJS) $(LDOPTIONS)
 	ln -sf $@ libwine.so
@@ -218,6 +231,10 @@
 $(BUILDSUBDIRS): dummy
 	@cd $@; $(SUBMAKE)
 
+$(LIBLINTS) $(X11LINTS) $(EMULINTS): dummy
+	@echo $@ | sed 's%\(.*\)\/[^\/]*%cd \1 \&\& make lint%' | sh
+
+
 install_programs: dummy
 	@cd programs; $(SUBMAKE) install