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 51 52USR_SUN4V_PLAT_DIR = $(USR_PLAT_DIR)/$(PLATFORM) 53USR_ONTARIO_DIR = $(USR_PLAT_DIR)/SUNW,Sun-Fire-T200 54USR_ONTARIO_SBIN_DIR = $(USR_ONTARIO_DIR)/sbin 55USR_ONTARIO_INC_DIR = $(USR_ONTARIO_DIR)/include 56USR_ONTARIO_LIB_DIR = $(USR_ONTARIO_DIR)/lib 57USR_ONTARIO_ISYS_DIR = $(USR_ONTARIO_INC_DIR)/sys 58 59 60ONTARIO_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/ontario/lint-libs/$(OBJS_DIR) 61 62 63# 64# Include the makefiles which define build rule templates, the 65# collection of files per module, and a few specific flags. Note 66# that order is significant, just as with an include path. The 67# first build rule template which matches the files name will be 68# used. By including these in order from most machine dependent 69# to most machine independent, we allow a machine dependent file 70# to be used in preference over a machine independent version 71# (Such as a machine specific optimization, which preserves the 72# interfaces.) 73# 74 75# 76# Include common rules. 77# 78include $(UTSBASE)/sun4v/Makefile.sun4v 79 80 81LINTS_DIR = $(OBJS_DIR) 82LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/ontario/lint-libs/$(OBJS_DIR) 83 84 85# 86# Define the actual specific platforms 87MACHINE_DEFS += -D$(PLATFORM) -D_MACHDEP 88MACHINE_DEFS += -D_ONTARIO 89