xref: /titanic_50/usr/src/uts/sun4u/tazmo/envctrl/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.
2529949e86Sstevel#
26*7014882cSRichard Lowe
2729949e86Sstevel#
2829949e86Sstevel#	This makefile drives the production of the envctrl driver kernel
2929949e86Sstevel#	module.
3029949e86Sstevel#
3129949e86Sstevel#	sun4u implementation architecture dependent
3229949e86Sstevel#
3329949e86Sstevel
3429949e86Sstevel#
3529949e86Sstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
3629949e86Sstevel#
3729949e86SstevelUTSBASE	  = ../../..
3829949e86Sstevel
3929949e86Sstevel#
4029949e86Sstevel#	Define the module and object file sets.
4129949e86Sstevel#
4229949e86SstevelMODULE		= envctrl
4329949e86SstevelOBJECTS		= $(ENVCTRL_OBJS:%=$(OBJS_DIR)/%)
4429949e86SstevelLINTS		= $(ENVCTRL_OBJS:%.o=$(LINTS_DIR)/%.ln)
4529949e86SstevelROOTMODULE	= $(ROOT_TAZMO_DRV_DIR)/$(MODULE)
4629949e86Sstevel
4729949e86Sstevel#
4829949e86Sstevel#	Include common rules.
4929949e86Sstevel#
5029949e86Sstevelinclude $(UTSBASE)/sun4u/tazmo/Makefile.tazmo
5129949e86Sstevel
5229949e86Sstevel#
5329949e86Sstevel#	Define targets
5429949e86Sstevel#
5529949e86SstevelALL_TARGET	= $(BINARY)
5629949e86SstevelLINT_TARGET	= $(MODULE).lint
5729949e86SstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5829949e86Sstevel
5929949e86Sstevel#
6029949e86Sstevel# lint pass one enforcement
6129949e86Sstevel#
6229949e86SstevelCFLAGS += $(CCVERBOSE)
63*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
64*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
65*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits
6629949e86Sstevel
6729949e86Sstevel#
6829949e86Sstevel# Turn on doubleword alignment for 64 bit registers
6929949e86Sstevel#
7029949e86SstevelCFLAGS += -dalign
7129949e86Sstevel
7229949e86SstevelLDFLAGS	+= -dy -Ndrv/pcipsy
7329949e86Sstevel
7429949e86Sstevel#
7529949e86Sstevel#	Default build targets.
7629949e86Sstevel#
7729949e86Sstevel.KEEP_STATE:
7829949e86Sstevel
7929949e86Ssteveldef:		$(DEF_DEPS)
8029949e86Sstevel
8129949e86Sstevelall:		$(ALL_DEPS)
8229949e86Sstevel
8329949e86Sstevelclean:		$(CLEAN_DEPS)
8429949e86Sstevel
8529949e86Sstevelclobber:	$(CLOBBER_DEPS)
8629949e86Sstevel
8729949e86Sstevellint:		$(LINT_DEPS)
8829949e86Sstevel
8929949e86Sstevelmodlintlib:	$(MODLINTLIB_DEPS)
9029949e86Sstevel
9129949e86Sstevelclean.lint:	$(CLEAN_LINT_DEPS)
9229949e86Sstevel
9329949e86Sstevelinstall:	$(INSTALL_DEPS)
9429949e86Sstevel
9529949e86SstevelLINT_LIB_DIR    = $(TAZMO_LINT_LIB_DIR)
9629949e86Sstevel#
9729949e86Sstevel#	Include common targets.
9829949e86Sstevel#
9929949e86Sstevelinclude $(UTSBASE)/sun4u/tazmo/Makefile.targ
100