xref: /titanic_50/usr/src/uts/sun4u/starfire/Makefile.starfire (revision 1ae0874509b6811fdde1dfd46f0d93fd09867a3f)
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#	Global definitions for sun4u starfire implementation specific modules.
28#
29
30#
31#	Define directories.
32#
33ROOT_STARFIRE_DIR	= $(ROOT_PLAT_DIR)/SUNW,Ultra-Enterprise-10000
34ROOT_STARFIRE_MOD_DIR	= $(ROOT_STARFIRE_DIR)/kernel
35ROOT_STARFIRE_KERN_DIR_32 = $(ROOT_STARFIRE_MOD_DIR)
36ROOT_STARFIRE_KERN_DIR_64 = $(ROOT_STARFIRE_MOD_DIR)/$(SUBDIR64)
37ROOT_STARFIRE_MISC_DIR_32 = $(ROOT_STARFIRE_MOD_DIR)/misc
38ROOT_STARFIRE_MISC_DIR_64 = $(ROOT_STARFIRE_MOD_DIR)/misc/$(SUBDIR64)
39ROOT_STARFIRE_DRV_DIR_32 = $(ROOT_STARFIRE_MOD_DIR)/drv
40ROOT_STARFIRE_DRV_DIR_64 = $(ROOT_STARFIRE_MOD_DIR)/drv/$(SUBDIR64)
41ROOT_STARFIRE_CPU_DIR_32 = $(ROOT_STARFIRE_MOD_DIR)/cpu
42ROOT_STARFIRE_CPU_DIR_64 = $(ROOT_STARFIRE_MOD_DIR)/cpu/$(SUBDIR64)
43
44ROOT_STARFIRE_KERN_DIR	= $(ROOT_STARFIRE_KERN_DIR_$(CLASS))
45ROOT_STARFIRE_MISC_DIR	= $(ROOT_STARFIRE_MISC_DIR_$(CLASS))
46ROOT_STARFIRE_DRV_DIR	= $(ROOT_STARFIRE_DRV_DIR_$(CLASS))
47ROOT_STARFIRE_CPU_DIR	= $(ROOT_STARFIRE_CPU_DIR_$(CLASS))
48
49ROOT_PLAT_MOD_DIRS	+= $(ROOT_STARFIRE_MOD_DIR)
50ROOT_PLAT_MISC_DIRS_32	+= $(ROOT_STARFIRE_MISC_DIR_32)
51
52USR_STARFIRE_DIR	= $(USR_PLAT_DIR)/SUNW,Ultra-Enterprise-10000
53USR_STARFIRE_INC_DIR	= $(USR_STARFIRE_DIR)/include
54USR_STARFIRE_ISYS_DIR	= $(USR_STARFIRE_INC_DIR)/sys
55USR_STARFIRE_SBIN_DIR	= $(USR_STARFIRE_DIR)/sbin
56USR_STARFIRE_LIB_DIR	= $(USR_STARFIRE_DIR)/lib
57
58#
59# Define objects.
60#
61STARFIRE_OBJS	= starfire.o
62
63#
64#	Define modules.
65#
66STARFIRE_KMODS	= platmod
67STARFIRE_KMODS	+= rootnex sbus pcipsy
68STARFIRE_KMODS	+= cvc cvcredir
69STARFIRE_KMODS	+= ngdr ngdrmach
70STARFIRE_KMODS	+= idn
71
72#
73#	CPU modules.
74#
75STARFIRE_CPU_KMODS += spitfire
76
77#
78#	Include the makefiles which define build rule templates, the
79#	collection of files per module, and a few specific flags. Note
80#	that order is significant, just as with an include path. The
81#	first build rule template which matches the files name will be
82#	used. By including these in order from most machine dependent
83#	to most machine independent, we allow a machine dependent file
84#	to be used in preference over a machine independent version
85#	(Such as a machine specific optimization, which preserves the
86#	interfaces.)
87#
88include $(UTSBASE)/sun4u/ngdr/Makefile.files
89include $(UTSBASE)/sun4u/starfire/Makefile.files
90
91#
92#	Include common rules.
93#
94include $(UTSBASE)/sun4u/Makefile.sun4u
95
96#
97#	Everybody needs to know how to build modstubs.o and to locate unix.o
98#
99UNIX_DIR	= $(UTSBASE)/$(PLATFORM)/starfire/unix
100MODSTUBS_DIR	= $(UNIX_DIR)
101DSF_DIR		= $(UTSBASE)/$(PLATFORM)/starfire/genassym
102LINTS_DIR	= $(OBJS_DIR)
103LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/starfire/lint-libs/$(OBJS_DIR)
104
105UNIX_O		= $(UNIX_DIR)/$(OBJS_DIR)/unix.o
106
107LINT_LIB	= $(LINT_LIB_DIR)/llib-lunix.ln
108
109#
110#	Define the actual specific platforms
111#
112MACHINE_DEFS	= -D$(PLATFORM) -D_MACHDEP -DSFMMU
113MACHINE_DEFS	+= -D_STARFIRE -D_CPU_SIGNATURE
114
115#
116#	Define for inline pre-processing since
117#	cpp not smart about v9 yet.
118#
119CPP_DEFS_32	=
120CPP_DEFS_64	= -D__sparcv9
121CPP_DEFS	= $(CPP_DEFS_$(CLASS))
122