Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions

@@ -20,27 +20,34 @@
 #
 #
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+#
 
 FSTYPE=         ufs
 LIBPROG=        mkfs
 ATTMK=          $(LIBPROG)
 
 include         ../../Makefile.fstype
 include         ../Makefile.roll
 
+CPPFLAGS +=     -I../../
+
 OBJS=           $(LIBPROG).o $(ROLLOBJS) $(FSLIB)
 SRCS=           $(LIBPROG).c $(ROLLSRCS) $(FSLIBSRC)
 MKFSOBJS=       mkfs.o
 
 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
 CERRWARN +=     -_gcc=-Wno-unused-variable
 CERRWARN +=     -_gcc=-Wno-empty-body
 CERRWARN +=     -_gcc=-Wno-uninitialized
 
+# can't hack main() !
+SMATCH =        off
+
 # for messaging catalog
 #
 POFILE= mkfs.po
 
 catalog:        $(POFILE)