1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate# 28*7c478bd9Sstevel@tonic-gate# Makefile.psm.targ, global targets for platform specific modules 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gate# 31*7c478bd9Sstevel@tonic-gate# Installation targets and rules: 32*7c478bd9Sstevel@tonic-gate# 33*7c478bd9Sstevel@tonic-gate$(ROOT_PLAT_DIR) $(USR_PLAT_DIR): 34*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.sys) 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_DIR): $(ROOT_PLAT_DIR) 37*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.sys) 38*7c478bd9Sstevel@tonic-gate 39*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB_DIR) \ 40*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_SBIN_DIR): $(ROOT_PSM_DIR) 41*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.sys) 42*7c478bd9Sstevel@tonic-gate 43*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB64_DIR): $(ROOT_PSM_LIB_DIR) 44*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.bin) 45*7c478bd9Sstevel@tonic-gate 46*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_MOD_DIR): $(ROOT_PSM_DIR) 47*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.sys) 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_MOD_DIRS_32): $(ROOT_PSM_MOD_DIR) 50*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.sys) 51*7c478bd9Sstevel@tonic-gate 52*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_DIR)/%: % $(ROOT_PSM_DIR) 53*7c478bd9Sstevel@tonic-gate $(INS.file) 54*7c478bd9Sstevel@tonic-gate 55*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB_DIR)/%: % $(ROOT_PSM_LIB_DIR) 56*7c478bd9Sstevel@tonic-gate $(INS.file) 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB64_DIR)/%: % $(ROOT_PSM_LIB64_DIR) 59*7c478bd9Sstevel@tonic-gate $(INS.file) 60*7c478bd9Sstevel@tonic-gate 61*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_SBIN_DIR)/%: % $(ROOT_PSM_SBIN_DIR) 62*7c478bd9Sstevel@tonic-gate $(INS.file) 63*7c478bd9Sstevel@tonic-gate 64*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_KERN_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_KERN_DIR) FRC 65*7c478bd9Sstevel@tonic-gate $(INS.file) 66*7c478bd9Sstevel@tonic-gate 67*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_DRV_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_DRV_DIR) FRC 68*7c478bd9Sstevel@tonic-gate $(INS.file) 69*7c478bd9Sstevel@tonic-gate 70*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_EXEC_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_EXEC_DIR) FRC 71*7c478bd9Sstevel@tonic-gate $(INS.file) 72*7c478bd9Sstevel@tonic-gate 73*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_FS_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_FS_DIR) FRC 74*7c478bd9Sstevel@tonic-gate $(INS.file) 75*7c478bd9Sstevel@tonic-gate 76*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_SCHED_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_SCHED_DIR) FRC 77*7c478bd9Sstevel@tonic-gate $(INS.file) 78*7c478bd9Sstevel@tonic-gate 79*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_STRMOD_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_STRMOD_DIR) FRC 80*7c478bd9Sstevel@tonic-gate $(INS.file) 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_SYS_DIR)/%: $(OBJS_DIR)% $(ROOT_PSM_SYS_DIR) FRC 83*7c478bd9Sstevel@tonic-gate $(INS.file) 84*7c478bd9Sstevel@tonic-gate 85*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_MISC_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_MISC_DIR) FRC 86*7c478bd9Sstevel@tonic-gate $(INS.file) 87*7c478bd9Sstevel@tonic-gate 88*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_KGSS_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_KGSS_DIR) FRC 89*7c478bd9Sstevel@tonic-gate $(INS.file) 90*7c478bd9Sstevel@tonic-gate 91*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_MACH_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_MACH_DIR) FRC 92*7c478bd9Sstevel@tonic-gate $(INS.file) 93*7c478bd9Sstevel@tonic-gate 94*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_CPU_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_CPU_DIR) FRC 95*7c478bd9Sstevel@tonic-gate $(INS.file) 96*7c478bd9Sstevel@tonic-gate 97*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_TOD_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_TOD_DIR) FRC 98*7c478bd9Sstevel@tonic-gate $(INS.file) 99*7c478bd9Sstevel@tonic-gate 100*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_MMU_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_MMU_DIR) FRC 101*7c478bd9Sstevel@tonic-gate $(INS.file) 102*7c478bd9Sstevel@tonic-gate 103*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_DACF_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_DACF_DIR) FRC 104*7c478bd9Sstevel@tonic-gate $(INS.file) 105*7c478bd9Sstevel@tonic-gate 106*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_CRYPTO_DIR)/%: $(OBJS_DIR)/% $(ROOT_PSM_CRYPTO_DIR) FRC 107*7c478bd9Sstevel@tonic-gate $(INS.file) 108*7c478bd9Sstevel@tonic-gate 109*7c478bd9Sstevel@tonic-gate# 110*7c478bd9Sstevel@tonic-gate# 111*7c478bd9Sstevel@tonic-gate# 112*7c478bd9Sstevel@tonic-gate$(USR_PSM_DIR): $(USR_PLAT_DIR) 113*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.sys) 114*7c478bd9Sstevel@tonic-gate 115*7c478bd9Sstevel@tonic-gate$(USR_PSM_INCL_DIR) \ 116*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_DIR) \ 117*7c478bd9Sstevel@tonic-gate$(USR_PSM_SBIN_DIR): $(USR_PSM_DIR) 118*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.bin) 119*7c478bd9Sstevel@tonic-gate 120*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB64_DIR): $(USR_PSM_LIB_DIR) 121*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.bin) 122*7c478bd9Sstevel@tonic-gate 123*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_FS_DIR): $(USR_PSM_LIB_DIR) $(LINKED_LIB_FS_DIRS) 124*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.bin) 125*7c478bd9Sstevel@tonic-gate 126*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_UFS_DIR) \ 127*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_NFS_DIR) \ 128*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_HSFS_DIR): $(USR_PSM_LIB_FS_DIR) 129*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.bin) 130*7c478bd9Sstevel@tonic-gate 131*7c478bd9Sstevel@tonic-gate$(USR_PSM_MOD_DIR): $(USR_PSM_DIR) 132*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.sys) 133*7c478bd9Sstevel@tonic-gate 134*7c478bd9Sstevel@tonic-gate$(USR_PSM_MOD_DIRS_32): $(USR_PSM_MOD_DIR) 135*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.sys) 136*7c478bd9Sstevel@tonic-gate 137*7c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_DIR) \ 138*7c478bd9Sstevel@tonic-gate$(USR_PSM_IVM_DIR): $(USR_PSM_INCL_DIR) 139*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.bin) 140*7c478bd9Sstevel@tonic-gate 141*7c478bd9Sstevel@tonic-gate$(USR_PSM_INCL_DIR)/%: % $(USR_PSM_INCL_DIR) 142*7c478bd9Sstevel@tonic-gate $(INS.file) 143*7c478bd9Sstevel@tonic-gate 144*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR) 145*7c478bd9Sstevel@tonic-gate $(INS.file) 146*7c478bd9Sstevel@tonic-gate 147*7c478bd9Sstevel@tonic-gate$(USR_PSM_SBIN_DIR)/%: % $(USR_PSM_SBIN_DIR) 148*7c478bd9Sstevel@tonic-gate $(INS.file) 149*7c478bd9Sstevel@tonic-gate 150*7c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%: % $(USR_PSM_ISYS_DIR) 151*7c478bd9Sstevel@tonic-gate $(INS.file) 152*7c478bd9Sstevel@tonic-gate 153*7c478bd9Sstevel@tonic-gate$(USR_PSM_IVM_DIR)/%: % $(USR_PSM_IVM_DIR) 154*7c478bd9Sstevel@tonic-gate $(INS.file) 155*7c478bd9Sstevel@tonic-gate 156*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB64_DIR)/%: % $(USR_PSM_LIB64_DIR) 157*7c478bd9Sstevel@tonic-gate $(INS.file) 158*7c478bd9Sstevel@tonic-gate 159*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_UFS_DIR)/%: % $(USR_PSM_LIB_UFS_DIR) 160*7c478bd9Sstevel@tonic-gate $(INS.file) 161*7c478bd9Sstevel@tonic-gate 162*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_NFS_DIR)/%: % $(USR_PSM_LIB_NFS_DIR) 163*7c478bd9Sstevel@tonic-gate $(INS.file) 164*7c478bd9Sstevel@tonic-gate 165*7c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_HSFS_DIR)/%: % $(USR_PSM_LIB_HSFS_DIR) 166*7c478bd9Sstevel@tonic-gate $(INS.file) 167*7c478bd9Sstevel@tonic-gate 168*7c478bd9Sstevel@tonic-gate$(USR_PSM_MOD_DIR)/%: % $(USR_PSM_MOD_DIR) 169*7c478bd9Sstevel@tonic-gate $(INS.file) 170*7c478bd9Sstevel@tonic-gate 171*7c478bd9Sstevel@tonic-gate$(USR_PSM_DRV_DIR)/%: % $(USR_PSM_DRV_DIR) FRC 172*7c478bd9Sstevel@tonic-gate $(INS.file) 173*7c478bd9Sstevel@tonic-gate 174*7c478bd9Sstevel@tonic-gate$(USR_PSM_EXEC_DIR)/%: % $(USR_PSM_EXEC_DIR) FRC 175*7c478bd9Sstevel@tonic-gate $(INS.file) 176*7c478bd9Sstevel@tonic-gate 177*7c478bd9Sstevel@tonic-gate$(USR_PSM_FS_DIR)/%: % $(USR_PSM_FS_DIR) FRC 178*7c478bd9Sstevel@tonic-gate $(INS.file) 179*7c478bd9Sstevel@tonic-gate 180*7c478bd9Sstevel@tonic-gate$(USR_PSM_SCHED_DIR)/%: % $(USR_PSM_SCHED_DIR) FRC 181*7c478bd9Sstevel@tonic-gate $(INS.file) 182*7c478bd9Sstevel@tonic-gate 183*7c478bd9Sstevel@tonic-gate$(USR_PSM_STRMOD_DIR)/%: % $(USR_PSM_STRMOD_DIR) FRC 184*7c478bd9Sstevel@tonic-gate $(INS.file) 185*7c478bd9Sstevel@tonic-gate 186*7c478bd9Sstevel@tonic-gate$(USR_PSM_SYS_DIR)/%: % $(USR_PSM_SYS_DIR) FRC 187*7c478bd9Sstevel@tonic-gate $(INS.file) 188*7c478bd9Sstevel@tonic-gate 189*7c478bd9Sstevel@tonic-gate$(USR_PSM_MISC_DIR)/%: % $(USR_PSM_MISC_DIR) FRC 190*7c478bd9Sstevel@tonic-gate $(INS.file) 191*7c478bd9Sstevel@tonic-gate 192*7c478bd9Sstevel@tonic-gate$(USR_PSM_DACF_DIR)/%: % $(USR_PSM_DACF_DIR) FRC 193*7c478bd9Sstevel@tonic-gate $(INS.file) 194*7c478bd9Sstevel@tonic-gate 195*7c478bd9Sstevel@tonic-gate# 196*7c478bd9Sstevel@tonic-gate# links in /usr/platform 197*7c478bd9Sstevel@tonic-gate# 198*7c478bd9Sstevel@tonic-gate$(LINKED_DIRS): $(USR_PLAT_DIR) 199*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.sys) 200*7c478bd9Sstevel@tonic-gate 201*7c478bd9Sstevel@tonic-gate$(LINKED_LIB_DIRS): $(LINKED_DIRS) 202*7c478bd9Sstevel@tonic-gate -$(INS.dir.root.sys) 203*7c478bd9Sstevel@tonic-gate 204*7c478bd9Sstevel@tonic-gate$(LINKED_ADB_DIRS): $(LINKED_LIB_DIRS) 205*7c478bd9Sstevel@tonic-gate -$(INS.slink6) 206*7c478bd9Sstevel@tonic-gate 207*7c478bd9Sstevel@tonic-gate$(LINKED_CFG_DIRS): $(LINKED_LIB_DIRS) 208*7c478bd9Sstevel@tonic-gate -$(INS.slink6) 209*7c478bd9Sstevel@tonic-gate 210*7c478bd9Sstevel@tonic-gate$(LINKED_LIB_FS_DIRS): $(LINKED_LIB_DIRS) 211*7c478bd9Sstevel@tonic-gate -$(INS.slink6) 212*7c478bd9Sstevel@tonic-gate 213*7c478bd9Sstevel@tonic-gate# 214*7c478bd9Sstevel@tonic-gate# Set ownership on links. 215*7c478bd9Sstevel@tonic-gate# 216*7c478bd9Sstevel@tonic-gateCHOWNLINK= 217*7c478bd9Sstevel@tonic-gate$(CH)CHOWNLINK= ; $(CHOWN) $(OWNER) $@ 218*7c478bd9Sstevel@tonic-gateCHGRPLINK= 219*7c478bd9Sstevel@tonic-gate$(CH)CHGRPLINK= ; $(CHGRP) $(GROUP) $@ 220*7c478bd9Sstevel@tonic-gate 221*7c478bd9Sstevel@tonic-gate# 222*7c478bd9Sstevel@tonic-gate# 223*7c478bd9Sstevel@tonic-gate# 224*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_PROG_LINKS) $(USR_PSM_PROG_LINKS): 225*7c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) ../$(PLATFORM)/$(PROG) $@ $(CHOWNLINK) $(CHGRPLINK) 226*7c478bd9Sstevel@tonic-gate 227*7c478bd9Sstevel@tonic-gate$(ROOT_PSM_SBIN_PROG_LINKS) $(USR_PSM_SBIN_PROG_LINKS): 228*7c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) ../../$(PLATFORM)/sbin/$(PROG) $@ $(CHOWNLINK) $(CHGRPLINK) 229*7c478bd9Sstevel@tonic-gate 230