Makefile revision 3066:2a2af34f0642
175900Sjoe#
275900Sjoe# CDDL HEADER START
375900Sjoe#
475900Sjoe# The contents of this file are subject to the terms of the
575900Sjoe# Common Development and Distribution License (the "License").
675900Sjoe# You may not use this file except in compliance with the License.
775900Sjoe#
875900Sjoe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
975900Sjoe# or http://www.opensolaris.org/os/licensing.
1075900Sjoe# See the License for the specific language governing permissions
1175900Sjoe# and limitations under the License.
1275900Sjoe#
1375900Sjoe# When distributing Covered Code, include this CDDL HEADER in each
1475900Sjoe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1575900Sjoe# If applicable, add the following below this CDDL HEADER, with the
1675900Sjoe# fields enclosed by brackets "[]" replaced with your own identifying
1775900Sjoe# information: Portions Copyright [yyyy] [name of copyright owner]
1875900Sjoe#
1975900Sjoe# CDDL HEADER END
2075900Sjoe#
2175900Sjoe#
2275900Sjoe# uts/i86pc/rootnex/Makefile
2375900Sjoe# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2475900Sjoe# Use is subject to license terms.
2575900Sjoe#
2675900Sjoe#ident	"%Z%%M%	%I%	%E% SMI"
2775900Sjoe#
2875900Sjoe#	This makefile drives the production of the rootnex driver
2975900Sjoe#
3075900Sjoe#	i86pc implementation architecture dependent
3175900Sjoe#
3275900Sjoe
3375900Sjoe#
3475900Sjoe#	Path to the base of the uts directory tree (usually /usr/src/uts).
3575900Sjoe#
3675900SjoeUTSBASE	= ../..
3775900Sjoe
3875900Sjoe#
3975900Sjoe#	Define the module and object file sets.
4075900Sjoe#
4175900SjoeMODULE		= rootnex
4275900SjoeOBJECTS		= $(ROOTNEX_OBJS:%=$(OBJS_DIR)/%)
4375900SjoeLINTS		= $(ROOTNEX_OBJS:%.o=$(LINTS_DIR)/%.ln)
44244040SeadlerROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
4575900Sjoe
46244040Seadler#
4775900Sjoe#	Include common rules.
4875900Sjoe#
49244040Seadlerinclude $(UTSBASE)/i86pc/Makefile.i86pc
50244040Seadler
51#
52#	Define targets
53#
54ALL_TARGET	= $(BINARY)
55LINT_TARGET	= $(MODULE).lint
56INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
57
58#
59#	Overrides.
60#
61LDFLAGS		+= -dy
62
63#
64# For now, disable these lint checks; maintainers should endeavor
65# to investigate and remove these for maximum lint coverage.
66# Please do not carry these forward to new Makefiles.
67#
68LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
69LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
70LINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
71
72#
73#	Default build targets.
74#
75.KEEP_STATE:
76
77def:		$(DEF_DEPS)
78
79all:		$(ALL_DEPS)
80
81clean:		$(CLEAN_DEPS)
82
83clobber:	$(CLOBBER_DEPS)
84
85lint:		$(LINT_DEPS)
86
87modlintlib:	$(MODLINTLIB_DEPS)
88
89clean.lint:	$(CLEAN_LINT_DEPS)
90
91install:	$(INSTALL_DEPS)
92
93#
94#	Include common targets.
95#
96include $(UTSBASE)/i86pc/Makefile.targ
97