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