xref: /illumos-gate/usr/src/uts/intel/nulldriver/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1*62a24de0SChris Horne#
2*62a24de0SChris Horne# CDDL HEADER START
3*62a24de0SChris Horne#
4*62a24de0SChris Horne# The contents of this file are subject to the terms of the
5*62a24de0SChris Horne# Common Development and Distribution License (the "License").
6*62a24de0SChris Horne# You may not use this file except in compliance with the License.
7*62a24de0SChris Horne#
8*62a24de0SChris Horne# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*62a24de0SChris Horne# or http://www.opensolaris.org/os/licensing.
10*62a24de0SChris Horne# See the License for the specific language governing permissions
11*62a24de0SChris Horne# and limitations under the License.
12*62a24de0SChris Horne#
13*62a24de0SChris Horne# When distributing Covered Code, include this CDDL HEADER in each
14*62a24de0SChris Horne# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*62a24de0SChris Horne# If applicable, add the following below this CDDL HEADER, with the
16*62a24de0SChris Horne# fields enclosed by brackets "[]" replaced with your own identifying
17*62a24de0SChris Horne# information: Portions Copyright [yyyy] [name of copyright owner]
18*62a24de0SChris Horne#
19*62a24de0SChris Horne# CDDL HEADER END
20*62a24de0SChris Horne#
21*62a24de0SChris Horne# uts/intel/nulldriver/Makefile
22*62a24de0SChris Horne#
23*62a24de0SChris Horne# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*62a24de0SChris Horne# Use is subject to license terms.
25*62a24de0SChris Horne#
26*62a24de0SChris Horne# This makefile drives the production of nulldriver kernel module.
27*62a24de0SChris Horne#
28*62a24de0SChris Horne# i86pc architecture dependent
29*62a24de0SChris Horne#
30*62a24de0SChris Horne
31*62a24de0SChris Horne#
32*62a24de0SChris Horne#	Path to the base of the uts directory tree (usually /usr/src/uts).
33*62a24de0SChris Horne#
34*62a24de0SChris HorneUTSBASE	= ../..
35*62a24de0SChris Horne
36*62a24de0SChris Horne#
37*62a24de0SChris Horne#	Define the module and object file sets.
38*62a24de0SChris Horne#
39*62a24de0SChris HorneMODULE		= nulldriver
40*62a24de0SChris HorneOBJECTS		= $(NULLDRIVER_OBJS:%=$(OBJS_DIR)/%)
41*62a24de0SChris HorneROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
42*62a24de0SChris Horne
43*62a24de0SChris Horne#
44*62a24de0SChris Horne#	Include common rules.
45*62a24de0SChris Horne#
46*62a24de0SChris Horneinclude $(UTSBASE)/Makefile.uts
47*62a24de0SChris Horneinclude $(UTSBASE)/intel/Makefile.intel
48*62a24de0SChris Horne
49*62a24de0SChris Horne#
50*62a24de0SChris Horne#	Define targets
51*62a24de0SChris Horne#
52*62a24de0SChris HorneALL_TARGET	= $(BINARY)
53*62a24de0SChris HorneINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54*62a24de0SChris Horne
55*62a24de0SChris Horne#
56*62a24de0SChris Horne#	header file directories
57*62a24de0SChris Horne#
58*62a24de0SChris HorneINC_PATH	+= -I$(ROOT)/usr/include
59*62a24de0SChris Horne
60*62a24de0SChris Horne#
61*62a24de0SChris Horne#	Default build targets.
62*62a24de0SChris Horne#
63*62a24de0SChris Horne.KEEP_STATE:
64*62a24de0SChris Horne
65*62a24de0SChris Hornedef:		$(DEF_DEPS)
66*62a24de0SChris Horne
67*62a24de0SChris Horneall:		$(ALL_DEPS)
68*62a24de0SChris Horne
69*62a24de0SChris Horneclean:		$(CLEAN_DEPS)
70*62a24de0SChris Horne
71*62a24de0SChris Horneclobber:	$(CLOBBER_DEPS)
72*62a24de0SChris Horne
73*62a24de0SChris Horneinstall:	$(INSTALL_DEPS)
74*62a24de0SChris Horne
75*62a24de0SChris Horne#
76*62a24de0SChris Horne#	Include common targets.
77*62a24de0SChris Horne#
78*62a24de0SChris Horneinclude $(UTSBASE)/intel/Makefile.targ
79