Print this page
9128 cw(1onbld) should be able to run multiple shadows
9129 file-locking tests shouldn't build multiple source files in one compiler invocation
9130 DTrace tst.gcc.d isn't useful
9132 cw(1onbld) shouldn't shadow pure preprocessing
Reviewed by: Andy Fiddaman <omnios@citrus-it.net>

@@ -20,10 +20,11 @@
 #
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright 2018 Joyent, Inc.
 
 PROG    = cw
 
 MAN1ONBLDFILES= cw.1onbld
 

@@ -37,23 +38,18 @@
 
 CFLAGS += $(CCVERBOSE)
 
 # Override CFLAGS.  This is needed only for bootstrap of cw.
 $(__GNUC)CFLAGS=        -O -D__sun -Wall -Wno-unknown-pragmas -Werror \
-                        -std=gnu89 -nodefaultlibs
+                        -std=gnu99 -nodefaultlibs
 $(__SUNC)CFLAGS=        -xspace -Xa  -xildoff -errtags=yes -errwarn=%all \
-                        -xc99=%none    -W0,-xglobalstatic -v
+                        -xc99=%all -W0,-xglobalstatic -v
 
 
 $(__GNUC)LDLIBS +=      -lc
 $(__GNUC)LDFLAGS=       $(MAPFILE.NES:%=-Wl,-M%)
 
-CPPFLAGS += -DDEFAULT_CC_DIR='"$(SPRO_VROOT)/bin"'
-CPPFLAGS += -DDEFAULT_GCC_DIR='"$(GNUC_ROOT)/bin"'
-CPPFLAGS += -DDEFAULT_CPLUSPLUS_DIR='"$(SPRO_VROOT)/bin"'
-CPPFLAGS += -DDEFAULT_GPLUSPLUS_DIR='"$(GNUC_ROOT)/bin"'
-
 $(ROOTONBLDMAN1ONBLDFILES) := FILEMODE=      644
 
 # Assume we don't have the install.bin available yet
 INS.file=       $(RM) $@; $(CP) $< $(@D); $(CHMOD) $(FILEMODE) $@
 

@@ -65,6 +61,11 @@
 
 lint: lint_PROG
 
 clean:
 
+#
+# Not run by default: bootstrap...
+check:
+        $(ROOTONBLDBINMACH)/mandoc -Tlint -Wwarning $(MAN1ONBLDFILES)
+
 include ../Makefile.targ