xref: /titanic_41/usr/src/uts/i86pc/ioat/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
117169044Sbrutus#
217169044Sbrutus# CDDL HEADER START
317169044Sbrutus#
417169044Sbrutus# The contents of this file are subject to the terms of the
517169044Sbrutus# Common Development and Distribution License (the "License").
617169044Sbrutus# You may not use this file except in compliance with the License.
717169044Sbrutus#
817169044Sbrutus# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
917169044Sbrutus# or http://www.opensolaris.org/os/licensing.
1017169044Sbrutus# See the License for the specific language governing permissions
1117169044Sbrutus# and limitations under the License.
1217169044Sbrutus#
1317169044Sbrutus# When distributing Covered Code, include this CDDL HEADER in each
1417169044Sbrutus# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1517169044Sbrutus# If applicable, add the following below this CDDL HEADER, with the
1617169044Sbrutus# fields enclosed by brackets "[]" replaced with your own identifying
1717169044Sbrutus# information: Portions Copyright [yyyy] [name of copyright owner]
1817169044Sbrutus#
1917169044Sbrutus# CDDL HEADER END
2017169044Sbrutus#
2117169044Sbrutus#
2217169044Sbrutus# uts/i86pc/ioat/Makefile
2317169044Sbrutus#
2417169044Sbrutus# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2517169044Sbrutus# Use is subject to license terms.
2617169044Sbrutus#
27*7014882cSRichard Lowe
2817169044Sbrutus#
2917169044Sbrutus#	This makefile drives the production of the ioat driver kernel
3017169044Sbrutus#	module.
3117169044Sbrutus#
3217169044Sbrutus
3317169044Sbrutus#
3417169044Sbrutus#	Path to the base of the uts directory tree (usually /usr/src/uts).
3517169044Sbrutus#
3617169044SbrutusUTSBASE	= ../..
3717169044Sbrutus
3817169044Sbrutus#
3917169044Sbrutus#	Define the module and object file sets.
4017169044Sbrutus#
4117169044SbrutusMODULE		= ioat
4217169044SbrutusOBJECTS		= $(IOAT_OBJS:%=$(OBJS_DIR)/%)
4317169044SbrutusLINTS		= $(IOAT_OBJS:%.o=$(LINTS_DIR)/%.ln)
4417169044SbrutusROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
4517169044SbrutusCONF_SRCDIR     = $(UTSBASE)/i86pc/io/ioat
4617169044Sbrutus
4717169044Sbrutus#
4817169044Sbrutus#	Include common rules.
4917169044Sbrutus#
5017169044Sbrutusinclude $(UTSBASE)/i86pc/Makefile.i86pc
5117169044Sbrutus
5217169044Sbrutus#
5317169044Sbrutus#	Define targets
5417169044Sbrutus#
5517169044SbrutusALL_TARGET	= $(BINARY) $(SRC_CONFILE)
5617169044SbrutusLINT_TARGET	= $(MODULE).lint
5717169044SbrutusINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
5817169044Sbrutus
5917169044SbrutusLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
6017169044Sbrutus
61*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
62*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
63*7014882cSRichard Lowe
6417169044Sbrutus#
6517169044Sbrutus#	Dependency
6617169044Sbrutus#
6717169044SbrutusLDFLAGS		+= -dy -Nmisc/dcopy
6817169044Sbrutus
6917169044Sbrutus#
7017169044Sbrutus#	Override defaults to build a unique, local modstubs.o.
7117169044Sbrutus#
7217169044SbrutusMODSTUBS_DIR	 = $(OBJS_DIR)
7317169044SbrutusCLEANFILES	+= $(MODSTUBS_O)
7417169044Sbrutus
7517169044Sbrutus#
7617169044Sbrutus#	Default build targets.
7717169044Sbrutus#
7817169044Sbrutus.KEEP_STATE:
7917169044Sbrutus
8017169044Sbrutusdef:		$(DEF_DEPS)
8117169044Sbrutus
8217169044Sbrutusall:		$(ALL_DEPS)
8317169044Sbrutus
8417169044Sbrutusclean:		$(CLEAN_DEPS)
8517169044Sbrutus
8617169044Sbrutusclobber:	$(CLOBBER_DEPS)
8717169044Sbrutus
8817169044Sbrutuslint:		$(LINT_DEPS)
8917169044Sbrutus
9017169044Sbrutusmodlintlib:	$(MODLINTLIB_DEPS)
9117169044Sbrutus
9217169044Sbrutusclean.lint:	$(CLEAN_LINT_DEPS)
9317169044Sbrutus
9417169044Sbrutusinstall:	$(INSTALL_DEPS)
9517169044Sbrutus
9617169044Sbrutus#
9717169044Sbrutus#	Include common targets.
9817169044Sbrutus#
9917169044Sbrutusinclude $(UTSBASE)/i86pc/Makefile.targ
10017169044Sbrutus
101