xref: /titanic_50/usr/src/Makefile.psm.targ (revision d24234c24aeaca4ca56ee3ac2794507968f274c4)
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#
22*d24234c2SJerry Gilliam# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# Makefile.psm.targ, global targets for platform specific modules
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate#	Installation targets and rules:
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate$(ROOT_PLAT_DIR) $(USR_PLAT_DIR):
3148bc00d6Sjmcp	-$(INS.dir)
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate$(ROOT_PSM_DIR):		$(ROOT_PLAT_DIR)
3448bc00d6Sjmcp	-$(INS.dir)
357c478bd9Sstevel@tonic-gate
36ae115bc7Smrj$(ROOT_BOOT_PSM_KERN_DIR):
3748bc00d6Sjmcp	-$(INS.dir)
38ae115bc7Smrj
397c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB_DIR) \
407c478bd9Sstevel@tonic-gate$(ROOT_PSM_SBIN_DIR):		$(ROOT_PSM_DIR)
4148bc00d6Sjmcp	-$(INS.dir)
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB64_DIR):		$(ROOT_PSM_LIB_DIR)
4448bc00d6Sjmcp	-$(INS.dir)
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate$(ROOT_PSM_MOD_DIR):		$(ROOT_PSM_DIR)
4748bc00d6Sjmcp	-$(INS.dir)
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate$(ROOT_PSM_MOD_DIRS_32):	$(ROOT_PSM_MOD_DIR)
5048bc00d6Sjmcp	-$(INS.dir)
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate$(ROOT_PSM_DIR)/%:		% $(ROOT_PSM_DIR)
537c478bd9Sstevel@tonic-gate	$(INS.file)
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB_DIR)/%:		% $(ROOT_PSM_LIB_DIR)
567c478bd9Sstevel@tonic-gate	$(INS.file)
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gate$(ROOT_PSM_LIB64_DIR)/%:	% $(ROOT_PSM_LIB64_DIR)
597c478bd9Sstevel@tonic-gate	$(INS.file)
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gate$(ROOT_PSM_SBIN_DIR)/%:		% $(ROOT_PSM_SBIN_DIR)
627c478bd9Sstevel@tonic-gate	$(INS.file)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate$(ROOT_PSM_KERN_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_KERN_DIR) FRC
657c478bd9Sstevel@tonic-gate	$(INS.file)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gate$(ROOT_PSM_DRV_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_DRV_DIR) FRC
687c478bd9Sstevel@tonic-gate	$(INS.file)
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gate$(ROOT_PSM_EXEC_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_EXEC_DIR) FRC
717c478bd9Sstevel@tonic-gate	$(INS.file)
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate$(ROOT_PSM_FS_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_FS_DIR) FRC
747c478bd9Sstevel@tonic-gate	$(INS.file)
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gate$(ROOT_PSM_SCHED_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_SCHED_DIR) FRC
777c478bd9Sstevel@tonic-gate	$(INS.file)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate$(ROOT_PSM_STRMOD_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_STRMOD_DIR) FRC
807c478bd9Sstevel@tonic-gate	$(INS.file)
817c478bd9Sstevel@tonic-gate
82*d24234c2SJerry Gilliam$(ROOT_PSM_SYS_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_SYS_DIR) FRC
837c478bd9Sstevel@tonic-gate	$(INS.file)
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate$(ROOT_PSM_MISC_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_MISC_DIR) FRC
867c478bd9Sstevel@tonic-gate	$(INS.file)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gate$(ROOT_PSM_KGSS_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_KGSS_DIR) FRC
897c478bd9Sstevel@tonic-gate	$(INS.file)
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gate$(ROOT_PSM_MACH_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_MACH_DIR) FRC
927c478bd9Sstevel@tonic-gate	$(INS.file)
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gate$(ROOT_PSM_CPU_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_CPU_DIR) FRC
957c478bd9Sstevel@tonic-gate	$(INS.file)
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gate$(ROOT_PSM_TOD_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_TOD_DIR) FRC
987c478bd9Sstevel@tonic-gate	$(INS.file)
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gate$(ROOT_PSM_MMU_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_MMU_DIR) FRC
1017c478bd9Sstevel@tonic-gate	$(INS.file)
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gate$(ROOT_PSM_DACF_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_DACF_DIR) FRC
1047c478bd9Sstevel@tonic-gate	$(INS.file)
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gate$(ROOT_PSM_CRYPTO_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_CRYPTO_DIR) FRC
1077c478bd9Sstevel@tonic-gate	$(INS.file)
1087c478bd9Sstevel@tonic-gate
10918a0bfdeSae112802$(ROOT_PSM_PCBE_DIR)/%:		$(OBJS_DIR)/% $(ROOT_PSM_PCBE_DIR) FRC
11018a0bfdeSae112802	$(INS.file)
11118a0bfdeSae112802
1124a75c0c1Sedp$(ROOT_PSM_BRAND_DIR)/%:	$(OBJS_DIR)/% $(ROOT_PSM_BRAND_DIR) FRC
1134a75c0c1Sedp	$(INS.file)
1144a75c0c1Sedp
115d876c67dSjg$(ROOT_PSM_LIB_FS_DIR):	$(ROOT_PSM_LIB_DIR)
11648bc00d6Sjmcp	-$(INS.dir)
117d876c67dSjg
118d876c67dSjg$(ROOT_PSM_LIB_UFS_DIR) \
119d876c67dSjg$(ROOT_PSM_LIB_NFS_DIR) \
120d876c67dSjg$(ROOT_PSM_LIB_HSFS_DIR) \
121d876c67dSjg$(ROOT_PSM_LIB_ZFS_DIR):	$(ROOT_PSM_LIB_FS_DIR)
12248bc00d6Sjmcp	$(INS.dir)
123d876c67dSjg
124d876c67dSjg$(ROOT_PSM_LIB_UFS_DIR)/%:	% $(ROOT_PSM_LIB_UFS_DIR)
125d876c67dSjg	$(INS.file)
126d876c67dSjg
127d876c67dSjg$(ROOT_PSM_LIB_NFS_DIR)/%:	% $(ROOT_PSM_LIB_NFS_DIR)
128d876c67dSjg	$(INS.file)
129d876c67dSjg
130d876c67dSjg$(ROOT_PSM_LIB_HSFS_DIR)/%:	% $(ROOT_PSM_LIB_HSFS_DIR)
131d876c67dSjg	$(INS.file)
132d876c67dSjg
133d876c67dSjg$(ROOT_PSM_LIB_ZFS_DIR)/%:	% $(ROOT_PSM_LIB_ZFS_DIR)
134d876c67dSjg	$(INS.file)
135d876c67dSjg
1367c478bd9Sstevel@tonic-gate#
1377c478bd9Sstevel@tonic-gate#
1387c478bd9Sstevel@tonic-gate#
1397c478bd9Sstevel@tonic-gate$(USR_PSM_DIR):			$(USR_PLAT_DIR)
14048bc00d6Sjmcp	-$(INS.dir)
1417c478bd9Sstevel@tonic-gate
1427c478bd9Sstevel@tonic-gate$(USR_PSM_INCL_DIR) \
1437c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_DIR) \
1447c478bd9Sstevel@tonic-gate$(USR_PSM_SBIN_DIR):		$(USR_PSM_DIR)
14548bc00d6Sjmcp	-$(INS.dir)
1467c478bd9Sstevel@tonic-gate
1477c478bd9Sstevel@tonic-gate$(USR_PSM_LIB64_DIR):	$(USR_PSM_LIB_DIR)
14848bc00d6Sjmcp	-$(INS.dir)
1497c478bd9Sstevel@tonic-gate
1507c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_FS_DIR):	$(USR_PSM_LIB_DIR) $(LINKED_LIB_FS_DIRS)
15148bc00d6Sjmcp	-$(INS.dir)
1527c478bd9Sstevel@tonic-gate
1537c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_UFS_DIR) \
1547c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_NFS_DIR) \
155986fd29aSsetje$(USR_PSM_LIB_HSFS_DIR) \
156986fd29aSsetje$(USR_PSM_LIB_ZFS_DIR):	$(USR_PSM_LIB_FS_DIR)
15748bc00d6Sjmcp	-$(INS.dir)
1587c478bd9Sstevel@tonic-gate
1597c478bd9Sstevel@tonic-gate$(USR_PSM_MOD_DIR):		$(USR_PSM_DIR)
16048bc00d6Sjmcp	-$(INS.dir)
1617c478bd9Sstevel@tonic-gate
1627c478bd9Sstevel@tonic-gate$(USR_PSM_MOD_DIRS_32):		$(USR_PSM_MOD_DIR)
16348bc00d6Sjmcp	-$(INS.dir)
1647c478bd9Sstevel@tonic-gate
1657c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_DIR) \
1667c478bd9Sstevel@tonic-gate$(USR_PSM_IVM_DIR):		$(USR_PSM_INCL_DIR)
16748bc00d6Sjmcp	-$(INS.dir)
1687c478bd9Sstevel@tonic-gate
1697c478bd9Sstevel@tonic-gate$(USR_PSM_INCL_DIR)/%:		% $(USR_PSM_INCL_DIR)
1707c478bd9Sstevel@tonic-gate	$(INS.file)
1717c478bd9Sstevel@tonic-gate
1727c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_DIR)/%:		% $(USR_PSM_LIB_DIR)
1737c478bd9Sstevel@tonic-gate	$(INS.file)
1747c478bd9Sstevel@tonic-gate
1757c478bd9Sstevel@tonic-gate$(USR_PSM_SBIN_DIR)/%:		% $(USR_PSM_SBIN_DIR)
1767c478bd9Sstevel@tonic-gate	$(INS.file)
1777c478bd9Sstevel@tonic-gate
1787c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%:		% $(USR_PSM_ISYS_DIR)
1797c478bd9Sstevel@tonic-gate	$(INS.file)
1807c478bd9Sstevel@tonic-gate
1817c478bd9Sstevel@tonic-gate$(USR_PSM_IVM_DIR)/%:		% $(USR_PSM_IVM_DIR)
1827c478bd9Sstevel@tonic-gate	$(INS.file)
1837c478bd9Sstevel@tonic-gate
1847c478bd9Sstevel@tonic-gate$(USR_PSM_LIB64_DIR)/%:		% $(USR_PSM_LIB64_DIR)
1857c478bd9Sstevel@tonic-gate	$(INS.file)
1867c478bd9Sstevel@tonic-gate
1877c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_UFS_DIR)/%:	% $(USR_PSM_LIB_UFS_DIR)
18824fe0b3bSjmcp	$(RM) -r $@ ; $(SYMLINK) $(BOOTBLK_LINK) $@
1897c478bd9Sstevel@tonic-gate
1907c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_NFS_DIR)/%:	% $(USR_PSM_LIB_NFS_DIR)
1917c478bd9Sstevel@tonic-gate	$(INS.file)
1927c478bd9Sstevel@tonic-gate
1937c478bd9Sstevel@tonic-gate$(USR_PSM_LIB_HSFS_DIR)/%:	% $(USR_PSM_LIB_HSFS_DIR)
19424fe0b3bSjmcp	$(RM) -r $@ ; $(SYMLINK) $(BOOTBLK_LINK) $@
1957c478bd9Sstevel@tonic-gate
196986fd29aSsetje$(USR_PSM_LIB_ZFS_DIR)/%:	% $(USR_PSM_LIB_ZFS_DIR)
19724fe0b3bSjmcp	$(RM) -r $@ ; $(SYMLINK) $(BOOTBLK_LINK) $@
198986fd29aSsetje
1997c478bd9Sstevel@tonic-gate$(USR_PSM_MOD_DIR)/%:		% $(USR_PSM_MOD_DIR)
2007c478bd9Sstevel@tonic-gate	$(INS.file)
2017c478bd9Sstevel@tonic-gate
2027c478bd9Sstevel@tonic-gate$(USR_PSM_DRV_DIR)/%:		% $(USR_PSM_DRV_DIR) FRC
2037c478bd9Sstevel@tonic-gate	$(INS.file)
2047c478bd9Sstevel@tonic-gate
2057c478bd9Sstevel@tonic-gate$(USR_PSM_EXEC_DIR)/%:		% $(USR_PSM_EXEC_DIR) FRC
2067c478bd9Sstevel@tonic-gate	$(INS.file)
2077c478bd9Sstevel@tonic-gate
2087c478bd9Sstevel@tonic-gate$(USR_PSM_FS_DIR)/%:		% $(USR_PSM_FS_DIR) FRC
2097c478bd9Sstevel@tonic-gate	$(INS.file)
2107c478bd9Sstevel@tonic-gate
2117c478bd9Sstevel@tonic-gate$(USR_PSM_SCHED_DIR)/%:		% $(USR_PSM_SCHED_DIR) FRC
2127c478bd9Sstevel@tonic-gate	$(INS.file)
2137c478bd9Sstevel@tonic-gate
2147c478bd9Sstevel@tonic-gate$(USR_PSM_STRMOD_DIR)/%:	% $(USR_PSM_STRMOD_DIR) FRC
2157c478bd9Sstevel@tonic-gate	$(INS.file)
2167c478bd9Sstevel@tonic-gate
2177c478bd9Sstevel@tonic-gate$(USR_PSM_SYS_DIR)/%:		% $(USR_PSM_SYS_DIR) FRC
2187c478bd9Sstevel@tonic-gate	$(INS.file)
2197c478bd9Sstevel@tonic-gate
2207c478bd9Sstevel@tonic-gate$(USR_PSM_MISC_DIR)/%:		% $(USR_PSM_MISC_DIR) FRC
2217c478bd9Sstevel@tonic-gate	$(INS.file)
2227c478bd9Sstevel@tonic-gate
2237c478bd9Sstevel@tonic-gate$(USR_PSM_DACF_DIR)/%:		% $(USR_PSM_DACF_DIR) FRC
2247c478bd9Sstevel@tonic-gate	$(INS.file)
2257c478bd9Sstevel@tonic-gate
2267c478bd9Sstevel@tonic-gate#
2277c478bd9Sstevel@tonic-gate# links in /usr/platform
2287c478bd9Sstevel@tonic-gate#
2297c478bd9Sstevel@tonic-gate$(LINKED_DIRS):		$(USR_PLAT_DIR)
23048bc00d6Sjmcp	-$(INS.dir)
2317c478bd9Sstevel@tonic-gate
2327c478bd9Sstevel@tonic-gate$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
23348bc00d6Sjmcp	-$(INS.dir)
2347c478bd9Sstevel@tonic-gate
2357c478bd9Sstevel@tonic-gate$(LINKED_ADB_DIRS):	$(LINKED_LIB_DIRS)
2367c478bd9Sstevel@tonic-gate	-$(INS.slink6)
2377c478bd9Sstevel@tonic-gate
2387c478bd9Sstevel@tonic-gate$(LINKED_CFG_DIRS):	$(LINKED_LIB_DIRS)
2397c478bd9Sstevel@tonic-gate	-$(INS.slink6)
2407c478bd9Sstevel@tonic-gate
2417c478bd9Sstevel@tonic-gate$(LINKED_LIB_FS_DIRS):	$(LINKED_LIB_DIRS)
2427c478bd9Sstevel@tonic-gate	-$(INS.slink6)
2437c478bd9Sstevel@tonic-gate
2447c478bd9Sstevel@tonic-gate#
2457c478bd9Sstevel@tonic-gate#
2467c478bd9Sstevel@tonic-gate#
2477c478bd9Sstevel@tonic-gate$(ROOT_PSM_PROG_LINKS) $(USR_PSM_PROG_LINKS):
24824fe0b3bSjmcp	$(RM) $@; $(SYMLINK) ../$(PLATFORM)/$(PROG) $@
2497c478bd9Sstevel@tonic-gate
2507c478bd9Sstevel@tonic-gate$(ROOT_PSM_SBIN_PROG_LINKS) $(USR_PSM_SBIN_PROG_LINKS):
25124fe0b3bSjmcp	$(RM) $@; $(SYMLINK) ../../$(PLATFORM)/sbin/$(PROG) $@
2527c478bd9Sstevel@tonic-gate
253