1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   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 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 # Copyright 2018 Joyent, Inc.
  25 #
  26 # uts/i86pc/sys/Makefile
  27 #
  28 UTSBASE = ../..
  29 
  30 #
  31 # include global definitions
  32 #
  33 include ../Makefile.i86pc
  34 
  35 #
  36 # Override defaults.
  37 #
  38 FILEMODE = 644
  39 
  40 HDRS=  \
  41         acpidev.h       \
  42         amd_iommu.h     \
  43         asm_misc.h      \
  44         clock.h         \
  45         cram.h          \
  46         ddi_subrdefs.h  \
  47         debug_info.h    \
  48         fastboot.h      \
  49         ht.h            \
  50         mach_mmu.h      \
  51         machclock.h     \
  52         machcpuvar.h    \
  53         machparam.h     \
  54         machprivregs.h  \
  55         machsystm.h     \
  56         machthread.h    \
  57         memnode.h       \
  58         pc_mmu.h        \
  59         psm.h           \
  60         psm_defs.h      \
  61         psm_modctl.h    \
  62         psm_types.h     \
  63         rm_platter.h    \
  64         smp_impldefs.h  \
  65         sbd_ioctl.h     \
  66         vm_machparam.h  \
  67         x_call.h        \
  68         xc_levels.h     \
  69         xsvc.h
  70 
  71 ROOTHDRS=       $(HDRS:%=$(USR_PSM_ISYS_DIR)/%)
  72 
  73 ROOTDIR=        $(ROOT)/usr/share/src
  74 ROOTDIRS=       $(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
  75 
  76 ROOTLINK=       $(ROOTDIR)/uts/$(PLATFORM)/sys
  77 LINKDEST=       ../../../../platform/$(PLATFORM)/include/sys
  78 
  79 CHECKHDRS=      $(HDRS:%.h=%.check)
  80 
  81 .KEEP_STATE:
  82 
  83 .PARALLEL:      $(CHECKHDRS) $(ROOTHDRS)
  84 
  85 install_h:      $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
  86 
  87 check:          $(CHECKHDRS)
  88 
  89 $(ROOTDIRS):
  90         $(INS.dir)
  91 
  92 $(ROOTLINK):    $(ROOTDIRS)
  93         -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@
  94 
  95 FRC:
  96 
  97 include ../../Makefile.targ