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