xref: /onnv-gate/usr/src/uts/intel/nulldriver/Makefile (revision 8011:9406cd6ea18e)
1*8011SChris.Horne@Sun.COM#
2*8011SChris.Horne@Sun.COM# CDDL HEADER START
3*8011SChris.Horne@Sun.COM#
4*8011SChris.Horne@Sun.COM# The contents of this file are subject to the terms of the
5*8011SChris.Horne@Sun.COM# Common Development and Distribution License (the "License").
6*8011SChris.Horne@Sun.COM# You may not use this file except in compliance with the License.
7*8011SChris.Horne@Sun.COM#
8*8011SChris.Horne@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*8011SChris.Horne@Sun.COM# or http://www.opensolaris.org/os/licensing.
10*8011SChris.Horne@Sun.COM# See the License for the specific language governing permissions
11*8011SChris.Horne@Sun.COM# and limitations under the License.
12*8011SChris.Horne@Sun.COM#
13*8011SChris.Horne@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
14*8011SChris.Horne@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*8011SChris.Horne@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
16*8011SChris.Horne@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
17*8011SChris.Horne@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
18*8011SChris.Horne@Sun.COM#
19*8011SChris.Horne@Sun.COM# CDDL HEADER END
20*8011SChris.Horne@Sun.COM#
21*8011SChris.Horne@Sun.COM# uts/intel/nulldriver/Makefile
22*8011SChris.Horne@Sun.COM#
23*8011SChris.Horne@Sun.COM# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*8011SChris.Horne@Sun.COM# Use is subject to license terms.
25*8011SChris.Horne@Sun.COM#
26*8011SChris.Horne@Sun.COM# This makefile drives the production of nulldriver kernel module.
27*8011SChris.Horne@Sun.COM#
28*8011SChris.Horne@Sun.COM# i86pc architecture dependent
29*8011SChris.Horne@Sun.COM#
30*8011SChris.Horne@Sun.COM
31*8011SChris.Horne@Sun.COM#
32*8011SChris.Horne@Sun.COM#	Path to the base of the uts directory tree (usually /usr/src/uts).
33*8011SChris.Horne@Sun.COM#
34*8011SChris.Horne@Sun.COMUTSBASE	= ../..
35*8011SChris.Horne@Sun.COM
36*8011SChris.Horne@Sun.COM#
37*8011SChris.Horne@Sun.COM#	Define the module and object file sets.
38*8011SChris.Horne@Sun.COM#
39*8011SChris.Horne@Sun.COMMODULE		= nulldriver
40*8011SChris.Horne@Sun.COMOBJECTS		= $(NULLDRIVER_OBJS:%=$(OBJS_DIR)/%)
41*8011SChris.Horne@Sun.COMLINTS		= $(NULLDRIVER_OBJS:%.o=$(LINTS_DIR)/%.ln)
42*8011SChris.Horne@Sun.COMROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43*8011SChris.Horne@Sun.COM
44*8011SChris.Horne@Sun.COM#
45*8011SChris.Horne@Sun.COM#	Include common rules.
46*8011SChris.Horne@Sun.COM#
47*8011SChris.Horne@Sun.COMinclude $(UTSBASE)/Makefile.uts
48*8011SChris.Horne@Sun.COMinclude $(UTSBASE)/intel/Makefile.intel
49*8011SChris.Horne@Sun.COM
50*8011SChris.Horne@Sun.COM#
51*8011SChris.Horne@Sun.COM#	Define targets
52*8011SChris.Horne@Sun.COM#
53*8011SChris.Horne@Sun.COMALL_TARGET	= $(BINARY)
54*8011SChris.Horne@Sun.COMLINT_TARGET	= $(MODULE).lint
55*8011SChris.Horne@Sun.COMINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
56*8011SChris.Horne@Sun.COM
57*8011SChris.Horne@Sun.COM#
58*8011SChris.Horne@Sun.COM#	header file directories
59*8011SChris.Horne@Sun.COM#
60*8011SChris.Horne@Sun.COMINC_PATH	+= -I$(ROOT)/usr/include
61*8011SChris.Horne@Sun.COM
62*8011SChris.Horne@Sun.COM#
63*8011SChris.Horne@Sun.COM#	Overrides
64*8011SChris.Horne@Sun.COM#
65*8011SChris.Horne@Sun.COMLDFLAGS		+= -dy
66*8011SChris.Horne@Sun.COM
67*8011SChris.Horne@Sun.COM#
68*8011SChris.Horne@Sun.COM#	Default build targets.
69*8011SChris.Horne@Sun.COM#
70*8011SChris.Horne@Sun.COM.KEEP_STATE:
71*8011SChris.Horne@Sun.COM
72*8011SChris.Horne@Sun.COMdef:		$(DEF_DEPS)
73*8011SChris.Horne@Sun.COM
74*8011SChris.Horne@Sun.COMall:		$(ALL_DEPS)
75*8011SChris.Horne@Sun.COM
76*8011SChris.Horne@Sun.COMclean:		$(CLEAN_DEPS)
77*8011SChris.Horne@Sun.COM
78*8011SChris.Horne@Sun.COMclobber:	$(CLOBBER_DEPS)
79*8011SChris.Horne@Sun.COM
80*8011SChris.Horne@Sun.COMlint:		$(LINT_DEPS)
81*8011SChris.Horne@Sun.COM
82*8011SChris.Horne@Sun.COMwarlock:
83*8011SChris.Horne@Sun.COM	@echo warlock is not supported
84*8011SChris.Horne@Sun.COM
85*8011SChris.Horne@Sun.COMmodlintlib:	$(MODLINTLIB_DEPS)
86*8011SChris.Horne@Sun.COM
87*8011SChris.Horne@Sun.COMclean.lint:	$(CLEAN_LINT_DEPS)
88*8011SChris.Horne@Sun.COM
89*8011SChris.Horne@Sun.COMinstall:	$(INSTALL_DEPS)
90*8011SChris.Horne@Sun.COM
91*8011SChris.Horne@Sun.COM#
92*8011SChris.Horne@Sun.COM#	Include common targets.
93*8011SChris.Horne@Sun.COM#
94*8011SChris.Horne@Sun.COMinclude $(UTSBASE)/intel/Makefile.targ
95