xref: /titanic_50/usr/src/uts/sun4u/montecarlo/Makefile.montecarlo (revision 2063d9c01c4a721994a3cb528444d7f328135869)
1*2063d9c0SJosef 'Jeff' Sipek#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*2063d9c0SJosef 'Jeff' Sipek# Common Development and Distribution License (the "License").
6*2063d9c0SJosef 'Jeff' Sipek# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
21*2063d9c0SJosef 'Jeff' Sipek#
22*2063d9c0SJosef 'Jeff' Sipek# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23fb9f9b97Skupfer# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
25*2063d9c0SJosef 'Jeff' Sipek#     This makefile contains the common definitions for the
26*2063d9c0SJosef 'Jeff' Sipek#     sun4u MonteCarlo system dependent modules.
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate
29*2063d9c0SJosef 'Jeff' Sipek#
30*2063d9c0SJosef 'Jeff' Sipek# Define directories.
31*2063d9c0SJosef 'Jeff' Sipek#
32*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_DIR		= $(ROOT_PLAT_DIR)/SUNW,UltraSPARC-IIi-Netract
33*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_MOD_DIR		= $(ROOT_MONTECARLO_DIR)/kernel
347c478bd9Sstevel@tonic-gate
35*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_KERN_DIR_32	= $(ROOT_MONTECARLO_MOD_DIR)
36*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_KERN_DIR_64	= $(ROOT_MONTECARLO_MOD_DIR)/$(SUBDIR64)
37*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_DRV_DIR_32	= $(ROOT_MONTECARLO_MOD_DIR)/drv
38*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_DACF_DIR_32	= $(ROOT_MONTECARLO_MOD_DIR)/dacf
39*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_DACF_DIR_64	= $(ROOT_MONTECARLO_MOD_DIR)/dacf/$(SUBDIR64)
40*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_DRV_DIR_64	= $(ROOT_MONTECARLO_MOD_DIR)/drv/$(SUBDIR64)
41*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_MISC_DIR_32	= $(ROOT_MONTECARLO_MOD_DIR)/misc
42*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_MISC_DIR_64	= $(ROOT_MONTECARLO_MOD_DIR)/misc/$(SUBDIR64)
43*2063d9c0SJosef 'Jeff' Sipek
44*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_KERN_DIR	= $(ROOT_MONTECARLO_KERN_DIR_$(CLASS))
45*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_MISC_DIR	= $(ROOT_MONTECARLO_MISC_DIR_$(CLASS))
46*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_DRV_DIR		= $(ROOT_MONTECARLO_DRV_DIR_$(CLASS))
47*2063d9c0SJosef 'Jeff' SipekROOT_MONTECARLO_DACF_DIR	= $(ROOT_MONTECARLO_DACF_DIR_$(CLASS))
48*2063d9c0SJosef 'Jeff' Sipek
49*2063d9c0SJosef 'Jeff' SipekROOT_PLAT_MOD_DIRS	+= $(ROOT_MONTECARLO_MOD_DIR)
50*2063d9c0SJosef 'Jeff' SipekROOT_PLAT_MISC_DIRS	+= $(ROOT_MONTECARLO_MISC_DIR)
51*2063d9c0SJosef 'Jeff' SipekROOT_PLAT_MISC_DIRS_32	+= $(ROOT_MONTECARLO_MISC_DIR_32)
52*2063d9c0SJosef 'Jeff' SipekROOT_PLAT_DRV_DIRS	= $(ROOT_MONTECARLO_DRV_DIR)
53*2063d9c0SJosef 'Jeff' SipekROOT_PLAT_DACF_DIRS	= $(ROOT_MONTECARLO_DACF_DIR)
54*2063d9c0SJosef 'Jeff' Sipek
55*2063d9c0SJosef 'Jeff' SipekUSR_MONTECARLO_DIR	= $(USR_PLAT_DIR)/SUNW,UltraSPARC-IIi-Netract
56*2063d9c0SJosef 'Jeff' SipekUSR_MONTECARLO_INC_DIR	= $(USR_MONTECARLO_DIR)/include
57*2063d9c0SJosef 'Jeff' SipekUSR_MONTECARLO_SBIN_DIR	= $(USR_MONTECARLO_DIR)/sbin
58*2063d9c0SJosef 'Jeff' SipekUSR_MONTECARLO_LIB_DIR	= $(USR_MONTECARLO_DIR)/lib
59*2063d9c0SJosef 'Jeff' SipekUSR_MONTECARLO_ISYS_DIR	= $(USR_MONTECARLO_INC_DIR)/sys
60*2063d9c0SJosef 'Jeff' Sipek
61*2063d9c0SJosef 'Jeff' SipekMONTECARLO_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/montecarlo/lint-libs/$(OBJS_DIR)
62*2063d9c0SJosef 'Jeff' Sipek
63*2063d9c0SJosef 'Jeff' Sipek#
64*2063d9c0SJosef 'Jeff' Sipek# Define objects.
65*2063d9c0SJosef 'Jeff' Sipek#
66*2063d9c0SJosef 'Jeff' Sipek
67*2063d9c0SJosef 'Jeff' Sipekinclude $(UTSBASE)/sun4u/montecarlo/Makefile.files
68*2063d9c0SJosef 'Jeff' Sipek
69*2063d9c0SJosef 'Jeff' Sipek#
70*2063d9c0SJosef 'Jeff' Sipek#	Include common rules.
71*2063d9c0SJosef 'Jeff' Sipek#
72*2063d9c0SJosef 'Jeff' Sipekinclude $(UTSBASE)/sun4u/Makefile.sun4u
73*2063d9c0SJosef 'Jeff' Sipek
74*2063d9c0SJosef 'Jeff' Sipek#
75*2063d9c0SJosef 'Jeff' Sipek# Define modules
76*2063d9c0SJosef 'Jeff' Sipek#
77*2063d9c0SJosef 'Jeff' SipekMONTECARLO_KMODS = acebus pcf8574_nct pcf8591_nct scsb ttymux_dacf
78*2063d9c0SJosef 'Jeff' Sipek
79*2063d9c0SJosef 'Jeff' Sipek#
80*2063d9c0SJosef 'Jeff' Sipek# we need the official MONTECARLO name here, and for the sun4u/montecarlo
81*2063d9c0SJosef 'Jeff' Sipek# directory and Makefile.montecarlo
82*2063d9c0SJosef 'Jeff' Sipek# for now we'll use montecarlo for workspace file/dir names
83*2063d9c0SJosef 'Jeff' Sipek# and NORDICA_CP1500 for conditional code compiles, since that's our current
84*2063d9c0SJosef 'Jeff' Sipek# test platform
85*2063d9c0SJosef 'Jeff' Sipek#
86*2063d9c0SJosef 'Jeff' SipekMACHINE_DEFS    += -DNORDICA_CP1500
87*2063d9c0SJosef 'Jeff' Sipek
88*2063d9c0SJosef 'Jeff' Sipek#
89*2063d9c0SJosef 'Jeff' Sipek# For now, disable these lint checks; maintainers should endeavor
90*2063d9c0SJosef 'Jeff' Sipek# to investigate and remove these for maximum lint coverage.
91*2063d9c0SJosef 'Jeff' Sipek# Please do not carry these forward to new Makefiles.
92*2063d9c0SJosef 'Jeff' Sipek#
93*2063d9c0SJosef 'Jeff' SipekLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
94*2063d9c0SJosef 'Jeff' SipekLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
95*2063d9c0SJosef 'Jeff' SipekLINTTAGS	+= -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
96*2063d9c0SJosef 'Jeff' SipekLINTTAGS	+= -erroff=E_STATIC_UNUSED
97*2063d9c0SJosef 'Jeff' SipekLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
98*2063d9c0SJosef 'Jeff' SipekLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
99