xref: /titanic_41/usr/src/uts/i86pc/ioat/Makefile (revision 17169044f903cb92234f23d0ba0ce43449614a4d)
1*17169044Sbrutus#
2*17169044Sbrutus# CDDL HEADER START
3*17169044Sbrutus#
4*17169044Sbrutus# The contents of this file are subject to the terms of the
5*17169044Sbrutus# Common Development and Distribution License (the "License").
6*17169044Sbrutus# You may not use this file except in compliance with the License.
7*17169044Sbrutus#
8*17169044Sbrutus# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*17169044Sbrutus# or http://www.opensolaris.org/os/licensing.
10*17169044Sbrutus# See the License for the specific language governing permissions
11*17169044Sbrutus# and limitations under the License.
12*17169044Sbrutus#
13*17169044Sbrutus# When distributing Covered Code, include this CDDL HEADER in each
14*17169044Sbrutus# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*17169044Sbrutus# If applicable, add the following below this CDDL HEADER, with the
16*17169044Sbrutus# fields enclosed by brackets "[]" replaced with your own identifying
17*17169044Sbrutus# information: Portions Copyright [yyyy] [name of copyright owner]
18*17169044Sbrutus#
19*17169044Sbrutus# CDDL HEADER END
20*17169044Sbrutus#
21*17169044Sbrutus#
22*17169044Sbrutus# uts/i86pc/ioat/Makefile
23*17169044Sbrutus#
24*17169044Sbrutus# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
25*17169044Sbrutus# Use is subject to license terms.
26*17169044Sbrutus#
27*17169044Sbrutus#pragma ident	"%Z%%M%	%I%	%E% SMI"
28*17169044Sbrutus#
29*17169044Sbrutus#	This makefile drives the production of the ioat driver kernel
30*17169044Sbrutus#	module.
31*17169044Sbrutus#
32*17169044Sbrutus
33*17169044Sbrutus#
34*17169044Sbrutus#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*17169044Sbrutus#
36*17169044SbrutusUTSBASE	= ../..
37*17169044Sbrutus
38*17169044Sbrutus#
39*17169044Sbrutus#	Define the module and object file sets.
40*17169044Sbrutus#
41*17169044SbrutusMODULE		= ioat
42*17169044SbrutusOBJECTS		= $(IOAT_OBJS:%=$(OBJS_DIR)/%)
43*17169044SbrutusLINTS		= $(IOAT_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*17169044SbrutusROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
45*17169044SbrutusCONF_SRCDIR     = $(UTSBASE)/i86pc/io/ioat
46*17169044Sbrutus
47*17169044Sbrutus#
48*17169044Sbrutus#	Include common rules.
49*17169044Sbrutus#
50*17169044Sbrutusinclude $(UTSBASE)/i86pc/Makefile.i86pc
51*17169044Sbrutus
52*17169044Sbrutus#
53*17169044Sbrutus#	Define targets
54*17169044Sbrutus#
55*17169044SbrutusALL_TARGET	= $(BINARY) $(SRC_CONFILE)
56*17169044SbrutusLINT_TARGET	= $(MODULE).lint
57*17169044SbrutusINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
58*17169044Sbrutus
59*17169044SbrutusLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
60*17169044Sbrutus
61*17169044Sbrutus#
62*17169044Sbrutus#	Dependency
63*17169044Sbrutus#
64*17169044SbrutusLDFLAGS		+= -dy -Nmisc/dcopy
65*17169044Sbrutus
66*17169044Sbrutus#
67*17169044Sbrutus#	Override defaults to build a unique, local modstubs.o.
68*17169044Sbrutus#
69*17169044SbrutusMODSTUBS_DIR	 = $(OBJS_DIR)
70*17169044SbrutusCLEANFILES	+= $(MODSTUBS_O)
71*17169044Sbrutus
72*17169044Sbrutus#
73*17169044Sbrutus#	Default build targets.
74*17169044Sbrutus#
75*17169044Sbrutus.KEEP_STATE:
76*17169044Sbrutus
77*17169044Sbrutusdef:		$(DEF_DEPS)
78*17169044Sbrutus
79*17169044Sbrutusall:		$(ALL_DEPS)
80*17169044Sbrutus
81*17169044Sbrutusclean:		$(CLEAN_DEPS)
82*17169044Sbrutus
83*17169044Sbrutusclobber:	$(CLOBBER_DEPS)
84*17169044Sbrutus
85*17169044Sbrutuslint:		$(LINT_DEPS)
86*17169044Sbrutus
87*17169044Sbrutusmodlintlib:	$(MODLINTLIB_DEPS)
88*17169044Sbrutus
89*17169044Sbrutusclean.lint:	$(CLEAN_LINT_DEPS)
90*17169044Sbrutus
91*17169044Sbrutusinstall:	$(INSTALL_DEPS)
92*17169044Sbrutus
93*17169044Sbrutus#
94*17169044Sbrutus#	Include common targets.
95*17169044Sbrutus#
96*17169044Sbrutusinclude $(UTSBASE)/i86pc/Makefile.targ
97*17169044Sbrutus
98