Makefile.montoya revision 1e49577a7fcde812700ded04431b49d67cc57d6d
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# CDDL HEADER START
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# The contents of this file are subject to the terms of the
8495845a800cf09321436aed996188c9a92cd647bnicholes# Common Development and Distribution License (the "License").
8495845a800cf09321436aed996188c9a92cd647bnicholes# You may not use this file except in compliance with the License.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8495845a800cf09321436aed996188c9a92cd647bnicholes# or http://www.opensolaris.org/os/licensing.
8495845a800cf09321436aed996188c9a92cd647bnicholes# See the License for the specific language governing permissions
8495845a800cf09321436aed996188c9a92cd647bnicholes# and limitations under the License.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# When distributing Covered Code, include this CDDL HEADER in each
8495845a800cf09321436aed996188c9a92cd647bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8495845a800cf09321436aed996188c9a92cd647bnicholes# If applicable, add the following below this CDDL HEADER, with the
8495845a800cf09321436aed996188c9a92cd647bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
8495845a800cf09321436aed996188c9a92cd647bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# CDDL HEADER END
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Global definitions for sun4v montoya implementation specific modules.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Define directories.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_DIR = $(ROOT_PLAT_DIR)/SUNW,Netra-CP3060
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_MOD_DIR = $(ROOT_MONTOYA_DIR)/kernel
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_MISC_DIR_32 = $(ROOT_MONTOYA_DIR)/kernel/misc
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_MISC_DIR_64 = $(ROOT_MONTOYA_MISC_DIR_32)/$(SUBDIR64)
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_KERN_DIR_32 = $(ROOT_MONTOYA_MOD_DIR)
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_KERN_DIR_64 = $(ROOT_MONTOYA_MOD_DIR)/$(SUBDIR64)
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_DRV_DIR_32 = $(ROOT_MONTOYA_MOD_DIR)/drv
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_DRV_DIR_64 = $(ROOT_MONTOYA_MOD_DIR)/drv/$(SUBDIR64)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_KERN_DIR = $(ROOT_MONTOYA_KERN_DIR_$(CLASS))
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_DRV_DIR = $(ROOT_MONTOYA_DRV_DIR_$(CLASS))
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_MISC_DIR = $(ROOT_MONTOYA_MISC_DIR_$(CLASS))
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_PLAT_MOD_DIRS += $(ROOT_MONTOYA_MOD_DIR)
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_PLAT_MISC_DIRS += $(ROOT_MONTOYA_MISC_DIR)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesROOT_MONTOYA_LIB_DIR = $(ROOT_MONTOYA_DIR)/lib
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesUSR_SUN4V_PLAT_DIR = $(USR_PLAT_DIR)/$(PLATFORM)
8495845a800cf09321436aed996188c9a92cd647bnicholesUSR_MONTOYA_DIR = $(USR_PLAT_DIR)/SUNW,Netra-CP3060
8495845a800cf09321436aed996188c9a92cd647bnicholesUSR_MONTOYA_SBIN_DIR = $(USR_MONTOYA_DIR)/sbin
8495845a800cf09321436aed996188c9a92cd647bnicholesUSR_MONTOYA_INC_DIR = $(USR_MONTOYA_DIR)/include
8495845a800cf09321436aed996188c9a92cd647bnicholesUSR_MONTOYA_LIB_DIR = $(USR_MONTOYA_DIR)/lib
8495845a800cf09321436aed996188c9a92cd647bnicholesUSR_MONTOYA_ISYS_DIR = $(USR_MONTOYA_INC_DIR)/sys
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesUSR_MONTOYA_SBIN_LINKS = $(USR_MONTOYA_SBIN_DIR)/prtdiag
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesMONTOYA_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/montoya/lint-libs/$(OBJS_DIR)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Define modules.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesMONTOYA_KMODS = platmod
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Include the makefiles which define build rule templates, the
8495845a800cf09321436aed996188c9a92cd647bnicholes# collection of files per module, and a few specific flags. Note
8495845a800cf09321436aed996188c9a92cd647bnicholes# that order is significant, just as with an include path. The
8495845a800cf09321436aed996188c9a92cd647bnicholes# first build rule template which matches the files name will be
8495845a800cf09321436aed996188c9a92cd647bnicholes# used. By including these in order from most machine dependent
8495845a800cf09321436aed996188c9a92cd647bnicholes# to most machine independent, we allow a machine dependent file
8495845a800cf09321436aed996188c9a92cd647bnicholes# to be used in preference over a machine independent version
8495845a800cf09321436aed996188c9a92cd647bnicholes# (Such as a machine specific optimization, which preserves the
8495845a800cf09321436aed996188c9a92cd647bnicholes# interfaces.)
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude $(UTSBASE)/sun4v/montoya/Makefile.files
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Include common rules.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude $(UTSBASE)/sun4v/Makefile.sun4v
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesMODSTUBS_DIR = $(UNIX_DIR)
8495845a800cf09321436aed996188c9a92cd647bnicholesLINTS_DIR = $(OBJS_DIR)
8495845a800cf09321436aed996188c9a92cd647bnicholesLINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/montoya/lint-libs/$(OBJS_DIR)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Define the actual specific platforms
8495845a800cf09321436aed996188c9a92cd647bnicholesMACHINE_DEFS += -D$(PLATFORM) -D_MACHDEP
8495845a800cf09321436aed996188c9a92cd647bnicholesMACHINE_DEFS += -D_MONTOYA
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes# Define for inline pre-processing since
8495845a800cf09321436aed996188c9a92cd647bnicholes# cpp not smart about v9 yet.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesCPP_DEFS_32 =
8495845a800cf09321436aed996188c9a92cd647bnicholesCPP_DEFS_64 = -D__sparcv9
8495845a800cf09321436aed996188c9a92cd647bnicholesCPP_DEFS = $(CPP_DEFS_$(CLASS))
8495845a800cf09321436aed996188c9a92cd647bnicholes