Print this page
5025 import and use mandoc
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Albert Lee <trisk@nexenta.com>
Approved by: TBD


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   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 #
  26 
  27 #
  28 # Makefile for system source
  29 #
  30 # include global definitions
  31 include Makefile.master
  32 #
  33 # the Targetdirs file is the AT&T target.dirs file in a makefile format.
  34 # it defines TARGETDIRS and ROOTDIRS.
  35 include Targetdirs
  36 
  37 COMMON_SUBDIRS= uts lib cmd ucblib ucbcmd psm man test
  38 sparc_SUBDIRS= stand
  39 i386_SUBDIRS= grub
  40 
  41 #
  42 # sparc needs to build stand before psm
  43 #
  44 $(SPARC_BLD)psm: stand


  48 HDRSUBDIRS=     uts head lib cmd
  49 
  50 # UCB headers are bug-for-bug compatible and not checkable against the header
  51 # standards.
  52 #
  53 CHKHDRSUBDIRS=  head uts lib
  54 
  55 #
  56 # Headers that can be built in parallel
  57 #
  58 PARALLEL_HEADERS = sysheaders userheaders libheaders cmdheaders
  59 
  60 #
  61 # Directories that can be built in parallel
  62 #
  63 PARALLEL_DIRS = uts lib man
  64 
  65 # The check target also causes smf(5) service manifests to be validated.
  66 CHKMFSTSUBDIRS= cmd
  67 



  68 MSGSUBDIRS=     cmd ucbcmd lib
  69 DOMAINS= \
  70         SUNW_OST_ADMIN \
  71         SUNW_OST_NETRPC \
  72         SUNW_OST_OSCMD \
  73         SUNW_OST_OSLIB \
  74         SUNW_OST_UCBCMD \
  75         SUNW_OST_ZONEINFO
  76 
  77 MSGDDIRS=       $(DOMAINS:%=$(MSGROOT)/%)
  78 MSGDIRS=        $(MSGROOT) $(MSGDDIRS) $(MSGROOT)/LC_TIME
  79 
  80 all :=                  TARGET= all
  81 install :=              TARGET= install
  82 install1 :=             TARGET= install
  83 install2 :=             TARGET= install
  84 install_h :=            TARGET= install_h
  85 clean :=                TARGET= clean
  86 clobber :=              TARGET= clobber
  87 check :=                TARGET= check


 188         $(MAKE) -f Makefile.lint
 189 
 190 _msgdirs:       $(MSGDIRS)
 191 
 192 $(ROOTDIRS) $(MSGDIRS):
 193         $(INS.dir)
 194 
 195 userheaders: FRC
 196         @cd head; pwd; $(MAKE) install_h
 197 
 198 libheaders: bldtools
 199         @cd lib; pwd; $(MAKE) install_h
 200 
 201 sysheaders: FRC
 202         @cd uts; pwd; $(MAKE) install_h
 203 
 204 cmdheaders: FRC
 205         @cd cmd/fm; pwd; $(MAKE) install_h
 206         @cd cmd/mdb; pwd; $(MAKE) install_h
 207 
 208 check:  $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS)
 209 
 210 #
 211 # Cross-reference customization: skip all of the subdirectories that
 212 # don't contain actual source code.
 213 #
 214 XRPRUNE = pkg prototypes
 215 XRINCDIRS = uts/common head ucbhead
 216 
 217 cscope.out tags: FRC
 218         $(XREF) -f -x $@
 219 
 220 FRC:
 221 
 222 #
 223 # Targets for reporting compiler versions; nightly uses these.
 224 #
 225 
 226 cc-version:
 227         @if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \
 228                 $(ECHO) 32-bit compiler;                        \




   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   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 #
  27 
  28 #
  29 # Makefile for system source
  30 #
  31 # include global definitions
  32 include Makefile.master
  33 #
  34 # the Targetdirs file is the AT&T target.dirs file in a makefile format.
  35 # it defines TARGETDIRS and ROOTDIRS.
  36 include Targetdirs
  37 
  38 COMMON_SUBDIRS= uts lib cmd ucblib ucbcmd psm man test
  39 sparc_SUBDIRS= stand
  40 i386_SUBDIRS= grub
  41 
  42 #
  43 # sparc needs to build stand before psm
  44 #
  45 $(SPARC_BLD)psm: stand


  49 HDRSUBDIRS=     uts head lib cmd
  50 
  51 # UCB headers are bug-for-bug compatible and not checkable against the header
  52 # standards.
  53 #
  54 CHKHDRSUBDIRS=  head uts lib
  55 
  56 #
  57 # Headers that can be built in parallel
  58 #
  59 PARALLEL_HEADERS = sysheaders userheaders libheaders cmdheaders
  60 
  61 #
  62 # Directories that can be built in parallel
  63 #
  64 PARALLEL_DIRS = uts lib man
  65 
  66 # The check target also causes smf(5) service manifests to be validated.
  67 CHKMFSTSUBDIRS= cmd
  68 
  69 # And man page formats
  70 CHKMANSUBDIRS = man
  71 
  72 MSGSUBDIRS=     cmd ucbcmd lib
  73 DOMAINS= \
  74         SUNW_OST_ADMIN \
  75         SUNW_OST_NETRPC \
  76         SUNW_OST_OSCMD \
  77         SUNW_OST_OSLIB \
  78         SUNW_OST_UCBCMD \
  79         SUNW_OST_ZONEINFO
  80 
  81 MSGDDIRS=       $(DOMAINS:%=$(MSGROOT)/%)
  82 MSGDIRS=        $(MSGROOT) $(MSGDDIRS) $(MSGROOT)/LC_TIME
  83 
  84 all :=                  TARGET= all
  85 install :=              TARGET= install
  86 install1 :=             TARGET= install
  87 install2 :=             TARGET= install
  88 install_h :=            TARGET= install_h
  89 clean :=                TARGET= clean
  90 clobber :=              TARGET= clobber
  91 check :=                TARGET= check


 192         $(MAKE) -f Makefile.lint
 193 
 194 _msgdirs:       $(MSGDIRS)
 195 
 196 $(ROOTDIRS) $(MSGDIRS):
 197         $(INS.dir)
 198 
 199 userheaders: FRC
 200         @cd head; pwd; $(MAKE) install_h
 201 
 202 libheaders: bldtools
 203         @cd lib; pwd; $(MAKE) install_h
 204 
 205 sysheaders: FRC
 206         @cd uts; pwd; $(MAKE) install_h
 207 
 208 cmdheaders: FRC
 209         @cd cmd/fm; pwd; $(MAKE) install_h
 210         @cd cmd/mdb; pwd; $(MAKE) install_h
 211 
 212 check:  $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS) $(CHKMANSUBDIRS)
 213 
 214 #
 215 # Cross-reference customization: skip all of the subdirectories that
 216 # don't contain actual source code.
 217 #
 218 XRPRUNE = pkg prototypes
 219 XRINCDIRS = uts/common head ucbhead
 220 
 221 cscope.out tags: FRC
 222         $(XREF) -f -x $@
 223 
 224 FRC:
 225 
 226 #
 227 # Targets for reporting compiler versions; nightly uses these.
 228 #
 229 
 230 cc-version:
 231         @if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \
 232                 $(ECHO) 32-bit compiler;                        \