xref: /titanic_51/usr/src/uts/sun4u/sunfire/simmstat/Makefile (revision 89b43686db1fe9681d80a7cf5662730cb9378cae)
129949e86Sstevel#
229949e86Sstevel# CDDL HEADER START
329949e86Sstevel#
429949e86Sstevel# The contents of this file are subject to the terms of the
529949e86Sstevel# Common Development and Distribution License (the "License").
629949e86Sstevel# You may not use this file except in compliance with the License.
729949e86Sstevel#
829949e86Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
929949e86Sstevel# or http://www.opensolaris.org/os/licensing.
1029949e86Sstevel# See the License for the specific language governing permissions
1129949e86Sstevel# and limitations under the License.
1229949e86Sstevel#
1329949e86Sstevel# When distributing Covered Code, include this CDDL HEADER in each
1429949e86Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1529949e86Sstevel# If applicable, add the following below this CDDL HEADER, with the
1629949e86Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
1729949e86Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
1829949e86Sstevel#
1929949e86Sstevel# CDDL HEADER END
2029949e86Sstevel#
2129949e86Sstevel
2229949e86Sstevel#
2329949e86Sstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2429949e86Sstevel# Use is subject to license terms.
25*89b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
2629949e86Sstevel#
2729949e86Sstevel#	This makefile drives the production of the simmstat driver kernel
2829949e86Sstevel#	module.
2929949e86Sstevel#
3029949e86Sstevel#	sun4u implementation architecture dependent
3129949e86Sstevel#
3229949e86Sstevel
3329949e86Sstevel#
3429949e86Sstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
3529949e86Sstevel#
3629949e86SstevelUTSBASE	  = ../../..
3729949e86Sstevel
3829949e86Sstevel#
3929949e86Sstevel#	Define the module and object file sets.
4029949e86Sstevel#
4129949e86SstevelMODULE		= simmstat
4229949e86SstevelOBJECTS		= $(SIMMSTAT_OBJS:%=$(OBJS_DIR)/%)
4329949e86SstevelLINTS		= $(SIMMSTAT_OBJS:%.o=$(LINTS_DIR)/%.ln)
4429949e86SstevelROOTMODULE	= $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE)
4529949e86Sstevel
4629949e86Sstevel#
4729949e86Sstevel#	Include common rules.
4829949e86Sstevel#
4929949e86Sstevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.sunfire
5029949e86Sstevel
5129949e86Sstevel#
5229949e86Sstevel#	Define targets
5329949e86Sstevel#
5429949e86SstevelALL_TARGET	= $(BINARY)
5529949e86SstevelLINT_TARGET	= $(MODULE).lint
5629949e86SstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5729949e86Sstevel
5829949e86Sstevel#
5929949e86Sstevel# lint pass one enforcement
6029949e86Sstevel#
6129949e86SstevelCFLAGS += $(CCVERBOSE)
6229949e86Sstevel
6329949e86Sstevel#
6429949e86Sstevel# Turn on doubleword alignment for 64 bit registers
6529949e86Sstevel#
6629949e86SstevelCFLAGS += -dalign
6729949e86Sstevel
6829949e86Sstevel#
69*89b43686SBayard Bell# Define dependency on fhc
70*89b43686SBayard Bell#
71*89b43686SBayard BellLDFLAGS += -dy -N drv/fhc
72*89b43686SBayard Bell
73*89b43686SBayard Bell#
7429949e86Sstevel#	Default build targets.
7529949e86Sstevel#
7629949e86Sstevel.KEEP_STATE:
7729949e86Sstevel
7829949e86Ssteveldef:		$(DEF_DEPS)
7929949e86Sstevel
8029949e86Sstevelall:		$(ALL_DEPS)
8129949e86Sstevel
8229949e86Sstevelclean:		$(CLEAN_DEPS)
8329949e86Sstevel
8429949e86Sstevelclobber:	$(CLOBBER_DEPS)
8529949e86Sstevel
8629949e86Sstevellint:		$(LINT_DEPS)
8729949e86Sstevel
8829949e86Sstevelmodlintlib:	$(MODLINTLIB_DEPS)
8929949e86Sstevel
9029949e86Sstevelclean.lint:	$(CLEAN_LINT_DEPS)
9129949e86Sstevel
9229949e86Sstevelinstall:	$(INSTALL_DEPS)
9329949e86Sstevel
9429949e86Sstevel#
9529949e86Sstevel#	Include common targets.
9629949e86Sstevel#
9729949e86Sstevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.targ
98