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 2006 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 #ident  "%Z%%M% %I%     %E% SMI"
  26 #
  27 #
  28 # uts/sun4u/makaha/Makefile.makaha
  29 #
  30 #     This makefile contains the common definitions for the
  31 #     sun4u Makaha system dependent modules.
  32 #
  33 
  34 #
  35 # Define directories.
  36 #
  37 MONTECARLO      =       SUNW,UltraSPARC-IIi-Netract
  38 MAKAHA          =       SUNW,UltraSPARC-IIe-NetraCT-40
  39 SPUTNIK         =       SUNW,UltraSPARC-IIe-NetraCT-60
  40 ROOT_MAKAHA_DIR         = $(ROOT_PLAT_DIR)/$(MAKAHA)
  41 ROOT_MAKAHA_MOD_DIR             = $(ROOT_MAKAHA_DIR)/kernel
  42 
  43 ROOT_MAKAHA_KERN_DIR_32 = $(ROOT_MAKAHA_MOD_DIR)
  44 ROOT_MAKAHA_KERN_DIR_64 = $(ROOT_MAKAHA_MOD_DIR)/$(SUBDIR64)
  45 ROOT_MAKAHA_DRV_DIR_32  = $(ROOT_MAKAHA_MOD_DIR)/drv
  46 ROOT_MAKAHA_DRV_DIR_64  = $(ROOT_MAKAHA_MOD_DIR)/drv/$(SUBDIR64)
  47 ROOT_MAKAHA_DRV_LINK_32 = $(ROOT_MAKAHA_DRV_DIR_32:$(ROOT_MAKAHA_DIR)%=../../../$(MONTECARLO)%)
  48 ROOT_MAKAHA_DRV_LINK_64 = $(ROOT_MAKAHA_DRV_DIR_64:$(ROOT_MAKAHA_DIR)%=../../../../$(MONTECARLO)%)
  49 ROOT_MAKAHA_MISC_DIR_32 = $(ROOT_MAKAHA_MOD_DIR)/misc
  50 ROOT_MAKAHA_MISC_DIR_64 = $(ROOT_MAKAHA_MOD_DIR)/misc/$(SUBDIR64)
  51 ROOT_MAKAHA_MISC_LINK_32        = $(ROOT_MAKAHA_MISC_DIR_32:$(ROOT_MAKAHA_DIR)%=../../../$(MONTECARLO)%)
  52 ROOT_MAKAHA_MISC_LINK_64        = $(ROOT_MAKAHA_MISC_DIR_64:$(ROOT_MAKAHA_DIR)%=../../../../$(MONTECARLO)%)
  53 ROOT_MAKAHA_DACF_DIR_32 = $(ROOT_MAKAHA_MOD_DIR)/dacf
  54 ROOT_MAKAHA_DACF_DIR_64 = $(ROOT_MAKAHA_MOD_DIR)/dacf/$(SUBDIR64)
  55 ROOT_MAKAHA_DACF_LINK_64        = $(ROOT_MAKAHA_DACF_DIR_64:$(ROOT_MAKAHA_DIR)%=../../../../$(MONTECARLO)%)
  56 
  57 ROOT_MAKAHA_KERN_DIR    = $(ROOT_MAKAHA_KERN_DIR_$(CLASS))
  58 ROOT_MAKAHA_MISC_DIR    = $(ROOT_MAKAHA_MISC_DIR_$(CLASS))
  59 ROOT_MAKAHA_DRV_DIR             = $(ROOT_MAKAHA_DRV_DIR_$(CLASS))
  60 ROOT_MAKAHA_DACF_DIR    = $(ROOT_MAKAHA_DACF_DIR_$(CLASS))
  61 ROOT_MAKAHA_DRV_LINK    = $(ROOT_MAKAHA_DRV_LINK_$(CLASS))
  62 ROOT_MAKAHA_MISC_LINK   = $(ROOT_MAKAHA_MISC_LINK_$(CLASS))
  63 ROOT_MAKAHA_DACF_LINK   = $(ROOT_MAKAHA_DACF_LINK_$(CLASS))
  64 
  65 ROOT_PLAT_MOD_DIRS      += $(ROOT_MAKAHA_MOD_DIR)
  66 ROOT_PLAT_MISC_DIRS     += $(ROOT_MAKAHA_MISC_DIR)
  67 ROOT_PLAT_MISC_DIRS_32  += $(ROOT_MAKAHA_MISC_DIR_32)
  68 ROOT_PLAT_DRV_DIRS      = $(ROOT_MAKAHA_DRV_DIR)
  69 
  70 USR_MAKAHA_DIR  = $(USR_PLAT_DIR)/$(MAKAHA)
  71 USR_MAKAHA_INC_DIR      = $(USR_MAKAHA_DIR)/include
  72 USR_MAKAHA_SBIN_DIR     = $(USR_MAKAHA_DIR)/sbin
  73 USR_MAKAHA_LIB_DIR      = $(USR_MAKAHA_DIR)/lib
  74 USR_MAKAHA_ISYS_DIR     = $(USR_MAKAHA_INC_DIR)/sys
  75 
  76 MAKAHA_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/makaha/lint-libs/$(OBJS_DIR)
  77 #
  78 # Definitions for Sputnik, SUNW,UltraSPARC-IIe-NetraCT-60 platform
  79 #
  80 ROOT_SPUTNIK_DIR                = $(ROOT_PLAT_DIR)/$(SPUTNIK)
  81 ROOT_SPUTNIK_MOD_DIR            = $(ROOT_SPUTNIK_DIR)/kernel
  82 
  83 ROOT_SPUTNIK_KERN_DIR_32        = $(ROOT_SPUTNIK_MOD_DIR)
  84 ROOT_SPUTNIK_KERN_DIR_64        = $(ROOT_SPUTNIK_MOD_DIR)/$(SUBDIR64)
  85 ROOT_SPUTNIK_DRV_DIR_32 = $(ROOT_SPUTNIK_MOD_DIR)/drv
  86 ROOT_SPUTNIK_DRV_DIR_64 = $(ROOT_SPUTNIK_MOD_DIR)/drv/$(SUBDIR64)
  87 ROOT_SPUTNIK_DRV_LINK_32        = $(ROOT_SPUTNIK_DRV_DIR_32:$(ROOT_SPUTNIK_DIR)%=../../../$(MAKAHA)%)
  88 ROOT_SPUTNIK_DRV_LINK_64        = $(ROOT_SPUTNIK_DRV_DIR_64:$(ROOT_SPUTNIK_DIR)%=../../../../$(MAKAHA)%)
  89 ROOT_SPUTNIK_MISC_DIR_32        = $(ROOT_SPUTNIK_MOD_DIR)/misc
  90 ROOT_SPUTNIK_MISC_DIR_64        = $(ROOT_SPUTNIK_MOD_DIR)/misc/$(SUBDIR64)
  91 ROOT_SPUTNIK_DACF_DIR_32        = $(ROOT_SPUTNIK_MOD_DIR)/dacf
  92 ROOT_SPUTNIK_DACF_DIR_64        = $(ROOT_SPUTNIK_MOD_DIR)/dacf/$(SUBDIR64)
  93 ROOT_SPUTNIK_DACF_LINK_64       = $(ROOT_SPUTNIK_DACF_DIR_64:$(ROOT_SPUTNIK_DIR)%=../../../../$(MONTECARLO)%)
  94 
  95 ROOT_SPUTNIK_KERN_DIR   = $(ROOT_SPUTNIK_KERN_DIR_$(CLASS))
  96 ROOT_SPUTNIK_MISC_DIR   = $(ROOT_SPUTNIK_MISC_DIR_$(CLASS))
  97 ROOT_SPUTNIK_DRV_DIR            = $(ROOT_SPUTNIK_DRV_DIR_$(CLASS))
  98 ROOT_SPUTNIK_DACF_DIR   = $(ROOT_SPUTNIK_DACF_DIR_$(CLASS))
  99 ROOT_SPUTNIK_DRV_LINK   = $(ROOT_SPUTNIK_DRV_LINK_$(CLASS))
 100 ROOT_SPUTNIK_DACF_LINK  = $(ROOT_SPUTNIK_DACF_LINK_$(CLASS))
 101 
 102 ROOT_PLAT_MOD_DIRS      += $(ROOT_SPUTNIK_MOD_DIR)
 103 ROOT_PLAT_MISC_DIRS     += $(ROOT_SPUTNIK_MISC_DIR)
 104 ROOT_PLAT_MISC_DIRS_32  += $(ROOT_SPUTNIK_MISC_DIR_32)
 105 ROOT_PLAT_DRV_DIRS      = $(ROOT_SPUTNIK_DRV_DIR)
 106 
 107 USR_SPUTNIK_DIR = $(USR_PLAT_DIR)/$(SPUTNIK)
 108 USR_SPUTNIK_INC_DIR     = $(USR_SPUTNIK_DIR)/include
 109 USR_SPUTNIK_SBIN_DIR    = $(USR_SPUTNIK_DIR)/sbin
 110 USR_SPUTNIK_LIB_DIR     = $(USR_SPUTNIK_DIR)/lib
 111 USR_SPUTNIK_ISYS_DIR    = $(USR_SPUTNIK_INC_DIR)/sys
 112 
 113 #
 114 # Montecarlo platform definitions for symbolic links
 115 #
 116 ROOT_MONTECARLO_DIR                     = $(ROOT_PLAT_DIR)/SUNW,UltraSPARC-IIi-Netract
 117 ROOT_MONTECARLO_MOD_DIR         = $(ROOT_MONTECARLO_DIR)/kernel
 118 ROOT_MONTECARLO_KERN_DIR_32     = $(ROOT_MONTECARLO_MOD_DIR)
 119 ROOT_MONTECARLO_KERN_DIR_64     = $(ROOT_MONTECARLO_MOD_DIR)/$(SUBDIR64)
 120 ROOT_MONTECARLO_DRV_DIR_32      = $(ROOT_MONTECARLO_MOD_DIR)/drv
 121 ROOT_MONTECARLO_DRV_DIR_64      = $(ROOT_MONTECARLO_MOD_DIR)/drv/$(SUBDIR64)
 122 ROOT_MONTECARLO_MISC_DIR_32     = $(ROOT_MONTECARLO_MOD_DIR)/misc
 123 ROOT_MONTECARLO_MISC_DIR_64     = $(ROOT_MONTECARLO_MOD_DIR)/misc/$(SUBDIR64)
 124 ROOT_MONTECARLO_DACF_DIR_32     = $(ROOT_MONTECARLO_MOD_DIR)/dacf
 125 ROOT_MONTECARLO_DACF_DIR_64     = $(ROOT_MONTECARLO_MOD_DIR)/dacf/$(SUBDIR64)
 126 
 127 ROOT_MONTECARLO_KERN_DIR        = $(ROOT_MONTECARLO_KERN_DIR_$(CLASS))
 128 ROOT_MONTECARLO_MISC_DIR        = $(ROOT_MONTECARLO_MISC_DIR_$(CLASS))
 129 ROOT_MONTECARLO_DRV_DIR         = $(ROOT_MONTECARLO_DRV_DIR_$(CLASS))
 130 ROOT_MONTECARLO_DACF_DIR        = $(ROOT_MONTECARLO_DACF_DIR_$(CLASS))
 131 
 132 include $(UTSBASE)/sun4u/makaha/Makefile.files
 133 
 134 #
 135 #       Include common rules.
 136 #
 137 include $(UTSBASE)/sun4u/Makefile.sun4u