xref: /titanic_41/usr/src/uts/intel/heci/Makefile (revision 617e2443dfc17fe44fd44c0675d6aad2ffc9df42)
1*617e2443SMark Logan#
2*617e2443SMark Logan# CDDL HEADER START
3*617e2443SMark Logan#
4*617e2443SMark Logan# The contents of this file are subject to the terms of the
5*617e2443SMark Logan# Common Development and Distribution License (the "License").
6*617e2443SMark Logan# You may not use this file except in compliance with the License.
7*617e2443SMark Logan#
8*617e2443SMark Logan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*617e2443SMark Logan# or http://www.opensolaris.org/os/licensing.
10*617e2443SMark Logan# See the License for the specific language governing permissions
11*617e2443SMark Logan# and limitations under the License.
12*617e2443SMark Logan#
13*617e2443SMark Logan# When distributing Covered Code, include this CDDL HEADER in each
14*617e2443SMark Logan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*617e2443SMark Logan# If applicable, add the following below this CDDL HEADER, with the
16*617e2443SMark Logan# fields enclosed by brackets "[]" replaced with your own identifying
17*617e2443SMark Logan# information: Portions Copyright [yyyy] [name of copyright owner]
18*617e2443SMark Logan#
19*617e2443SMark Logan# CDDL HEADER END
20*617e2443SMark Logan#
21*617e2443SMark Logan#
22*617e2443SMark Logan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*617e2443SMark Logan# Use is subject to license terms.
24*617e2443SMark Logan#
25*617e2443SMark Logan#	intel architecture dependent
26*617e2443SMark Logan#
27*617e2443SMark Logan
28*617e2443SMark Logan#
29*617e2443SMark Logan#	Path to the base of the uts directory tree (usually /usr/src/uts).
30*617e2443SMark Logan#
31*617e2443SMark LoganUTSBASE	= ../..
32*617e2443SMark Logan
33*617e2443SMark Logan#
34*617e2443SMark Logan#	Define the module and object file sets.
35*617e2443SMark Logan#
36*617e2443SMark LoganMODULE		= heci
37*617e2443SMark LoganOBJECTS		= $(HECI_OBJS:%=$(OBJS_DIR)/%)
38*617e2443SMark LoganLINTS		= $(HECI_OBJS:%.o=$(LINTS_DIR)/%.ln)
39*617e2443SMark LoganROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
40*617e2443SMark Logan
41*617e2443SMark LoganLDFLAGS +=	-dy
42*617e2443SMark Logan#
43*617e2443SMark Logan#	Include common rules.
44*617e2443SMark Logan#
45*617e2443SMark Loganinclude $(UTSBASE)/intel/Makefile.intel
46*617e2443SMark Logan
47*617e2443SMark Logan#
48*617e2443SMark Logan#	Define targets
49*617e2443SMark Logan#
50*617e2443SMark LoganALL_TARGET	= $(BINARY)
51*617e2443SMark LoganLINT_TARGET	= $(MODULE).lint
52*617e2443SMark LoganINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
53*617e2443SMark Logan
54*617e2443SMark Logan#
55*617e2443SMark Logan#	Default build targets.
56*617e2443SMark Logan#
57*617e2443SMark Logan.KEEP_STATE:
58*617e2443SMark Logan
59*617e2443SMark Logandef:		$(DEF_DEPS)
60*617e2443SMark Logan
61*617e2443SMark Loganall:		$(ALL_DEPS)
62*617e2443SMark Logan
63*617e2443SMark Loganclean:		$(CLEAN_DEPS)
64*617e2443SMark Logan
65*617e2443SMark Loganclobber:	$(CLOBBER_DEPS)
66*617e2443SMark Logan
67*617e2443SMark Logan#
68*617e2443SMark Logan# we're not linting heci. Will revisit
69*617e2443SMark Logan#
70*617e2443SMark Logan
71*617e2443SMark Loganlint:		$(LINT_DEPS)
72*617e2443SMark Logan
73*617e2443SMark Loganmodlintlib:	$(MODLINTLIB_DEPS)
74*617e2443SMark Logan
75*617e2443SMark Loganclean.lint:	$(CLEAN_LINT_DEPS)
76*617e2443SMark Logan
77*617e2443SMark Loganinstall:	$(INSTALL_DEPS)
78*617e2443SMark Logan
79*617e2443SMark Logan#
80*617e2443SMark Logan#	Include common targets.
81*617e2443SMark Logan#
82*617e2443SMark Loganinclude $(UTSBASE)/intel/Makefile.targ
83