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