1*44961713Sgirish# 2*44961713Sgirish# CDDL HEADER START 3*44961713Sgirish# 4*44961713Sgirish# The contents of this file are subject to the terms of the 5*44961713Sgirish# Common Development and Distribution License (the "License"). 6*44961713Sgirish# You may not use this file except in compliance with the License. 7*44961713Sgirish# 8*44961713Sgirish# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*44961713Sgirish# or http://www.opensolaris.org/os/licensing. 10*44961713Sgirish# See the License for the specific language governing permissions 11*44961713Sgirish# and limitations under the License. 12*44961713Sgirish# 13*44961713Sgirish# When distributing Covered Code, include this CDDL HEADER in each 14*44961713Sgirish# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*44961713Sgirish# If applicable, add the following below this CDDL HEADER, with the 16*44961713Sgirish# fields enclosed by brackets "[]" replaced with your own identifying 17*44961713Sgirish# information: Portions Copyright [yyyy] [name of copyright owner] 18*44961713Sgirish# 19*44961713Sgirish# CDDL HEADER END 20*44961713Sgirish# 21*44961713Sgirish# 22*44961713Sgirish# uts/sun4v/niagara2/Makefile 23*44961713Sgirish# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*44961713Sgirish# Use is subject to license terms. 25*44961713Sgirish# 26*44961713Sgirish#ident "%Z%%M% %I% %E% SMI" 27*44961713Sgirish# 28*44961713Sgirish# This makefile drives the production of the UltraSPARC-T2 cpu module. 29*44961713Sgirish# 30*44961713Sgirish# sun4v implementation architecture dependent 31*44961713Sgirish# 32*44961713Sgirish 33*44961713Sgirish# 34*44961713Sgirish# Path to the base of the uts directory tree (usually /usr/src/uts). 35*44961713Sgirish# 36*44961713SgirishUTSBASE = ../.. 37*44961713Sgirish 38*44961713Sgirish# 39*44961713Sgirish# Define the module and object file sets. 40*44961713Sgirish# 41*44961713SgirishMODULE = SUNW,UltraSPARC-T2 42*44961713SgirishOBJECTS = $(NIAGARA2CPU_OBJS:%=$(OBJS_DIR)/%) 43*44961713SgirishLINTS = $(NIAGARA2CPU:%.o=$(LINTS_DIR)/%.ln) 44*44961713SgirishROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE) 45*44961713Sgirish 46*44961713SgirishCPU_DIR = . 47*44961713SgirishHERE = ../niagara2 48*44961713Sgirish 49*44961713Sgirish# 50*44961713Sgirish# Include common rules. 51*44961713Sgirish# 52*44961713Sgirishinclude $(UTSBASE)/sun4v/Makefile.sun4v 53*44961713Sgirish 54*44961713Sgirish# 55*44961713Sgirish# Override defaults 56*44961713Sgirish# 57*44961713SgirishCLEANFILES += $(CPULIB) $(SYM_MOD) 58*44961713Sgirish 59*44961713Sgirish# 60*44961713Sgirish# Define targets 61*44961713Sgirish# 62*44961713SgirishALL_TARGET = $(SYM_MOD) 63*44961713SgirishLINT_TARGET = $(MODULE).lint 64*44961713SgirishINSTALL_TARGET = def $(BINARY) $(ROOTMODULE) 65*44961713Sgirish 66*44961713Sgirish# 67*44961713Sgirish# lint pass one enforcement 68*44961713Sgirish# 69*44961713SgirishCFLAGS += $(CCVERBOSE) -DNIAGARA2_IMPL 70*44961713Sgirish 71*44961713Sgirish# 72*44961713Sgirish# cpu-module-specific flags 73*44961713Sgirish# 74*44961713SgirishCPPFLAGS += -DCPU_MODULE -DNIAGARA2_IMPL 75*44961713SgirishAS_CPPFLAGS += -DCPU_MODULE -DNIAGARA2_IMPL 76*44961713Sgirish 77*44961713Sgirish# 78*44961713Sgirish# Default build targets. 79*44961713Sgirish# 80*44961713Sgirish.KEEP_STATE: 81*44961713Sgirish 82*44961713Sgirishdef: $(DEF_DEPS) 83*44961713Sgirish 84*44961713Sgirishall: $(ALL_DEPS) 85*44961713Sgirish 86*44961713Sgirishclean: $(CLEAN_DEPS) 87*44961713Sgirish 88*44961713Sgirishclobber: $(CLOBBER_DEPS) 89*44961713Sgirish 90*44961713Sgirishlint: $(LINT_DEPS) 91*44961713Sgirish 92*44961713Sgirishmodlintlib: $(MODLINTLIB_DEPS) 93*44961713Sgirish 94*44961713Sgirishclean.lint: $(CLEAN_LINT_DEPS) 95*44961713Sgirish 96*44961713Sgirishinstall: $(INSTALL_DEPS) 97*44961713Sgirish 98*44961713Sgirish$(CPULIB): $(BINARY) 99*44961713Sgirish $(BUILD.SO) $(BINARY) 100*44961713Sgirish 101*44961713Sgirish$(SYM_MOD): $(UNIX_O) $(CPULIB) 102*44961713Sgirish @echo "resolving symbols against unix.o" 103*44961713Sgirish @(cd $(UNIX_DIR); pwd; \ 104*44961713Sgirish CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck) 105*44961713Sgirish 106*44961713Sgirish# Include common targets. 107*44961713Sgirish# 108*44961713Sgirishinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ 109