11c42de6dSgd78059# 21c42de6dSgd78059# CDDL HEADER START 31c42de6dSgd78059# 41c42de6dSgd78059# The contents of this file are subject to the terms of the 51c42de6dSgd78059# Common Development and Distribution License (the "License"). 61c42de6dSgd78059# You may not use this file except in compliance with the License. 71c42de6dSgd78059# 81c42de6dSgd78059# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91c42de6dSgd78059# or http://www.opensolaris.org/os/licensing. 101c42de6dSgd78059# See the License for the specific language governing permissions 111c42de6dSgd78059# and limitations under the License. 121c42de6dSgd78059# 131c42de6dSgd78059# When distributing Covered Code, include this CDDL HEADER in each 141c42de6dSgd78059# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151c42de6dSgd78059# If applicable, add the following below this CDDL HEADER, with the 161c42de6dSgd78059# fields enclosed by brackets "[]" replaced with your own identifying 171c42de6dSgd78059# information: Portions Copyright [yyyy] [name of copyright owner] 181c42de6dSgd78059# 191c42de6dSgd78059# CDDL HEADER END 201c42de6dSgd78059# 21*7014882cSRichard Lowe 221c42de6dSgd78059# 231c42de6dSgd78059# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 241c42de6dSgd78059# Use is subject to license terms. 251c42de6dSgd78059# 26*7014882cSRichard Lowe 271c42de6dSgd78059# 281c42de6dSgd78059# This makefile drives the production of the cpu portion of 291c42de6dSgd78059# of the Safari Configurator. 301c42de6dSgd78059# 311c42de6dSgd78059# sun4u implementation architecture dependent 321c42de6dSgd78059# 331c42de6dSgd78059 341c42de6dSgd78059# 351c42de6dSgd78059# Path to the base of the uts directory tree (usually /usr/src/uts). 361c42de6dSgd78059# 371c42de6dSgd78059UTSBASE = ../.. 381c42de6dSgd78059 391c42de6dSgd78059# 401c42de6dSgd78059# Define the module and object file sets. 411c42de6dSgd78059# 421c42de6dSgd78059MODULE = gptwo_cpu 431c42de6dSgd78059OBJECTS = $(GPTWO_CPU_OBJS:%=$(OBJS_DIR)/%) 441c42de6dSgd78059LINTS = $(GPTWO_CPU_OBJS:%.o=$(LINTS_DIR)/%.ln) 451c42de6dSgd78059ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) 461c42de6dSgd78059 471c42de6dSgd78059# 481c42de6dSgd78059# Include common rules. 491c42de6dSgd78059# 501c42de6dSgd78059include $(UTSBASE)/sun4u/Makefile.sun4u 511c42de6dSgd78059 521c42de6dSgd78059# 531c42de6dSgd78059# Define targets 541c42de6dSgd78059# 551c42de6dSgd78059ALL_TARGET = $(BINARY) 561c42de6dSgd78059LINT_TARGET = $(MODULE).lint 571c42de6dSgd78059INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 581c42de6dSgd78059 591c42de6dSgd78059 601c42de6dSgd78059# Turn this on once compiler understands v9 in it's backend 611c42de6dSgd78059#INLINES += $(UTSBASE)/sun4u/io/gptwo_cpu.il 621c42de6dSgd78059 631c42de6dSgd78059# 641c42de6dSgd78059# lint pass one enforcement 651c42de6dSgd78059# 661c42de6dSgd78059CFLAGS += $(CCVERBOSE) 671c42de6dSgd78059 681c42de6dSgd78059# 691c42de6dSgd78059# Turn on doubleword alignment for 64 bit registers 701c42de6dSgd78059# 711c42de6dSgd78059CFLAGS += -dalign 721c42de6dSgd78059 731c42de6dSgd78059# 741c42de6dSgd78059# Pick up defines in cheetahregs.h. 751c42de6dSgd78059# 761c42de6dSgd78059CFLAGS += -DCHEETAH_PLUS 771c42de6dSgd78059LINTFLAGS += -DCHEETAH_PLUS 781c42de6dSgd78059 791c42de6dSgd78059# 801c42de6dSgd78059# module dependencies 811c42de6dSgd78059# 821c42de6dSgd78059LDFLAGS += -dy -Nmisc/gptwocfg 831c42de6dSgd78059 841c42de6dSgd78059# 851c42de6dSgd78059# For now, disable these lint checks; maintainers should endeavor 861c42de6dSgd78059# to investigate and remove these for maximum lint coverage. 871c42de6dSgd78059# Please do not carry these forward to new Makefiles. 881c42de6dSgd78059# 891c42de6dSgd78059LINTTAGS += -erroff=E_STATIC_UNUSED 901c42de6dSgd78059 91*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 92*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 93*7014882cSRichard Lowe 941c42de6dSgd78059# 951c42de6dSgd78059# Default build targets. 961c42de6dSgd78059# 971c42de6dSgd78059.KEEP_STATE: 981c42de6dSgd78059 991c42de6dSgd78059def: $(DEF_DEPS) 1001c42de6dSgd78059 1011c42de6dSgd78059all: $(ALL_DEPS) 1021c42de6dSgd78059 1031c42de6dSgd78059clean: $(CLEAN_DEPS) 1041c42de6dSgd78059 1051c42de6dSgd78059clobber: $(CLOBBER_DEPS) 1061c42de6dSgd78059 1071c42de6dSgd78059lint: $(LINT_DEPS) 1081c42de6dSgd78059 1091c42de6dSgd78059modlintlib: $(MODLINTLIB_DEPS) 1101c42de6dSgd78059 1111c42de6dSgd78059clean.lint: $(CLEAN_LINT_DEPS) 1121c42de6dSgd78059 1131c42de6dSgd78059install: $(INSTALL_DEPS) 1141c42de6dSgd78059 1151c42de6dSgd78059# 1161c42de6dSgd78059# Include common targets. 1171c42de6dSgd78059# 1181c42de6dSgd78059include $(UTSBASE)/sun4u/Makefile.targ 119