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>


   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright (c) 2012 by Delphix. All rights reserved.
  25 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
  27 # Copyright 2016 Toomas Soome <tsoome@me.com>
  28 # Copyright 2017 Joyent, Inc.
  29 # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
  30 #
  31 
  32 #
  33 # Makefile for system source
  34 #
  35 # include global definitions
  36 include Makefile.master
  37 #
  38 # the Targetdirs file is the AT&T target.dirs file in a makefile format.
  39 # it defines TARGETDIRS and ROOTDIRS.
  40 include Targetdirs
  41 
  42 COMMON_SUBDIRS= data uts lib cmd ucblib ucbcmd psm man test
  43 sparc_SUBDIRS= stand
  44 i386_SUBDIRS= grub boot
  45 
  46 #
  47 # sparc needs to build stand before psm
  48 #


 220 
 221 cmdheaders: FRC
 222         @cd cmd/devfsadm; pwd; $(MAKE) install_h
 223         @cd cmd/fm; pwd; $(MAKE) install_h
 224         @cd cmd/mdb; pwd; $(MAKE) install_h
 225 
 226 check:  $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS) $(CHKMANSUBDIRS)
 227 
 228 #
 229 # Cross-reference customization: skip all of the subdirectories that
 230 # don't contain actual source code.
 231 #
 232 XRPRUNE = pkg prototypes
 233 XRINCDIRS = uts/common head ucbhead
 234 
 235 cscope.out tags: FRC
 236         $(XREF) -f -x $@
 237 
 238 FRC:
 239 
 240 #
 241 # Targets for reporting compiler versions; nightly uses these.
 242 #
 243 
 244 cc-version:
 245         @if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \
 246                 $(ECHO) 32-bit compiler;                        \
 247                 $(ECHO) $($(MACH)_CC);                          \
 248                 $($(MACH)_CC) -_versions 2>&1 |                  \
 249                     $(EGREP) '^(cw|cc|gcc|primary|shadow)';     \
 250         else                                                    \
 251                 __COMPILER=`$($(MACH)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
 252                 if [ -z "$$__COMPILER" ]; then                  \
 253                         $(ECHO) No 32-bit compiler found;       \
 254                         exit 1;                                 \
 255                 else                                            \
 256                         $(ECHO) 32-bit compiler;                \
 257                         $(ECHO) $($(MACH)_CC);                  \
 258                         $(ECHO) $$__COMPILER;                   \
 259                         $($(MACH)_CC) -V 2>&1 | head -1; \
 260                 fi;                                             \
 261         fi
 262 

 263 cc64-version:
 264         @if $($(MACH64)_CC) -_versions >/dev/null 2>/dev/null; then \
 265                 $(ECHO) 64-bit compiler;                        \
 266                 $(ECHO) $($(MACH64)_CC);                        \
 267                 $($(MACH64)_CC) -_versions 2>&1 |                \
 268                     $(EGREP) '^(cw|cc|gcc|primary|shadow)';     \
 269         else                                                    \
 270                 __COMPILER=`$($(MACH64)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
 271                 if [ -z "$$__COMPILER" ]; then                  \
 272                         $(ECHO) No 64-bit compiler found;       \
 273                         exit 1;                                 \
 274                 else                                            \
 275                         $(ECHO) 64-bit compiler;                \
 276                         $(ECHO) $($(MACH64)_CC);                \
 277                         $(ECHO) $$__COMPILER;                   \
 278                         $($(MACH64)_CC) -V 2>&1 | head -1;       \
 279                 fi;                                             \
 280         fi
 281 
 282 java-version:
 283         @if [ -x "$(JAVAC)" ]; then                     \
 284                 $(ECHO) $(JAVAC);                       \
 285                 $(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1;       \
 286         else                                            \
 287                 $(ECHO) No Java compiler found;         \
 288                 exit 1;                                 \
 289         fi
 290 
 291 openssl-version:
 292         @if [ -x "$(OPENSSL)" ]; then                           \
 293                 $(ECHO) $(OPENSSL);                             \
 294                 $(OPENSSL) version;                             \
 295                 $(OPENSSL) version -f |                         \
 296                     $(SED) -n '/_API/{s/.*_API/    API/;s/ -.*//;p;}'; \
 297         else                                                    \
 298                 $(ECHO) No OpenSSL utility found;               \
 299         fi


   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright (c) 2012 by Delphix. All rights reserved.
  25 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
  27 # Copyright 2016 Toomas Soome <tsoome@me.com>
  28 # Copyright 2018 Joyent, Inc.
  29 # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
  30 #
  31 
  32 #
  33 # Makefile for system source
  34 #
  35 # include global definitions
  36 include Makefile.master
  37 #
  38 # the Targetdirs file is the AT&T target.dirs file in a makefile format.
  39 # it defines TARGETDIRS and ROOTDIRS.
  40 include Targetdirs
  41 
  42 COMMON_SUBDIRS= data uts lib cmd ucblib ucbcmd psm man test
  43 sparc_SUBDIRS= stand
  44 i386_SUBDIRS= grub boot
  45 
  46 #
  47 # sparc needs to build stand before psm
  48 #


 220 
 221 cmdheaders: FRC
 222         @cd cmd/devfsadm; pwd; $(MAKE) install_h
 223         @cd cmd/fm; pwd; $(MAKE) install_h
 224         @cd cmd/mdb; pwd; $(MAKE) install_h
 225 
 226 check:  $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS) $(CHKMANSUBDIRS)
 227 
 228 #
 229 # Cross-reference customization: skip all of the subdirectories that
 230 # don't contain actual source code.
 231 #
 232 XRPRUNE = pkg prototypes
 233 XRINCDIRS = uts/common head ucbhead
 234 
 235 cscope.out tags: FRC
 236         $(XREF) -f -x $@
 237 
 238 FRC:
 239 
 240 # used by nightly



 241 cc-version:
 242         @$(CW) --versions $(CW_CC_COMPILERS) 2>&1
















 243 
 244 # for older nightlies
 245 cc64-version:

















 246 
 247 java-version:
 248         @if [ -x "$(JAVAC)" ]; then                     \
 249                 $(ECHO) $(JAVAC);                       \
 250                 $(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1;       \
 251         else                                            \
 252                 $(ECHO) No Java compiler found;         \
 253                 exit 1;                                 \
 254         fi
 255 
 256 openssl-version:
 257         @if [ -x "$(OPENSSL)" ]; then                           \
 258                 $(ECHO) $(OPENSSL);                             \
 259                 $(OPENSSL) version;                             \
 260                 $(OPENSSL) version -f |                         \
 261                     $(SED) -n '/_API/{s/.*_API/    API/;s/ -.*//;p;}'; \
 262         else                                                    \
 263                 $(ECHO) No OpenSSL utility found;               \
 264         fi