xref: /titanic_41/usr/src/uts/sun4v/montoya/Makefile.montoya (revision 1e49577a7fcde812700ded04431b49d67cc57d6d)
1fd845fc0Sks34972#
2fd845fc0Sks34972# CDDL HEADER START
3fd845fc0Sks34972#
4fd845fc0Sks34972# The contents of this file are subject to the terms of the
5fd845fc0Sks34972# Common Development and Distribution License (the "License").
6fd845fc0Sks34972# You may not use this file except in compliance with the License.
7fd845fc0Sks34972#
8fd845fc0Sks34972# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fd845fc0Sks34972# or http://www.opensolaris.org/os/licensing.
10fd845fc0Sks34972# See the License for the specific language governing permissions
11fd845fc0Sks34972# and limitations under the License.
12fd845fc0Sks34972#
13fd845fc0Sks34972# When distributing Covered Code, include this CDDL HEADER in each
14fd845fc0Sks34972# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15fd845fc0Sks34972# If applicable, add the following below this CDDL HEADER, with the
16fd845fc0Sks34972# fields enclosed by brackets "[]" replaced with your own identifying
17fd845fc0Sks34972# information: Portions Copyright [yyyy] [name of copyright owner]
18fd845fc0Sks34972#
19fd845fc0Sks34972# CDDL HEADER END
20fd845fc0Sks34972#
21fd845fc0Sks34972#
22*1e49577aSRod Evans# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
23fd845fc0Sks34972#
24fd845fc0Sks34972#	Global definitions for sun4v montoya implementation specific modules.
25fd845fc0Sks34972#
26fd845fc0Sks34972
27fd845fc0Sks34972#
28fd845fc0Sks34972#	Define directories.
29fd845fc0Sks34972#
30fd845fc0Sks34972ROOT_MONTOYA_DIR	= $(ROOT_PLAT_DIR)/SUNW,Netra-CP3060
31fd845fc0Sks34972ROOT_MONTOYA_MOD_DIR	= $(ROOT_MONTOYA_DIR)/kernel
32fd845fc0Sks34972ROOT_MONTOYA_MISC_DIR_32	= $(ROOT_MONTOYA_DIR)/kernel/misc
33fd845fc0Sks34972ROOT_MONTOYA_MISC_DIR_64	= $(ROOT_MONTOYA_MISC_DIR_32)/$(SUBDIR64)
34fd845fc0Sks34972ROOT_MONTOYA_KERN_DIR_32	= $(ROOT_MONTOYA_MOD_DIR)
35fd845fc0Sks34972ROOT_MONTOYA_KERN_DIR_64	= $(ROOT_MONTOYA_MOD_DIR)/$(SUBDIR64)
36fd845fc0Sks34972ROOT_MONTOYA_DRV_DIR_32	= $(ROOT_MONTOYA_MOD_DIR)/drv
37fd845fc0Sks34972ROOT_MONTOYA_DRV_DIR_64	= $(ROOT_MONTOYA_MOD_DIR)/drv/$(SUBDIR64)
38fd845fc0Sks34972
39fd845fc0Sks34972ROOT_MONTOYA_KERN_DIR	= $(ROOT_MONTOYA_KERN_DIR_$(CLASS))
40fd845fc0Sks34972ROOT_MONTOYA_DRV_DIR	= $(ROOT_MONTOYA_DRV_DIR_$(CLASS))
41fd845fc0Sks34972ROOT_MONTOYA_MISC_DIR	= $(ROOT_MONTOYA_MISC_DIR_$(CLASS))
42fd845fc0Sks34972
43fd845fc0Sks34972ROOT_PLAT_MOD_DIRS      += $(ROOT_MONTOYA_MOD_DIR)
44fd845fc0Sks34972ROOT_PLAT_MISC_DIRS     += $(ROOT_MONTOYA_MISC_DIR)
45fd845fc0Sks34972
46fd845fc0Sks34972ROOT_MONTOYA_LIB_DIR  = $(ROOT_MONTOYA_DIR)/lib
47fd845fc0Sks34972
483dc52bbeSmcwalterUSR_SUN4V_PLAT_DIR	= $(USR_PLAT_DIR)/$(PLATFORM)
49fd845fc0Sks34972USR_MONTOYA_DIR		= $(USR_PLAT_DIR)/SUNW,Netra-CP3060
50fd845fc0Sks34972USR_MONTOYA_SBIN_DIR	= $(USR_MONTOYA_DIR)/sbin
51fd845fc0Sks34972USR_MONTOYA_INC_DIR	= $(USR_MONTOYA_DIR)/include
52fd845fc0Sks34972USR_MONTOYA_LIB_DIR	= $(USR_MONTOYA_DIR)/lib
53fd845fc0Sks34972USR_MONTOYA_ISYS_DIR	= $(USR_MONTOYA_INC_DIR)/sys
54fd845fc0Sks34972
556b288faaSmcwalterUSR_MONTOYA_SBIN_LINKS	= $(USR_MONTOYA_SBIN_DIR)/prtdiag
56fd845fc0Sks34972
57fd845fc0Sks34972MONTOYA_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/montoya/lint-libs/$(OBJS_DIR)
58fd845fc0Sks34972
59fd845fc0Sks34972#
60fd845fc0Sks34972#	Define modules.
61fd845fc0Sks34972#
62fd845fc0Sks34972MONTOYA_KMODS = platmod
63fd845fc0Sks34972
64fd845fc0Sks34972#
65fd845fc0Sks34972#	Include the makefiles which define build rule templates, the
66fd845fc0Sks34972#	collection of files per module, and a few specific flags. Note
67fd845fc0Sks34972#	that order is significant, just as with an include path. The
68fd845fc0Sks34972#	first build rule template which matches the files name will be
69fd845fc0Sks34972#	used. By including these in order from most machine dependent
70fd845fc0Sks34972#	to most machine independent, we allow a machine dependent file
71fd845fc0Sks34972#	to be used in preference over a machine independent version
72fd845fc0Sks34972#	(Such as a machine specific optimization, which preserves the
73fd845fc0Sks34972#	interfaces.)
74fd845fc0Sks34972#
75fd845fc0Sks34972
76fd845fc0Sks34972include $(UTSBASE)/sun4v/montoya/Makefile.files
77fd845fc0Sks34972#
78fd845fc0Sks34972#	Include common rules.
79fd845fc0Sks34972#
80fd845fc0Sks34972include $(UTSBASE)/sun4v/Makefile.sun4v
81fd845fc0Sks34972
82fd845fc0Sks34972MODSTUBS_DIR  = $(UNIX_DIR)
83fd845fc0Sks34972LINTS_DIR	= $(OBJS_DIR)
84fd845fc0Sks34972LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/montoya/lint-libs/$(OBJS_DIR)
85fd845fc0Sks34972
86fd845fc0Sks34972
87fd845fc0Sks34972#
88fd845fc0Sks34972#	Define the actual specific platforms
89fd845fc0Sks34972MACHINE_DEFS	+= -D$(PLATFORM) -D_MACHDEP
90fd845fc0Sks34972MACHINE_DEFS	+= -D_MONTOYA
91fd845fc0Sks34972
92fd845fc0Sks34972#	Define for inline pre-processing since
93fd845fc0Sks34972#	cpp not smart about v9 yet.
94fd845fc0Sks34972#
95fd845fc0Sks34972
96fd845fc0Sks34972CPP_DEFS_32   =
97fd845fc0Sks34972CPP_DEFS_64   = -D__sparcv9
98fd845fc0Sks34972CPP_DEFS      = $(CPP_DEFS_$(CLASS))
99