xref: /titanic_44/usr/src/uts/intel/nulldriver/Makefile (revision 62a24de03df1f2399ceda704cb3874dabc98bbbd)
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 HorneLINTS		= $(NULLDRIVER_OBJS:%.o=$(LINTS_DIR)/%.ln)
42*62a24de0SChris HorneROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43*62a24de0SChris Horne
44*62a24de0SChris Horne#
45*62a24de0SChris Horne#	Include common rules.
46*62a24de0SChris Horne#
47*62a24de0SChris Horneinclude $(UTSBASE)/Makefile.uts
48*62a24de0SChris Horneinclude $(UTSBASE)/intel/Makefile.intel
49*62a24de0SChris Horne
50*62a24de0SChris Horne#
51*62a24de0SChris Horne#	Define targets
52*62a24de0SChris Horne#
53*62a24de0SChris HorneALL_TARGET	= $(BINARY)
54*62a24de0SChris HorneLINT_TARGET	= $(MODULE).lint
55*62a24de0SChris HorneINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
56*62a24de0SChris Horne
57*62a24de0SChris Horne#
58*62a24de0SChris Horne#	header file directories
59*62a24de0SChris Horne#
60*62a24de0SChris HorneINC_PATH	+= -I$(ROOT)/usr/include
61*62a24de0SChris Horne
62*62a24de0SChris Horne#
63*62a24de0SChris Horne#	Overrides
64*62a24de0SChris Horne#
65*62a24de0SChris HorneLDFLAGS		+= -dy
66*62a24de0SChris Horne
67*62a24de0SChris Horne#
68*62a24de0SChris Horne#	Default build targets.
69*62a24de0SChris Horne#
70*62a24de0SChris Horne.KEEP_STATE:
71*62a24de0SChris Horne
72*62a24de0SChris Hornedef:		$(DEF_DEPS)
73*62a24de0SChris Horne
74*62a24de0SChris Horneall:		$(ALL_DEPS)
75*62a24de0SChris Horne
76*62a24de0SChris Horneclean:		$(CLEAN_DEPS)
77*62a24de0SChris Horne
78*62a24de0SChris Horneclobber:	$(CLOBBER_DEPS)
79*62a24de0SChris Horne
80*62a24de0SChris Hornelint:		$(LINT_DEPS)
81*62a24de0SChris Horne
82*62a24de0SChris Hornewarlock:
83*62a24de0SChris Horne	@echo warlock is not supported
84*62a24de0SChris Horne
85*62a24de0SChris Hornemodlintlib:	$(MODLINTLIB_DEPS)
86*62a24de0SChris Horne
87*62a24de0SChris Horneclean.lint:	$(CLEAN_LINT_DEPS)
88*62a24de0SChris Horne
89*62a24de0SChris Horneinstall:	$(INSTALL_DEPS)
90*62a24de0SChris Horne
91*62a24de0SChris Horne#
92*62a24de0SChris Horne#	Include common targets.
93*62a24de0SChris Horne#
94*62a24de0SChris Horneinclude $(UTSBASE)/intel/Makefile.targ
95