xref: /titanic_52/usr/src/uts/sun4v/ontario/Makefile.ontario (revision 035f2e822f721ed34ae26f43b287a2496ee93cb9)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# uts/sun4v/ontario/Makefile
24# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#ident	"%Z%%M%	%I%	%E% SMI"
28#
29#	Global definitions for sun4v ontario implementation specific modules.
30#
31
32#
33#	Define directories.
34#
35ROOT_ONTARIO_DIR	= $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-T200
36ROOT_ONTARIO_MOD_DIR	= $(ROOT_ONTARIO_DIR)/kernel
37ROOT_ONTARIO_MISC_DIR_32	= $(ROOT_ONTARIO_DIR)/kernel/misc
38ROOT_ONTARIO_MISC_DIR_64	= $(ROOT_ONTARIO_MISC_DIR_32)/$(SUBDIR64)
39ROOT_ONTARIO_KERN_DIR_32	= $(ROOT_ONTARIO_MOD_DIR)
40ROOT_ONTARIO_KERN_DIR_64	= $(ROOT_ONTARIO_MOD_DIR)/$(SUBDIR64)
41ROOT_ONTARIO_DRV_DIR_32	= $(ROOT_ONTARIO_MOD_DIR)/drv
42ROOT_ONTARIO_DRV_DIR_64	= $(ROOT_ONTARIO_MOD_DIR)/drv/$(SUBDIR64)
43
44ROOT_ONTARIO_KERN_DIR	= $(ROOT_ONTARIO_KERN_DIR_$(CLASS))
45ROOT_ONTARIO_DRV_DIR	= $(ROOT_ONTARIO_DRV_DIR_$(CLASS))
46ROOT_ONTARIO_MISC_DIR	= $(ROOT_ONTARIO_MISC_DIR_$(CLASS))
47
48ROOT_PLAT_MOD_DIRS      += $(ROOT_ONTARIO_MOD_DIR)
49ROOT_PLAT_MISC_DIRS     += $(ROOT_ONTARIO_MISC_DIR)
50
51ROOT_ONTARIO_LIB_DIR  = $(ROOT_ONTARIO_DIR)/lib
52
53USR_SUN4V_PLAT_DIR	= $(USR_PLAT_DIR)/$(PLATFORM)
54USR_ONTARIO_DIR		= $(USR_PLAT_DIR)/SUNW,Sun-Fire-T200
55USR_ONTARIO_SBIN_DIR	= $(USR_ONTARIO_DIR)/sbin
56USR_ONTARIO_INC_DIR	= $(USR_ONTARIO_DIR)/include
57USR_ONTARIO_LIB_DIR	= $(USR_ONTARIO_DIR)/lib
58USR_ONTARIO_ISYS_DIR	= $(USR_ONTARIO_INC_DIR)/sys
59
60
61ONTARIO_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/ontario/lint-libs/$(OBJS_DIR)
62
63#
64#	Define modules.
65#
66ONTARIO_KMODS = platmod
67
68#
69#	Include the makefiles which define build rule templates, the
70#	collection of files per module, and a few specific flags. Note
71#	that order is significant, just as with an include path. The
72#	first build rule template which matches the files name will be
73#	used. By including these in order from most machine dependent
74#	to most machine independent, we allow a machine dependent file
75#	to be used in preference over a machine independent version
76#	(Such as a machine specific optimization, which preserves the
77#	interfaces.)
78#
79
80include $(UTSBASE)/sun4v/ontario/Makefile.files
81#
82#	Include common rules.
83#
84include $(UTSBASE)/sun4v/Makefile.sun4v
85
86MODSTUBS_DIR  = $(UNIX_DIR)
87LINTS_DIR	= $(OBJS_DIR)
88LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/ontario/lint-libs/$(OBJS_DIR)
89
90
91#
92#	Define the actual specific platforms
93MACHINE_DEFS	+= -D$(PLATFORM) -D_MACHDEP
94MACHINE_DEFS	+= -D_ONTARIO
95
96#	Define for inline pre-processing since
97#	cpp not smart about v9 yet.
98#
99
100CPP_DEFS_32   =
101CPP_DEFS_64   = -D__sparcv9
102CPP_DEFS      = $(CPP_DEFS_$(CLASS))
103