xref: /titanic_50/usr/src/uts/sun4v/vfalls/Makefile (revision 7ec363dc481bba196d724969022171de4687989f)
159ac0c16Sdavemq#
259ac0c16Sdavemq# CDDL HEADER START
359ac0c16Sdavemq#
459ac0c16Sdavemq# The contents of this file are subject to the terms of the
559ac0c16Sdavemq# Common Development and Distribution License (the "License").
659ac0c16Sdavemq# You may not use this file except in compliance with the License.
759ac0c16Sdavemq#
859ac0c16Sdavemq# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
959ac0c16Sdavemq# or http://www.opensolaris.org/os/licensing.
1059ac0c16Sdavemq# See the License for the specific language governing permissions
1159ac0c16Sdavemq# and limitations under the License.
1259ac0c16Sdavemq#
1359ac0c16Sdavemq# When distributing Covered Code, include this CDDL HEADER in each
1459ac0c16Sdavemq# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1559ac0c16Sdavemq# If applicable, add the following below this CDDL HEADER, with the
1659ac0c16Sdavemq# fields enclosed by brackets "[]" replaced with your own identifying
1759ac0c16Sdavemq# information: Portions Copyright [yyyy] [name of copyright owner]
1859ac0c16Sdavemq#
1959ac0c16Sdavemq# CDDL HEADER END
2059ac0c16Sdavemq#
2159ac0c16Sdavemq#
2259ac0c16Sdavemq# uts/sun4v/vfalls/Makefile
2359ac0c16Sdavemq# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
2459ac0c16Sdavemq# Use is subject to license terms.
2559ac0c16Sdavemq#
2659ac0c16Sdavemq#ident	"%Z%%M%	%I%	%E% SMI"
2759ac0c16Sdavemq#
2859ac0c16Sdavemq#	This makefile drives the production of the UltraSPARC-T2+ cpu module.
2959ac0c16Sdavemq#
3059ac0c16Sdavemq#	sun4v implementation architecture dependent
3159ac0c16Sdavemq#
3259ac0c16Sdavemq
3359ac0c16Sdavemq#
3459ac0c16Sdavemq#	Path to the base of the uts directory tree (usually /usr/src/uts).
3559ac0c16Sdavemq#
3659ac0c16SdavemqUTSBASE	= ../..
3759ac0c16Sdavemq
3859ac0c16Sdavemq#
3959ac0c16Sdavemq#	Define the module and object file sets.
4059ac0c16Sdavemq#
4159ac0c16SdavemqMODULE		= SUNW,UltraSPARC-T2+
4259ac0c16SdavemqOBJECTS		= $(NIAGARA2CPU_OBJS:%=$(OBJS_DIR)/%)
4359ac0c16SdavemqLINTS		= $(NIAGARA2CPU_OBJS:%.o=$(LINTS_DIR)/%.ln)
4459ac0c16SdavemqROOTMODULE	= $(ROOT_PSM_CPU_DIR)/$(MODULE)
4559ac0c16Sdavemq
4659ac0c16SdavemqCPU_DIR		= .
4759ac0c16SdavemqHERE		= ../vfalls
4859ac0c16Sdavemq
4959ac0c16Sdavemq#
5059ac0c16Sdavemq#	Include common rules.
5159ac0c16Sdavemq#
5259ac0c16Sdavemqinclude $(UTSBASE)/sun4v/Makefile.sun4v
5359ac0c16Sdavemq
5459ac0c16Sdavemq#
5559ac0c16Sdavemq#	Override defaults
5659ac0c16Sdavemq#
5759ac0c16SdavemqCLEANFILES	+= $(CPULIB) $(SYM_MOD)
5859ac0c16Sdavemq
5959ac0c16Sdavemq#
6059ac0c16Sdavemq#	Define targets
6159ac0c16Sdavemq#
6259ac0c16SdavemqALL_TARGET	= $(SYM_MOD)
6359ac0c16SdavemqLINT_TARGET	= $(MODULE).lint
6459ac0c16SdavemqINSTALL_TARGET	= def $(BINARY) $(ROOTMODULE)
6559ac0c16Sdavemq
6659ac0c16Sdavemq#
6759ac0c16Sdavemq# lint pass one enforcement
6859ac0c16Sdavemq#
6959ac0c16SdavemqCFLAGS += $(CCVERBOSE) -DVFALLS_IMPL -DN2_ERRATUM_181_WORKAROUND
7059ac0c16Sdavemq
7159ac0c16Sdavemq#
7259ac0c16Sdavemq# cpu-module-specific flags
7359ac0c16Sdavemq#
7459ac0c16SdavemqCPPFLAGS += -DCPU_MODULE -DVFALLS_IMPL -DN2_ERRATUM_181_WORKAROUND
75*7ec363dcSwh94709CPPFLAGS += -DSUN4V_CONTIG_MEM_PREALLOC_SIZE_MB=68
7659ac0c16SdavemqAS_CPPFLAGS += -DCPU_MODULE -DVFALLS_IMPL -DN2_ERRATUM_181_WORKAROUND
7759ac0c16Sdavemq
7859ac0c16Sdavemq#
7959ac0c16Sdavemq#	Default build targets.
8059ac0c16Sdavemq#
8159ac0c16Sdavemq.KEEP_STATE:
8259ac0c16Sdavemq
8359ac0c16Sdavemqdef:		$(DEF_DEPS)
8459ac0c16Sdavemq
8559ac0c16Sdavemqall:		$(ALL_DEPS)
8659ac0c16Sdavemq
8759ac0c16Sdavemqclean:		$(CLEAN_DEPS)
8859ac0c16Sdavemq
8959ac0c16Sdavemqclobber:	$(CLOBBER_DEPS)
9059ac0c16Sdavemq
9159ac0c16Sdavemqlint:		$(LINT_DEPS)
9259ac0c16Sdavemq
9359ac0c16Sdavemqmodlintlib:	$(MODLINTLIB_DEPS)
9459ac0c16Sdavemq
9559ac0c16Sdavemqclean.lint:	$(CLEAN_LINT_DEPS)
9659ac0c16Sdavemq
9759ac0c16Sdavemqinstall:	$(INSTALL_DEPS)
9859ac0c16Sdavemq
9959ac0c16Sdavemq$(CPULIB):	$(BINARY)
10059ac0c16Sdavemq	$(BUILD.SO) $(BINARY)
10159ac0c16Sdavemq
10259ac0c16Sdavemq$(SYM_MOD):	$(UNIX_O) $(CPULIB)
10359ac0c16Sdavemq	@echo "resolving symbols against unix.o"
10459ac0c16Sdavemq	@(cd $(UNIX_DIR); pwd; \
10559ac0c16Sdavemq	    CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
10659ac0c16Sdavemq
10759ac0c16Sdavemq#	Include common targets.
10859ac0c16Sdavemq#
10959ac0c16Sdavemqinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
110