11c42de6dSgd#
21c42de6dSgd# CDDL HEADER START
31c42de6dSgd#
41c42de6dSgd# The contents of this file are subject to the terms of the
51c42de6dSgd# Common Development and Distribution License (the "License").
61c42de6dSgd# You may not use this file except in compliance with the License.
71c42de6dSgd#
81c42de6dSgd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91c42de6dSgd# or http://www.opensolaris.org/os/licensing.
101c42de6dSgd# See the License for the specific language governing permissions
111c42de6dSgd# and limitations under the License.
121c42de6dSgd#
131c42de6dSgd# When distributing Covered Code, include this CDDL HEADER in each
141c42de6dSgd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151c42de6dSgd# If applicable, add the following below this CDDL HEADER, with the
161c42de6dSgd# fields enclosed by brackets "[]" replaced with your own identifying
171c42de6dSgd# information: Portions Copyright [yyyy] [name of copyright owner]
181c42de6dSgd#
191c42de6dSgd# CDDL HEADER END
201c42de6dSgd#
217014882cSRichard Lowe
221c42de6dSgd#
231c42de6dSgd# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
241c42de6dSgd# Use is subject to license terms.
251c42de6dSgd#
267014882cSRichard Lowe
271c42de6dSgd#
281c42de6dSgd#	This makefile drives the production of the cpu portion of
29*0aaef2f5SRichard Lowe#	of the Safari Configurator.
301c42de6dSgd#
311c42de6dSgd#	sun4u implementation architecture dependent
321c42de6dSgd#
331c42de6dSgd
341c42de6dSgd#
351c42de6dSgd#	Path to the base of the uts directory tree (usually /usr/src/uts).
361c42de6dSgd#
371c42de6dSgdUTSBASE = ../..
381c42de6dSgd
391c42de6dSgd#
401c42de6dSgd#	Define the module and object file sets.
411c42de6dSgd#
421c42de6dSgdMODULE		= gptwo_cpu
431c42de6dSgdOBJECTS		= $(GPTWO_CPU_OBJS:%=$(OBJS_DIR)/%)
441c42de6dSgdROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
451c42de6dSgd
461c42de6dSgd#
471c42de6dSgd#	Include common rules.
481c42de6dSgd#
491c42de6dSgdinclude $(UTSBASE)/sun4u/Makefile.sun4u
501c42de6dSgd
511c42de6dSgd#
521c42de6dSgd#	Define targets
531c42de6dSgd#
541c42de6dSgdALL_TARGET	= $(BINARY)
551c42de6dSgdINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
561c42de6dSgd
571c42de6dSgd#
581c42de6dSgd# Turn on doubleword alignment for 64 bit registers
591c42de6dSgd#
601c42de6dSgdCFLAGS += -dalign
611c42de6dSgd
621c42de6dSgd#
631c42de6dSgd# Pick up defines in cheetahregs.h.
641c42de6dSgd#
651c42de6dSgdCFLAGS += -DCHEETAH_PLUS
661c42de6dSgd
671c42de6dSgd#
681c42de6dSgd# module dependencies
691c42de6dSgd#
701c42de6dSgdLDFLAGS += -dy -Nmisc/gptwocfg
711c42de6dSgd
721c42de6dSgd#
73*0aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
74*0aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
751c42de6dSgd# Please do not carry these forward to new Makefiles.
761c42de6dSgd#
77*0aaef2f5SRichard LoweCFLAGS		+= $(CCVERBOSE)
787014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
797014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
807014882cSRichard Lowe
811c42de6dSgd#
821c42de6dSgd#	Default build targets.
831c42de6dSgd#
841c42de6dSgd.KEEP_STATE:
851c42de6dSgd
861c42de6dSgddef:		$(DEF_DEPS)
871c42de6dSgd
881c42de6dSgdall:		$(ALL_DEPS)
891c42de6dSgd
901c42de6dSgdclean:		$(CLEAN_DEPS)
911c42de6dSgd
921c42de6dSgdclobber:	$(CLOBBER_DEPS)
931c42de6dSgd
941c42de6dSgdinstall:	$(INSTALL_DEPS)
951c42de6dSgd
961c42de6dSgd#
971c42de6dSgd#	Include common targets.
981c42de6dSgd#
991c42de6dSgdinclude $(UTSBASE)/sun4u/Makefile.targ
100