xref: /titanic_52/usr/src/uts/sun4v/niumx/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
144961713Sgirish#
244961713Sgirish# CDDL HEADER START
344961713Sgirish#
444961713Sgirish# The contents of this file are subject to the terms of the
544961713Sgirish# Common Development and Distribution License (the "License").
644961713Sgirish# You may not use this file except in compliance with the License.
744961713Sgirish#
844961713Sgirish# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
944961713Sgirish# or http://www.opensolaris.org/os/licensing.
1044961713Sgirish# See the License for the specific language governing permissions
1144961713Sgirish# and limitations under the License.
1244961713Sgirish#
1344961713Sgirish# When distributing Covered Code, include this CDDL HEADER in each
1444961713Sgirish# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1544961713Sgirish# If applicable, add the following below this CDDL HEADER, with the
1644961713Sgirish# fields enclosed by brackets "[]" replaced with your own identifying
1744961713Sgirish# information: Portions Copyright [yyyy] [name of copyright owner]
1844961713Sgirish#
1944961713Sgirish# CDDL HEADER END
2044961713Sgirish#
2144961713Sgirish#
2244961713Sgirish# uts/sun4v/niumx/Makefile
2326947304SEvan Yan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2444961713Sgirish# Use is subject to license terms.
2544961713Sgirish#
2644961713Sgirish
2744961713Sgirish#	This makefile drives the production of the niumx driver kernel module
2844961713Sgirish#
2944961713Sgirish#	sun4v implementation architecture dependent
3044961713Sgirish#
3144961713Sgirish
3244961713Sgirish#
3344961713Sgirish#	Path to the base of the uts directory tree (usually /usr/src/uts).
3444961713Sgirish#
3544961713SgirishUTSBASE	= ../..
3644961713Sgirish
3744961713Sgirish#
3844961713Sgirish#	Define the module and object file sets.
3944961713Sgirish#
4044961713SgirishMODULE		= niumx
4144961713SgirishOBJECTS		= $(NIUMX_OBJS:%=$(OBJS_DIR)/%)
4244961713SgirishLINTS		= $(NIUMX_OBJS:%.o=$(LINTS_DIR)/%.ln)
4344961713SgirishROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
4444961713Sgirish
4544961713Sgirish#
4644961713Sgirish#	Include common rules.
4744961713Sgirish#
4844961713Sgirishinclude $(UTSBASE)/sun4v/Makefile.sun4v
4944961713Sgirish
5044961713Sgirish#
5144961713Sgirish#	Define targets
5244961713Sgirish#
5344961713SgirishALL_TARGET	= $(BINARY)
5444961713SgirishLINT_TARGET	= $(MODULE).lint
5544961713SgirishINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5644961713Sgirish
5744961713Sgirish#
5826947304SEvan Yan#	Include SUN4V specific headers files
5944961713Sgirish#
6044961713SgirishINC_PATH	+= -I$(UTSBASE)/sun4v/io/niumx
6144961713Sgirish
6244961713Sgirish#
6344961713Sgirish# lint pass one enforcement
6444961713Sgirish#
6544961713SgirishCFLAGS += $(CCVERBOSE)
66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
6844961713Sgirish
6944961713Sgirish#
7044961713Sgirish# Turn on doubleword alignment for 64 bit registers
7144961713Sgirish#
7244961713SgirishCFLAGS += -dalign
7344961713Sgirish
7444961713Sgirish#
7544961713Sgirish#	Default build targets.
7644961713Sgirish#
7744961713Sgirish.KEEP_STATE:
7844961713Sgirish
7944961713Sgirishdef:		$(DEF_DEPS)
8044961713Sgirish
8144961713Sgirishall:		$(ALL_DEPS)
8244961713Sgirish
8344961713Sgirishclean:		$(CLEAN_DEPS)
8444961713Sgirish
8544961713Sgirishclobber:	$(CLOBBER_DEPS)
8644961713Sgirish
8744961713Sgirishlint:		$(LINT_DEPS)
8844961713Sgirish
8944961713Sgirishmodlintlib:	$(MODLINTLIB_DEPS)
9044961713Sgirish
9144961713Sgirishclean.lint:	$(CLEAN_LINT_DEPS)
9244961713Sgirish
9344961713Sgirishinstall:	$(INSTALL_DEPS)
9444961713Sgirish
9544961713Sgirish#
9644961713Sgirish#	Include common targets.
9744961713Sgirish#
9844961713Sgirishinclude $(UTSBASE)/sun4v/Makefile.targ
99