xref: /titanic_41/usr/src/uts/sun4u/sunfire/ac/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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.
2589b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
2629949e86Sstevel#
2729949e86Sstevel#	This makefile drives the production of the ac driver kernel module.
2829949e86Sstevel#
2929949e86Sstevel#	sun4u implementation architecture dependent
3029949e86Sstevel#
3129949e86Sstevel
3229949e86Sstevel#
3329949e86Sstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
3429949e86Sstevel#
3529949e86SstevelUTSBASE	  = ../../..
3629949e86Sstevel
3729949e86Sstevel#
3829949e86Sstevel#	Define the module and object file sets.
3929949e86Sstevel#
4029949e86SstevelMODULE		= ac
4129949e86SstevelOBJECTS		= $(AC_OBJS:%=$(OBJS_DIR)/%)
4229949e86SstevelLINTS		= $(AC_OBJS:%.o=$(LINTS_DIR)/%.ln)
4329949e86SstevelROOTMODULE	= $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE)
4429949e86Sstevel
4529949e86Sstevel#
4629949e86Sstevel#	Include common rules.
4729949e86Sstevel#
4829949e86Sstevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.sunfire
4929949e86Sstevel
5029949e86Sstevel#
5129949e86Sstevel#	Define targets
5229949e86Sstevel#
5329949e86SstevelALL_TARGET	= $(BINARY)
5429949e86SstevelLINT_TARGET	= $(MODULE).lint
5529949e86SstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5629949e86Sstevel
5729949e86Sstevel#
5829949e86Sstevel# lint pass one enforcement
5929949e86Sstevel#
6029949e86SstevelCFLAGS += $(CCVERBOSE)
61*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
6229949e86Sstevel
6329949e86Sstevel#
6429949e86Sstevel# Turn on doubleword alignment for 64 bit registers
6529949e86Sstevel#
6629949e86SstevelCFLAGS += -dalign
6729949e86Sstevel
6829949e86Sstevel#
6989b43686SBayard Bell# Define dependency on fhc
7089b43686SBayard Bell#
7189b43686SBayard BellLDFLAGS += -dy -N drv/fhc
7289b43686SBayard Bell
7389b43686SBayard 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