xref: /titanic_50/usr/src/Makefile.psm.targ (revision 4a75c0c1ad1b9f32a7a423e1f23a8d23ac800de0)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5ae115bc7Smrj# Common Development and Distribution License (the "License").
6ae115bc7Smrj# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22ae115bc7Smrj# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate# Makefile.psm.targ, global targets for platform specific modules
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate#	Installation targets and rules:
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate$(ROOT_PLAT_DIR) $(USR_PLAT_DIR):
337c478bd9Sstevel@tonic-gate	-$(INS.dir.root.sys)
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate$(ROOT_PSM_DIR):		$(ROOT_PLAT_DIR)
367c478bd9Sstevel@tonic-gate	-$(INS.dir.root.sys)
377c478bd9Sstevel@tonic-gate
38ae115bc7Smrj$(ROOT_BOOT_PSM_KERN_DIR):
39ae115bc7Smrj	-$(INS.dir.root.sys)
40ae115bc7Smrj
417c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB_DIR) \
427c478bd9Sstevel@tonic-gate$(ROOT_PSM_SBIN_DIR):		$(ROOT_PSM_DIR)
437c478bd9Sstevel@tonic-gate	-$(INS.dir.root.sys)
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB64_DIR):		$(ROOT_PSM_LIB_DIR)
467c478bd9Sstevel@tonic-gate	-$(INS.dir.root.bin)
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gate$(ROOT_PSM_MOD_DIR):		$(ROOT_PSM_DIR)
497c478bd9Sstevel@tonic-gate	-$(INS.dir.root.sys)
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gate$(ROOT_PSM_MOD_DIRS_32):	$(ROOT_PSM_MOD_DIR)
527c478bd9Sstevel@tonic-gate	-$(INS.dir.root.sys)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gate$(ROOT_PSM_DIR)/%:		% $(ROOT_PSM_DIR)
557c478bd9Sstevel@tonic-gate	$(INS.file)
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB_DIR)/%:		% $(ROOT_PSM_LIB_DIR)
587c478bd9Sstevel@tonic-gate	$(INS.file)
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB64_DIR)/%:	% $(ROOT_PSM_LIB64_DIR)
617c478bd9Sstevel@tonic-gate	$(INS.file)
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gate$(ROOT_PSM_SBIN_DIR)/%:		% $(ROOT_PSM_SBIN_DIR)
647c478bd9Sstevel@tonic-gate	$(INS.file)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gate$(ROOT_PSM_KERN_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_KERN_DIR) FRC
677c478bd9Sstevel@tonic-gate	$(INS.file)
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gate$(ROOT_PSM_DRV_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_DRV_DIR) FRC
707c478bd9Sstevel@tonic-gate	$(INS.file)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gate$(ROOT_PSM_EXEC_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_EXEC_DIR) FRC
737c478bd9Sstevel@tonic-gate	$(INS.file)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate$(ROOT_PSM_FS_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_FS_DIR) FRC
767c478bd9Sstevel@tonic-gate	$(INS.file)
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gate$(ROOT_PSM_SCHED_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_SCHED_DIR) FRC
797c478bd9Sstevel@tonic-gate	$(INS.file)
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gate$(ROOT_PSM_STRMOD_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_STRMOD_DIR) FRC
827c478bd9Sstevel@tonic-gate	$(INS.file)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gate$(ROOT_PSM_SYS_DIR)/%:		$(OBJS_DIR)% $(ROOT_PSM_SYS_DIR) FRC
857c478bd9Sstevel@tonic-gate	$(INS.file)
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gate$(ROOT_PSM_MISC_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_MISC_DIR) FRC
887c478bd9Sstevel@tonic-gate	$(INS.file)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate$(ROOT_PSM_KGSS_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_KGSS_DIR) FRC
917c478bd9Sstevel@tonic-gate	$(INS.file)
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gate$(ROOT_PSM_MACH_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_MACH_DIR) FRC
947c478bd9Sstevel@tonic-gate	$(INS.file)
957c478bd9Sstevel@tonic-gate
967c478bd9Sstevel@tonic-gate$(ROOT_PSM_CPU_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_CPU_DIR) FRC
977c478bd9Sstevel@tonic-gate	$(INS.file)
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gate$(ROOT_PSM_TOD_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_TOD_DIR) FRC
1007c478bd9Sstevel@tonic-gate	$(INS.file)
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gate$(ROOT_PSM_MMU_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_MMU_DIR) FRC
1037c478bd9Sstevel@tonic-gate	$(INS.file)
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gate$(ROOT_PSM_DACF_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_DACF_DIR) FRC
1067c478bd9Sstevel@tonic-gate	$(INS.file)
1077c478bd9Sstevel@tonic-gate
1087c478bd9Sstevel@tonic-gate$(ROOT_PSM_CRYPTO_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_CRYPTO_DIR) FRC
1097c478bd9Sstevel@tonic-gate	$(INS.file)
1107c478bd9Sstevel@tonic-gate
11118a0bfdeSae112802$(ROOT_PSM_PCBE_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_PCBE_DIR) FRC
11218a0bfdeSae112802	$(INS.file)
11318a0bfdeSae112802
114*4a75c0c1Sedp$(ROOT_PSM_BRAND_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_BRAND_DIR) FRC
115*4a75c0c1Sedp	$(INS.file)
116*4a75c0c1Sedp
1177c478bd9Sstevel@tonic-gate#
1187c478bd9Sstevel@tonic-gate#
1197c478bd9Sstevel@tonic-gate#
1207c478bd9Sstevel@tonic-gate$(USR_PSM_DIR):			$(USR_PLAT_DIR)
1217c478bd9Sstevel@tonic-gate	-$(INS.dir.root.sys)
1227c478bd9Sstevel@tonic-gate
1237c478bd9Sstevel@tonic-gate$(USR_PSM_INCL_DIR) \
1247c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_DIR) \
1257c478bd9Sstevel@tonic-gate$(USR_PSM_SBIN_DIR):		$(USR_PSM_DIR)
1267c478bd9Sstevel@tonic-gate	-$(INS.dir.root.bin)
1277c478bd9Sstevel@tonic-gate
1287c478bd9Sstevel@tonic-gate$(USR_PSM_LIB64_DIR):	$(USR_PSM_LIB_DIR)
1297c478bd9Sstevel@tonic-gate	-$(INS.dir.root.bin)
1307c478bd9Sstevel@tonic-gate
1317c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_FS_DIR):	$(USR_PSM_LIB_DIR) $(LINKED_LIB_FS_DIRS)
1327c478bd9Sstevel@tonic-gate	-$(INS.dir.root.bin)
1337c478bd9Sstevel@tonic-gate
1347c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_UFS_DIR) \
1357c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_NFS_DIR) \
1367c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_HSFS_DIR):	$(USR_PSM_LIB_FS_DIR)
1377c478bd9Sstevel@tonic-gate	-$(INS.dir.root.bin)
1387c478bd9Sstevel@tonic-gate
1397c478bd9Sstevel@tonic-gate$(USR_PSM_MOD_DIR):		$(USR_PSM_DIR)
1407c478bd9Sstevel@tonic-gate	-$(INS.dir.root.sys)
1417c478bd9Sstevel@tonic-gate
1427c478bd9Sstevel@tonic-gate$(USR_PSM_MOD_DIRS_32):		$(USR_PSM_MOD_DIR)
1437c478bd9Sstevel@tonic-gate	-$(INS.dir.root.sys)
1447c478bd9Sstevel@tonic-gate
1457c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_DIR) \
1467c478bd9Sstevel@tonic-gate$(USR_PSM_IVM_DIR):		$(USR_PSM_INCL_DIR)
1477c478bd9Sstevel@tonic-gate	-$(INS.dir.root.bin)
1487c478bd9Sstevel@tonic-gate
1497c478bd9Sstevel@tonic-gate$(USR_PSM_INCL_DIR)/%:		% $(USR_PSM_INCL_DIR)
1507c478bd9Sstevel@tonic-gate	$(INS.file)
1517c478bd9Sstevel@tonic-gate
1527c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_DIR)/%:		% $(USR_PSM_LIB_DIR)
1537c478bd9Sstevel@tonic-gate	$(INS.file)
1547c478bd9Sstevel@tonic-gate
1557c478bd9Sstevel@tonic-gate$(USR_PSM_SBIN_DIR)/%:		% $(USR_PSM_SBIN_DIR)
1567c478bd9Sstevel@tonic-gate	$(INS.file)
1577c478bd9Sstevel@tonic-gate
1587c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%:		% $(USR_PSM_ISYS_DIR)
1597c478bd9Sstevel@tonic-gate	$(INS.file)
1607c478bd9Sstevel@tonic-gate
1617c478bd9Sstevel@tonic-gate$(USR_PSM_IVM_DIR)/%:		% $(USR_PSM_IVM_DIR)
1627c478bd9Sstevel@tonic-gate	$(INS.file)
1637c478bd9Sstevel@tonic-gate
1647c478bd9Sstevel@tonic-gate$(USR_PSM_LIB64_DIR)/%:		% $(USR_PSM_LIB64_DIR)
1657c478bd9Sstevel@tonic-gate	$(INS.file)
1667c478bd9Sstevel@tonic-gate
1677c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_UFS_DIR)/%:	% $(USR_PSM_LIB_UFS_DIR)
1687c478bd9Sstevel@tonic-gate	$(INS.file)
1697c478bd9Sstevel@tonic-gate
1707c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_NFS_DIR)/%:	% $(USR_PSM_LIB_NFS_DIR)
1717c478bd9Sstevel@tonic-gate	$(INS.file)
1727c478bd9Sstevel@tonic-gate
1737c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_HSFS_DIR)/%:	% $(USR_PSM_LIB_HSFS_DIR)
1747c478bd9Sstevel@tonic-gate	$(INS.file)
1757c478bd9Sstevel@tonic-gate
1767c478bd9Sstevel@tonic-gate$(USR_PSM_MOD_DIR)/%:		% $(USR_PSM_MOD_DIR)
1777c478bd9Sstevel@tonic-gate	$(INS.file)
1787c478bd9Sstevel@tonic-gate
1797c478bd9Sstevel@tonic-gate$(USR_PSM_DRV_DIR)/%:		% $(USR_PSM_DRV_DIR) FRC
1807c478bd9Sstevel@tonic-gate	$(INS.file)
1817c478bd9Sstevel@tonic-gate
1827c478bd9Sstevel@tonic-gate$(USR_PSM_EXEC_DIR)/%:		% $(USR_PSM_EXEC_DIR) FRC
1837c478bd9Sstevel@tonic-gate	$(INS.file)
1847c478bd9Sstevel@tonic-gate
1857c478bd9Sstevel@tonic-gate$(USR_PSM_FS_DIR)/%:		% $(USR_PSM_FS_DIR) FRC
1867c478bd9Sstevel@tonic-gate	$(INS.file)
1877c478bd9Sstevel@tonic-gate
1887c478bd9Sstevel@tonic-gate$(USR_PSM_SCHED_DIR)/%:		% $(USR_PSM_SCHED_DIR) FRC
1897c478bd9Sstevel@tonic-gate	$(INS.file)
1907c478bd9Sstevel@tonic-gate
1917c478bd9Sstevel@tonic-gate$(USR_PSM_STRMOD_DIR)/%:	% $(USR_PSM_STRMOD_DIR) FRC
1927c478bd9Sstevel@tonic-gate	$(INS.file)
1937c478bd9Sstevel@tonic-gate
1947c478bd9Sstevel@tonic-gate$(USR_PSM_SYS_DIR)/%:		% $(USR_PSM_SYS_DIR) FRC
1957c478bd9Sstevel@tonic-gate	$(INS.file)
1967c478bd9Sstevel@tonic-gate
1977c478bd9Sstevel@tonic-gate$(USR_PSM_MISC_DIR)/%:		% $(USR_PSM_MISC_DIR) FRC
1987c478bd9Sstevel@tonic-gate	$(INS.file)
1997c478bd9Sstevel@tonic-gate
2007c478bd9Sstevel@tonic-gate$(USR_PSM_DACF_DIR)/%:		% $(USR_PSM_DACF_DIR) FRC
2017c478bd9Sstevel@tonic-gate	$(INS.file)
2027c478bd9Sstevel@tonic-gate
2037c478bd9Sstevel@tonic-gate#
2047c478bd9Sstevel@tonic-gate# links in /usr/platform
2057c478bd9Sstevel@tonic-gate#
2067c478bd9Sstevel@tonic-gate$(LINKED_DIRS):		$(USR_PLAT_DIR)
2077c478bd9Sstevel@tonic-gate	-$(INS.dir.root.sys)
2087c478bd9Sstevel@tonic-gate
2097c478bd9Sstevel@tonic-gate$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
2107c478bd9Sstevel@tonic-gate	-$(INS.dir.root.sys)
2117c478bd9Sstevel@tonic-gate
2127c478bd9Sstevel@tonic-gate$(LINKED_ADB_DIRS):	$(LINKED_LIB_DIRS)
2137c478bd9Sstevel@tonic-gate	-$(INS.slink6)
2147c478bd9Sstevel@tonic-gate
2157c478bd9Sstevel@tonic-gate$(LINKED_CFG_DIRS):	$(LINKED_LIB_DIRS)
2167c478bd9Sstevel@tonic-gate	-$(INS.slink6)
2177c478bd9Sstevel@tonic-gate
2187c478bd9Sstevel@tonic-gate$(LINKED_LIB_FS_DIRS):	$(LINKED_LIB_DIRS)
2197c478bd9Sstevel@tonic-gate	-$(INS.slink6)
2207c478bd9Sstevel@tonic-gate
2217c478bd9Sstevel@tonic-gate#
2227c478bd9Sstevel@tonic-gate#       Set ownership on links.
2237c478bd9Sstevel@tonic-gate#
2247c478bd9Sstevel@tonic-gateCHOWNLINK=
2257c478bd9Sstevel@tonic-gate$(CH)CHOWNLINK= ; $(CHOWN) $(OWNER) $@
2267c478bd9Sstevel@tonic-gateCHGRPLINK=
2277c478bd9Sstevel@tonic-gate$(CH)CHGRPLINK= ; $(CHGRP) $(GROUP) $@
2287c478bd9Sstevel@tonic-gate
2297c478bd9Sstevel@tonic-gate#
2307c478bd9Sstevel@tonic-gate#
2317c478bd9Sstevel@tonic-gate#
2327c478bd9Sstevel@tonic-gate$(ROOT_PSM_PROG_LINKS) $(USR_PSM_PROG_LINKS):
2337c478bd9Sstevel@tonic-gate	$(RM) $@; $(SYMLINK) ../$(PLATFORM)/$(PROG) $@ $(CHOWNLINK) $(CHGRPLINK)
2347c478bd9Sstevel@tonic-gate
2357c478bd9Sstevel@tonic-gate$(ROOT_PSM_SBIN_PROG_LINKS) $(USR_PSM_SBIN_PROG_LINKS):
2367c478bd9Sstevel@tonic-gate	$(RM) $@; $(SYMLINK) ../../$(PLATFORM)/sbin/$(PROG) $@ $(CHOWNLINK) $(CHGRPLINK)
2377c478bd9Sstevel@tonic-gate
238