xref: /titanic_41/usr/src/uts/sun4u/lw2plus/lombus/Makefile (revision 3db86aab554edbb4244c8d1a1c90f152eee768af)
1*3db86aabSstevel#
2*3db86aabSstevel# CDDL HEADER START
3*3db86aabSstevel#
4*3db86aabSstevel# The contents of this file are subject to the terms of the
5*3db86aabSstevel# Common Development and Distribution License (the "License").
6*3db86aabSstevel# You may not use this file except in compliance with the License.
7*3db86aabSstevel#
8*3db86aabSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*3db86aabSstevel# or http://www.opensolaris.org/os/licensing.
10*3db86aabSstevel# See the License for the specific language governing permissions
11*3db86aabSstevel# and limitations under the License.
12*3db86aabSstevel#
13*3db86aabSstevel# When distributing Covered Code, include this CDDL HEADER in each
14*3db86aabSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*3db86aabSstevel# If applicable, add the following below this CDDL HEADER, with the
16*3db86aabSstevel# fields enclosed by brackets "[]" replaced with your own identifying
17*3db86aabSstevel# information: Portions Copyright [yyyy] [name of copyright owner]
18*3db86aabSstevel#
19*3db86aabSstevel# CDDL HEADER END
20*3db86aabSstevel#
21*3db86aabSstevel
22*3db86aabSstevel#
23*3db86aabSstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*3db86aabSstevel# Use is subject to license terms.
25*3db86aabSstevel#
26*3db86aabSstevel#ident	"%Z%%M%	%I%	%E% SMI"
27*3db86aabSstevel#
28*3db86aabSstevel#	This makefile drives the production of the lombus driver kernel
29*3db86aabSstevel#	module in the sun4u LW2plus systems
30*3db86aabSstevel#
31*3db86aabSstevel
32*3db86aabSstevel#
33*3db86aabSstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
34*3db86aabSstevel#
35*3db86aabSstevelUTSBASE   = ../../..
36*3db86aabSstevel
37*3db86aabSstevel#
38*3db86aabSstevel#	Define the module and object file sets.
39*3db86aabSstevel#
40*3db86aabSstevelMODULE		= lombus
41*3db86aabSstevelOBJECTS		= $(LOMBUS_OBJS:%=$(OBJS_DIR)/%)
42*3db86aabSstevelLINTS		= $(LOMBUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
43*3db86aabSstevelROOTMODULE	= $(ROOT_LW2PLUS_DRV_DIR)/$(MODULE)
44*3db86aabSstevelCONF_SRCDIR	= $(UTSBASE)/sun4u/lw2plus/io
45*3db86aabSstevel
46*3db86aabSstevel#
47*3db86aabSstevel#	Include common rules.
48*3db86aabSstevel#
49*3db86aabSstevelinclude $(UTSBASE)/sun4u/lw2plus/Makefile.lw2plus
50*3db86aabSstevel
51*3db86aabSstevel#
52*3db86aabSstevel#	Define targets
53*3db86aabSstevel#
54*3db86aabSstevelALL_TARGET	= $(BINARY) $(SRC_CONFILE)
55*3db86aabSstevelLINT_TARGET	= $(MODULE).lint
56*3db86aabSstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
57*3db86aabSstevel
58*3db86aabSstevel#
59*3db86aabSstevel#	Overrides
60*3db86aabSstevel#
61*3db86aabSstevelALL_BUILDS	= $(ALL_BUILDSONLY64)
62*3db86aabSstevelDEF_BUILDS	= $(DEF_BUILDSONLY64)
63*3db86aabSstevelCLEANLINTFILES	+= $(LINT32_FILES)
64*3db86aabSstevel
65*3db86aabSstevel#
66*3db86aabSstevel# lint pass one enforcement
67*3db86aabSstevel#
68*3db86aabSstevelCFLAGS		+= $(CCVERBOSE)
69*3db86aabSstevel
70*3db86aabSstevel#
71*3db86aabSstevel# Turn on doubleword alignment for 64 bit registers
72*3db86aabSstevel#
73*3db86aabSstevelCFLAGS		+= -dalign
74*3db86aabSstevel
75*3db86aabSstevel#
76*3db86aabSstevel#	Default build targets.
77*3db86aabSstevel#
78*3db86aabSstevel.KEEP_STATE:
79*3db86aabSstevel
80*3db86aabSsteveldef:		$(DEF_DEPS)
81*3db86aabSstevel
82*3db86aabSstevelall:		$(ALL_DEPS)
83*3db86aabSstevel
84*3db86aabSstevelclean:		$(CLEAN_DEPS)
85*3db86aabSstevel
86*3db86aabSstevelclobber:	$(CLOBBER_DEPS)
87*3db86aabSstevel
88*3db86aabSstevellint:		$(LINT_DEPS)
89*3db86aabSstevel
90*3db86aabSstevelmodlintlib:	$(MODLINTLIB_DEPS)
91*3db86aabSstevel
92*3db86aabSstevelclean.lint:	$(CLEAN_LINT_DEPS)
93*3db86aabSstevel
94*3db86aabSstevelinstall:	$(INSTALL_DEPS)
95*3db86aabSstevel
96*3db86aabSstevel#
97*3db86aabSstevel#	Include common targets.
98*3db86aabSstevel#
99*3db86aabSstevelinclude $(UTSBASE)/sun4u/lw2plus/Makefile.targ
100