Author: petdance
Date: Thu Jul  5 14:21:31 2007
New Revision: 19629

Modified:
   trunk/config/gen/makefiles/root.in

Log:
Updating the sunlint target

Modified: trunk/config/gen/makefiles/root.in
==============================================================================
--- trunk/config/gen/makefiles/root.in  (original)
+++ trunk/config/gen/makefiles/root.in  Thu Jul  5 14:21:31 2007
@@ -105,22 +105,6 @@
 
 CONFIGURE  = $(PERL) Configure.pl
 
-SUNLINT = lint
-SUNLINTFLAGS = \
-    -b \
-    -n \
-    -p \
-    -Ncheck=%all \
-    -Nlevel=4 \
-    -errchk=parentheses \
-    -errhdr=%all \
-    -errfmt=src \
-    -errtags \
-    -erroff=E_BAD_PTR_CAST \
-    -erroff=E_BAD_PTR_CAST_ALIGN \
-    -erroff=E_FUNC_ARG_UNUSED \
-    -erroff=E_LABEL_NOT_USED \
-
 # E_FUNC_ARG_UNUSED: Because of the interpreter getting passed around.  I need 
to add lint protection
 # on the Interp, and then we can turn it back on.
 
@@ -1709,11 +1693,33 @@
 patch :
        svn diff
 
+LINTABLE_CFILES = `echo $(O_FILES) | sed @[EMAIL PROTECTED]/\.o/\.c/[EMAIL 
PROTECTED]@`
+
 lint : sunlint
 
-sunlint : $(PARROT)
+SUNLINT = lint
+
+# See http://docs.sun.com/source/806-3567/lint.html for flags
+SUNLINTFLAGS = \
+    -b \
+    -c \
+    -F \
+    -n \
+    -p \
+    -Ncheck=%all \
+    -Nlevel=4 \
+    -errchk=parentheses \
+    -errhdr=%all \
+    -errtags \
+    -erroff=E_BAD_PTR_CAST \
+    -erroff=E_BAD_PTR_CAST_ALIGN \
+    -erroff=E_LABEL_NOT_USED \
+    -erroff=E_CONSTANT_CONDITION \
+    -erroff=E_ARGUMENT_CONVERT \
+
+sunlint :
        rm -f *.ln
-       $(SUNLINT) $(CC_INC) @cc_hasjit@ "-Isrc/pmc" $(SUNLINTFLAGS) src/*.c
+       $(SUNLINT) $(CC_INC) @cc_hasjit@ "-Isrc/pmc" $(SUNLINTFLAGS) 
$(LINTABLE_CFILES)
 
 BSDLINTFLAGS = \
        -a \
@@ -1730,102 +1736,7 @@
 
 bsdlint : $(PARROT)
        rm -f *.ln
-       $(LINT) $(CC_INC) "-Isrc/pmc" $(BSDLINTFLAGS) \
-               compilers/imcc/cfg.c \
-               compilers/imcc/debug.c \
-               compilers/imcc/imc.c \
-               compilers/imcc/imcc.l \
-               compilers/imcc/imclexer.c \
-               compilers/imcc/imcparser.c \
-               compilers/imcc/instructions.c \
-               compilers/imcc/main.c \
-               compilers/imcc/optimizer.c \
-               compilers/imcc/parser_util.c \
-               compilers/imcc/pbc.c \
-               compilers/imcc/pcc.c \
-               compilers/imcc/reg_alloc.c \
-               compilers/imcc/sets.c \
-               compilers/imcc/symreg.c \
-               src/builtin.c \
-               src/byteorder.c \
-               src/charset.c \
-               src/core_pmcs.c \
-               src/cpu_dep.c \
-               src/datatypes.c \
-               src/debug.c \
-               src/dynext.c \
-               src/embed.c \
-               src/encoding.c \
-               src/events.c \
-               src/exceptions.c \
-               src/exit.c \
-               src/extend.c \
-               src/extend_vtable.c \
-               src/fingerprint.c \
-               src/gc/dod.c \
-               src/gc/gc_gms.c \
-               src/gc/gc_ims.c \
-               src/gc/memory.c \
-               src/gc/register.c \
-               src/gc/smallobject.c \
-               src/global.c \
-               src/global_setup.c \
-               src/hash.c \
-               src/headers.c \
-               src/hll.c \
-               src/inter_call.c \
-               src/inter_cb.c \
-               src/inter_create.c \
-               src/inter_misc.c \
-               src/inter_run.c \
-               src/interpreter.c \
-               src/intlist.c \
-               src/io/io.c \
-               src/io/io_buf.c \
-               src/io/io_layers.c \
-               src/io/io_mmap.c \
-               src/io/io_passdown.c \
-               src/io/io_stdio.c \
-               src/io/io_string.c \
-               src/io/io_unix.c \
-               src/io/io_utf8.c \
-               src/io/io_win32.c \
-               src/key.c \
-               src/library.c \
-               src/list.c \
-               src/longopt.c \
-               src/misc.c \
-               src/mmd.c \
-               src/nci.c \
-               src/objects.c \
-               src/ops/core_ops.c \
-               src/ops/core_ops_switch.c \
-               src/packfile.c \
-               src/packfile/pf_items.c \
-               src/packout.c \
-               src/pic.c \
-               src/pic_jit.c \
-               src/platform.c \
-               src/pmc.c \
-               src/pmc_freeze.c \
-               src/revision.c \
-               src/runops_cores.c \
-               src/spf_render.c \
-               src/spf_vtable.c \
-               src/stack_common.c \
-               src/stacks.c \
-               src/stm/backend.c \
-               src/stm/waitlist.c \
-               src/string.c \
-               src/string_primitives.c \
-               src/sub.c \
-               src/thread.c \
-               src/trace.c \
-               src/tsq.c \
-               src/utils.c \
-               src/vtables.c \
-               src/warnings.c \
-
+       $(LINT) $(CC_INC) "-Isrc/pmc" $(BSDLINTFLAGS) $(LINTABLE_CFILES)
 
 splint : $(PARROT)
        $(SPLINT) $(CC_INC) @cc_hasjit@ "-Isrc/pmc" "-Icompilers/ast" 
$(SPLINTFLAGS) $(SPLINTOPTS) `echo $(O_FILES) | sed @[EMAIL 
PROTECTED]/\.o/\.c/[EMAIL PROTECTED]@`

Reply via email to