17c478bdstevel@tonic-gate#
27c478bdstevel@tonic-gate# CDDL HEADER START
37c478bdstevel@tonic-gate#
47c478bdstevel@tonic-gate# The contents of this file are subject to the terms of the
5ae115bcmrj# Common Development and Distribution License (the "License").
6ae115bcmrj# You may not use this file except in compliance with the License.
77c478bdstevel@tonic-gate#
87c478bdstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bdstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bdstevel@tonic-gate# See the License for the specific language governing permissions
117c478bdstevel@tonic-gate# and limitations under the License.
127c478bdstevel@tonic-gate#
137c478bdstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bdstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bdstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bdstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bdstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bdstevel@tonic-gate#
197c478bdstevel@tonic-gate# CDDL HEADER END
207c478bdstevel@tonic-gate#
217c478bdstevel@tonic-gate#
22d24234cJerry Gilliam# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
237c478bdstevel@tonic-gate# Use is subject to license terms.
247c478bdstevel@tonic-gate#
257c478bdstevel@tonic-gate# Makefile.psm.targ, global targets for platform specific modules
267c478bdstevel@tonic-gate
277c478bdstevel@tonic-gate#
287c478bdstevel@tonic-gate#	Installation targets and rules:
297c478bdstevel@tonic-gate#
307c478bdstevel@tonic-gate$(ROOT_PLAT_DIR) $(USR_PLAT_DIR):
3148bc00djmcp	-$(INS.dir)
327c478bdstevel@tonic-gate
337c478bdstevel@tonic-gate$(ROOT_PSM_DIR):		$(ROOT_PLAT_DIR)
3448bc00djmcp	-$(INS.dir)
357c478bdstevel@tonic-gate
36ae115bcmrj$(ROOT_BOOT_PSM_KERN_DIR):
3748bc00djmcp	-$(INS.dir)
38ae115bcmrj
397c478bdstevel@tonic-gate$(ROOT_PSM_LIB_DIR) \
407c478bdstevel@tonic-gate$(ROOT_PSM_SBIN_DIR):		$(ROOT_PSM_DIR)
4148bc00djmcp	-$(INS.dir)
427c478bdstevel@tonic-gate
437c478bdstevel@tonic-gate$(ROOT_PSM_LIB64_DIR):		$(ROOT_PSM_LIB_DIR)
4448bc00djmcp	-$(INS.dir)
457c478bdstevel@tonic-gate
467c478bdstevel@tonic-gate$(ROOT_PSM_MOD_DIR):		$(ROOT_PSM_DIR)
4748bc00djmcp	-$(INS.dir)
487c478bdstevel@tonic-gate
497c478bdstevel@tonic-gate$(ROOT_PSM_MOD_DIRS_32):	$(ROOT_PSM_MOD_DIR)
5048bc00djmcp	-$(INS.dir)
517c478bdstevel@tonic-gate
527c478bdstevel@tonic-gate$(ROOT_PSM_DIR)/%:		% $(ROOT_PSM_DIR)
537c478bdstevel@tonic-gate	$(INS.file)
547c478bdstevel@tonic-gate
557c478bdstevel@tonic-gate$(ROOT_PSM_LIB_DIR)/%:		% $(ROOT_PSM_LIB_DIR)
567c478bdstevel@tonic-gate	$(INS.file)
577c478bdstevel@tonic-gate
587c478bdstevel@tonic-gate$(ROOT_PSM_LIB64_DIR)/%:	% $(ROOT_PSM_LIB64_DIR)
597c478bdstevel@tonic-gate	$(INS.file)
607c478bdstevel@tonic-gate
617c478bdstevel@tonic-gate$(ROOT_PSM_SBIN_DIR)/%:		% $(ROOT_PSM_SBIN_DIR)
627c478bdstevel@tonic-gate	$(INS.file)
637c478bdstevel@tonic-gate
647c478bdstevel@tonic-gate$(ROOT_PSM_KERN_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_KERN_DIR) FRC
657c478bdstevel@tonic-gate	$(INS.file)
667c478bdstevel@tonic-gate
677c478bdstevel@tonic-gate$(ROOT_PSM_DRV_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_DRV_DIR) FRC
687c478bdstevel@tonic-gate	$(INS.file)
697c478bdstevel@tonic-gate
707c478bdstevel@tonic-gate$(ROOT_PSM_EXEC_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_EXEC_DIR) FRC
717c478bdstevel@tonic-gate	$(INS.file)
727c478bdstevel@tonic-gate
737c478bdstevel@tonic-gate$(ROOT_PSM_FS_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_FS_DIR) FRC
747c478bdstevel@tonic-gate	$(INS.file)
757c478bdstevel@tonic-gate
767c478bdstevel@tonic-gate$(ROOT_PSM_SCHED_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_SCHED_DIR) FRC
777c478bdstevel@tonic-gate	$(INS.file)
787c478bdstevel@tonic-gate
797c478bdstevel@tonic-gate$(ROOT_PSM_STRMOD_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_STRMOD_DIR) FRC
807c478bdstevel@tonic-gate	$(INS.file)
817c478bdstevel@tonic-gate
82d24234cJerry Gilliam$(ROOT_PSM_SYS_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_SYS_DIR) FRC
837c478bdstevel@tonic-gate	$(INS.file)
847c478bdstevel@tonic-gate
857c478bdstevel@tonic-gate$(ROOT_PSM_MISC_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_MISC_DIR) FRC
867c478bdstevel@tonic-gate	$(INS.file)
877c478bdstevel@tonic-gate
887c478bdstevel@tonic-gate$(ROOT_PSM_KGSS_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_KGSS_DIR) FRC
897c478bdstevel@tonic-gate	$(INS.file)
907c478bdstevel@tonic-gate
917c478bdstevel@tonic-gate$(ROOT_PSM_MACH_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_MACH_DIR) FRC
927c478bdstevel@tonic-gate	$(INS.file)
937c478bdstevel@tonic-gate
947c478bdstevel@tonic-gate$(ROOT_PSM_CPU_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_CPU_DIR) FRC
957c478bdstevel@tonic-gate	$(INS.file)
967c478bdstevel@tonic-gate
977c478bdstevel@tonic-gate$(ROOT_PSM_TOD_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_TOD_DIR) FRC
987c478bdstevel@tonic-gate	$(INS.file)
997c478bdstevel@tonic-gate
1007c478bdstevel@tonic-gate$(ROOT_PSM_MMU_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_MMU_DIR) FRC
1017c478bdstevel@tonic-gate	$(INS.file)
1027c478bdstevel@tonic-gate
1037c478bdstevel@tonic-gate$(ROOT_PSM_DACF_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_DACF_DIR) FRC
1047c478bdstevel@tonic-gate	$(INS.file)
1057c478bdstevel@tonic-gate
1067c478bdstevel@tonic-gate$(ROOT_PSM_CRYPTO_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_CRYPTO_DIR) FRC
1077c478bdstevel@tonic-gate	$(INS.file)
1087c478bdstevel@tonic-gate
10918a0bfdae$(ROOT_PSM_PCBE_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_PCBE_DIR) FRC
11018a0bfdae	$(INS.file)
11118a0bfdae
1124a75c0cedp$(ROOT_PSM_BRAND_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_BRAND_DIR) FRC
1134a75c0cedp	$(INS.file)
1144a75c0cedp
115d876c67jg$(ROOT_PSM_LIB_FS_DIR):	$(ROOT_PSM_LIB_DIR)
11648bc00djmcp	-$(INS.dir)
117d876c67jg
118d876c67jg$(ROOT_PSM_LIB_UFS_DIR) \
119d876c67jg$(ROOT_PSM_LIB_NFS_DIR) \
120d876c67jg$(ROOT_PSM_LIB_HSFS_DIR) \
121d876c67jg$(ROOT_PSM_LIB_ZFS_DIR):	$(ROOT_PSM_LIB_FS_DIR)
12248bc00djmcp	$(INS.dir)
123d876c67jg
124d876c67jg$(ROOT_PSM_LIB_UFS_DIR)/%:	% $(ROOT_PSM_LIB_UFS_DIR)
125d876c67jg	$(INS.file)
126d876c67jg
127d876c67jg$(ROOT_PSM_LIB_NFS_DIR)/%:	% $(ROOT_PSM_LIB_NFS_DIR)
128d876c67jg	$(INS.file)
129d876c67jg
130d876c67jg$(ROOT_PSM_LIB_HSFS_DIR)/%:	% $(ROOT_PSM_LIB_HSFS_DIR)
131d876c67jg	$(INS.file)
132d876c67jg
133d876c67jg$(ROOT_PSM_LIB_ZFS_DIR)/%:	% $(ROOT_PSM_LIB_ZFS_DIR)
134d876c67jg	$(INS.file)
135d876c67jg
1367c478bdstevel@tonic-gate#
1377c478bdstevel@tonic-gate#
1387c478bdstevel@tonic-gate#
1397c478bdstevel@tonic-gate$(USR_PSM_DIR):			$(USR_PLAT_DIR)
14048bc00djmcp	-$(INS.dir)
1417c478bdstevel@tonic-gate
1427c478bdstevel@tonic-gate$(USR_PSM_INCL_DIR) \
1437c478bdstevel@tonic-gate$(USR_PSM_LIB_DIR) \
1447c478bdstevel@tonic-gate$(USR_PSM_SBIN_DIR):		$(USR_PSM_DIR)
14548bc00djmcp	-$(INS.dir)
1467c478bdstevel@tonic-gate
1477c478bdstevel@tonic-gate$(USR_PSM_LIB64_DIR):	$(USR_PSM_LIB_DIR)
14848bc00djmcp	-$(INS.dir)
1497c478bdstevel@tonic-gate
1507c478bdstevel@tonic-gate$(USR_PSM_LIB_FS_DIR):	$(USR_PSM_LIB_DIR) $(LINKED_LIB_FS_DIRS)
15148bc00djmcp	-$(INS.dir)
1527c478bdstevel@tonic-gate
1537c478bdstevel@tonic-gate$(USR_PSM_LIB_UFS_DIR) \
1547c478bdstevel@tonic-gate$(USR_PSM_LIB_NFS_DIR) \
155986fd29setje$(USR_PSM_LIB_HSFS_DIR) \
156986fd29setje$(USR_PSM_LIB_ZFS_DIR):	$(USR_PSM_LIB_FS_DIR)
15748bc00djmcp	-$(INS.dir)
1587c478bdstevel@tonic-gate
1597c478bdstevel@tonic-gate$(USR_PSM_MOD_DIR):		$(USR_PSM_DIR)
16048bc00djmcp	-$(INS.dir)
1617c478bdstevel@tonic-gate
1627c478bdstevel@tonic-gate$(USR_PSM_MOD_DIRS_32):		$(USR_PSM_MOD_DIR)
16348bc00djmcp	-$(INS.dir)
1647c478bdstevel@tonic-gate
1657c478bdstevel@tonic-gate$(USR_PSM_ISYS_DIR) \
1667c478bdstevel@tonic-gate$(USR_PSM_IVM_DIR):		$(USR_PSM_INCL_DIR)
16748bc00djmcp	-$(INS.dir)
1687c478bdstevel@tonic-gate
1697c478bdstevel@tonic-gate$(USR_PSM_INCL_DIR)/%:		% $(USR_PSM_INCL_DIR)
1707c478bdstevel@tonic-gate	$(INS.file)
1717c478bdstevel@tonic-gate
1727c478bdstevel@tonic-gate$(USR_PSM_LIB_DIR)/%:		% $(USR_PSM_LIB_DIR)
1737c478bdstevel@tonic-gate	$(INS.file)
1747c478bdstevel@tonic-gate
1757c478bdstevel@tonic-gate$(USR_PSM_SBIN_DIR)/%:		% $(USR_PSM_SBIN_DIR)
1767c478bdstevel@tonic-gate	$(INS.file)
1777c478bdstevel@tonic-gate
1787c478bdstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%:		% $(USR_PSM_ISYS_DIR)
1797c478bdstevel@tonic-gate	$(INS.file)
1807c478bdstevel@tonic-gate
1817c478bdstevel@tonic-gate$(USR_PSM_IVM_DIR)/%:		% $(USR_PSM_IVM_DIR)
1827c478bdstevel@tonic-gate	$(INS.file)
1837c478bdstevel@tonic-gate
1847c478bdstevel@tonic-gate$(USR_PSM_LIB64_DIR)/%:		% $(USR_PSM_LIB64_DIR)
1857c478bdstevel@tonic-gate	$(INS.file)
1867c478bdstevel@tonic-gate
1877c478bdstevel@tonic-gate$(USR_PSM_LIB_UFS_DIR)/%:	% $(USR_PSM_LIB_UFS_DIR)
18824fe0b3jmcp	$(RM) -r $@ ; $(SYMLINK) $(BOOTBLK_LINK) $@
1897c478bdstevel@tonic-gate
1907c478bdstevel@tonic-gate$(USR_PSM_LIB_NFS_DIR)/%:	% $(USR_PSM_LIB_NFS_DIR)
1917c478bdstevel@tonic-gate	$(INS.file)
1927c478bdstevel@tonic-gate
1937c478bdstevel@tonic-gate$(USR_PSM_LIB_HSFS_DIR)/%:	% $(USR_PSM_LIB_HSFS_DIR)
19424fe0b3jmcp	$(RM) -r $@ ; $(SYMLINK) $(BOOTBLK_LINK) $@
1957c478bdstevel@tonic-gate
196986fd29setje$(USR_PSM_LIB_ZFS_DIR)/%:	% $(USR_PSM_LIB_ZFS_DIR)
19724fe0b3jmcp	$(RM) -r $@ ; $(SYMLINK) $(BOOTBLK_LINK) $@
198986fd29setje
1997c478bdstevel@tonic-gate$(USR_PSM_MOD_DIR)/%:		% $(USR_PSM_MOD_DIR)
2007c478bdstevel@tonic-gate	$(INS.file)
2017c478bdstevel@tonic-gate
2027c478bdstevel@tonic-gate$(USR_PSM_DRV_DIR)/%:		% $(USR_PSM_DRV_DIR) FRC
2037c478bdstevel@tonic-gate	$(INS.file)
2047c478bdstevel@tonic-gate
2057c478bdstevel@tonic-gate$(USR_PSM_EXEC_DIR)/%:		% $(USR_PSM_EXEC_DIR) FRC
2067c478bdstevel@tonic-gate	$(INS.file)
2077c478bdstevel@tonic-gate
2087c478bdstevel@tonic-gate$(USR_PSM_FS_DIR)/%:		% $(USR_PSM_FS_DIR) FRC
2097c478bdstevel@tonic-gate	$(INS.file)
2107c478bdstevel@tonic-gate
2117c478bdstevel@tonic-gate$(USR_PSM_SCHED_DIR)/%:		% $(USR_PSM_SCHED_DIR) FRC
2127c478bdstevel@tonic-gate	$(INS.file)
2137c478bdstevel@tonic-gate
2147c478bdstevel@tonic-gate$(USR_PSM_STRMOD_DIR)/%:	% $(USR_PSM_STRMOD_DIR) FRC
2157c478bdstevel@tonic-gate	$(INS.file)
2167c478bdstevel@tonic-gate
2177c478bdstevel@tonic-gate$(USR_PSM_SYS_DIR)/%:		% $(USR_PSM_SYS_DIR) FRC
2187c478bdstevel@tonic-gate	$(INS.file)
2197c478bdstevel@tonic-gate
2207c478bdstevel@tonic-gate$(USR_PSM_MISC_DIR)/%:		% $(USR_PSM_MISC_DIR) FRC
2217c478bdstevel@tonic-gate	$(INS.file)
2227c478bdstevel@tonic-gate
2237c478bdstevel@tonic-gate$(USR_PSM_DACF_DIR)/%:		% $(USR_PSM_DACF_DIR) FRC
2247c478bdstevel@tonic-gate	$(INS.file)
2257c478bdstevel@tonic-gate
2267c478bdstevel@tonic-gate#
2277c478bdstevel@tonic-gate# links in /usr/platform
2287c478bdstevel@tonic-gate#
2297c478bdstevel@tonic-gate$(LINKED_DIRS):		$(USR_PLAT_DIR)
23048bc00djmcp	-$(INS.dir)
2317c478bdstevel@tonic-gate
2327c478bdstevel@tonic-gate$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
23348bc00djmcp	-$(INS.dir)
2347c478bdstevel@tonic-gate
2357c478bdstevel@tonic-gate$(LINKED_ADB_DIRS):	$(LINKED_LIB_DIRS)
2367c478bdstevel@tonic-gate	-$(INS.slink6)
2377c478bdstevel@tonic-gate
2387c478bdstevel@tonic-gate$(LINKED_CFG_DIRS):	$(LINKED_LIB_DIRS)
2397c478bdstevel@tonic-gate	-$(INS.slink6)
2407c478bdstevel@tonic-gate
2417c478bdstevel@tonic-gate$(LINKED_LIB_FS_DIRS):	$(LINKED_LIB_DIRS)
2427c478bdstevel@tonic-gate	-$(INS.slink6)
2437c478bdstevel@tonic-gate
2447c478bdstevel@tonic-gate#
2457c478bdstevel@tonic-gate#
2467c478bdstevel@tonic-gate#
2477c478bdstevel@tonic-gate$(ROOT_PSM_PROG_LINKS) $(USR_PSM_PROG_LINKS):
24824fe0b3jmcp	$(RM) $@; $(SYMLINK) ../$(PLATFORM)/$(PROG) $@
2497c478bdstevel@tonic-gate
2507c478bdstevel@tonic-gate$(ROOT_PSM_SBIN_PROG_LINKS) $(USR_PSM_SBIN_PROG_LINKS):
25124fe0b3jmcp	$(RM) $@; $(SYMLINK) ../../$(PLATFORM)/sbin/$(PROG) $@
2527c478bdstevel@tonic-gate
253