xref: /titanic_44/usr/src/uts/sun4u/sunfire/fhc/Makefile (revision 29949e866e40b95795203f3ee46f44a197c946e4)
1*29949e86Sstevel#
2*29949e86Sstevel# CDDL HEADER START
3*29949e86Sstevel#
4*29949e86Sstevel# The contents of this file are subject to the terms of the
5*29949e86Sstevel# Common Development and Distribution License (the "License").
6*29949e86Sstevel# You may not use this file except in compliance with the License.
7*29949e86Sstevel#
8*29949e86Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*29949e86Sstevel# or http://www.opensolaris.org/os/licensing.
10*29949e86Sstevel# See the License for the specific language governing permissions
11*29949e86Sstevel# and limitations under the License.
12*29949e86Sstevel#
13*29949e86Sstevel# When distributing Covered Code, include this CDDL HEADER in each
14*29949e86Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*29949e86Sstevel# If applicable, add the following below this CDDL HEADER, with the
16*29949e86Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
17*29949e86Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
18*29949e86Sstevel#
19*29949e86Sstevel# CDDL HEADER END
20*29949e86Sstevel#
21*29949e86Sstevel
22*29949e86Sstevel#
23*29949e86Sstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*29949e86Sstevel# Use is subject to license terms.
25*29949e86Sstevel#
26*29949e86Sstevel#ident	"%Z%%M%	%I%	%E% SMI"
27*29949e86Sstevel#
28*29949e86Sstevel#	This makefile drives the production of the fhc driver kernel module.
29*29949e86Sstevel#
30*29949e86Sstevel#	sun4u implementation architecture dependent
31*29949e86Sstevel#
32*29949e86Sstevel
33*29949e86Sstevel#
34*29949e86Sstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*29949e86Sstevel#
36*29949e86SstevelUTSBASE	  = ../../..
37*29949e86Sstevel
38*29949e86Sstevel#
39*29949e86Sstevel#	Define the module and object file sets.
40*29949e86Sstevel#
41*29949e86SstevelMODULE		= fhc
42*29949e86SstevelOBJECTS		= $(FHC_OBJS:%=$(OBJS_DIR)/%)
43*29949e86SstevelLINTS		= $(FHC_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*29949e86SstevelROOTMODULE	= $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE)
45*29949e86SstevelCONF_SRCDIR	= $(UTSBASE)/sun4u/sunfire/io
46*29949e86Sstevel
47*29949e86Sstevel#
48*29949e86Sstevel#	Include common rules.
49*29949e86Sstevel#
50*29949e86Sstevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.sunfire
51*29949e86Sstevel
52*29949e86Sstevel#
53*29949e86Sstevel#	Define targets
54*29949e86Sstevel#
55*29949e86SstevelALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
56*29949e86SstevelLINT_TARGET	= $(MODULE).lint
57*29949e86SstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
58*29949e86Sstevel
59*29949e86Sstevel#
60*29949e86Sstevel# lint pass one enforcement
61*29949e86Sstevel#
62*29949e86SstevelCFLAGS += $(CCVERBOSE)
63*29949e86Sstevel
64*29949e86Sstevel#
65*29949e86Sstevel# Turn on doubleword alignment for 64 bit registers
66*29949e86Sstevel#
67*29949e86SstevelCFLAGS += -dalign
68*29949e86Sstevel
69*29949e86Sstevel#
70*29949e86Sstevel#	Default build targets.
71*29949e86Sstevel#
72*29949e86Sstevel.KEEP_STATE:
73*29949e86Sstevel
74*29949e86Ssteveldef:		$(DEF_DEPS)
75*29949e86Sstevel
76*29949e86Sstevelall:		$(ALL_DEPS)
77*29949e86Sstevel
78*29949e86Sstevelclean:		$(CLEAN_DEPS)
79*29949e86Sstevel
80*29949e86Sstevelclobber:	$(CLOBBER_DEPS)
81*29949e86Sstevel
82*29949e86Sstevellint:		$(LINT_DEPS)
83*29949e86Sstevel
84*29949e86Sstevelmodlintlib:	$(MODLINTLIB_DEPS)
85*29949e86Sstevel
86*29949e86Sstevelclean.lint:	$(CLEAN_LINT_DEPS)
87*29949e86Sstevel
88*29949e86Sstevelinstall:	$(INSTALL_DEPS)
89*29949e86Sstevel
90*29949e86Sstevel#
91*29949e86Sstevel#	Include common targets.
92*29949e86Sstevel#
93*29949e86Sstevelinclude $(UTSBASE)/sun4u/sunfire/Makefile.targ
94