xref: /onnv-gate/usr/src/uts/sparc/fbt/Makefile (revision 3066:2a2af34f0642)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*3066Sjg# Common Development and Distribution License (the "License").
6*3066Sjg# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*3066Sjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate
270Sstevel@tonic-gateUTSBASE	= ../..
280Sstevel@tonic-gate
290Sstevel@tonic-gateMODULE		= fbt
300Sstevel@tonic-gateOBJECTS		= $(FBT_OBJS:%=$(OBJS_DIR)/%)
310Sstevel@tonic-gateLINTS		= $(FBT_OBJS:%.o=$(LINTS_DIR)/%.ln)
320Sstevel@tonic-gateROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
330Sstevel@tonic-gateROOTLINK	= $(ROOT_DTRACE_DIR)/$(MODULE)
340Sstevel@tonic-gateCONF_SRCDIR	= $(UTSBASE)/sparc/dtrace
350Sstevel@tonic-gate
360Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.sparc
370Sstevel@tonic-gate
380Sstevel@tonic-gateALL_TARGET	= $(BINARY) $(SRC_CONFILE)
390Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
400Sstevel@tonic-gateINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
410Sstevel@tonic-gate
420Sstevel@tonic-gateCFLAGS		+= $(CCVERBOSE)
430Sstevel@tonic-gateLDFLAGS		+= -dy -Ndrv/dtrace -Nmisc/ctf
440Sstevel@tonic-gate
45*3066Sjg#
46*3066Sjg# For now, disable these lint checks; maintainers should endeavor
47*3066Sjg# to investigate and remove these for maximum lint coverage.
48*3066Sjg# Please do not carry these forward to new Makefiles.
49*3066Sjg#
50*3066SjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
51*3066SjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
52*3066Sjg
530Sstevel@tonic-gate.KEEP_STATE:
540Sstevel@tonic-gate
550Sstevel@tonic-gatedef:		$(DEF_DEPS)
560Sstevel@tonic-gate
570Sstevel@tonic-gateall:		$(ALL_DEPS)
580Sstevel@tonic-gate
590Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
600Sstevel@tonic-gate
610Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
620Sstevel@tonic-gate
630Sstevel@tonic-gatelint:		$(LINT_DEPS)
640Sstevel@tonic-gate
650Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
660Sstevel@tonic-gate
670Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
680Sstevel@tonic-gate
690Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
700Sstevel@tonic-gate
710Sstevel@tonic-gate$(ROOTLINK):	$(ROOT_DTRACE_DIR) $(ROOTMODULE)
720Sstevel@tonic-gate	-$(RM) $@; ln $(ROOTMODULE) $@
730Sstevel@tonic-gate
740Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.targ
75