Makefile revision dc0093f44ee4fac928e006850f8ed53f68277af5
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# If applicable, add the following below this CDDL HEADER, with the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# CDDL HEADER END
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#ident "%Z%%M% %I% %E% SMI"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweROOT_MISC_DIR = $(ROOT)/platform/sun4v/kernel/misc
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSTANDLIBS += $(ROOT)/usr/lib/sparcv9/libstanddisasm.so
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(FINDFP) -x kaif_resume -x kaif_trap_common $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Uncomment the following line to enable trap accounting. A DTLB translation
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# will be added for the trap table, and each handler installed by KMDB will use
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# its padding to keep a trap count. See kaif_handlers.s.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#TRAPCOUNT = -DKMDB_TRAPCOUNT
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPPFLAGS += -I../../../sparc/mdb -I.. -I$(SRC)/uts/sun4 -I$(SRC)/uts/sun4v
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPPFLAGS += -I$(SRC)/cmd/mdb/sparc/v9 -I$(SRC)/cmd/mdb/sparc/v9/kmdb
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweASFLAGS += -xarch=v9d -I$(SRC)/uts/sun4 -I$(SRC)/uts/sun4v $(TRAPCOUNT)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweASFLAGS += -I$(SRC)/cmd/mdb/sparc/v9 -I$(SRC)/cmd/mdb/sparc/v9/kmdb
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(LINT) $(ALLLINTFLAGS) $(KMDBOBJS:%.o=%.ln) $(PROMOBJS:%.o=%.ln)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(OFFSETS_CREATE) <../../../sparc/kmdb/kaif_off.in >$@
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovkmdb_context_off.h: ../../../sparc/kmdb/kmdb_context_off.in
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(OFFSETS_CREATE) <../../../sparc/kmdb/kmdb_context_off.in >$@
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Dynamic rules for object construction
$(LINT.c) -c $<
$(LINT.c) -c $<
$(LINT.s) -c $<
$(LINT.c) -c $<
$(LINT.s) -c $<
$(LINT.c) -c $<
$(LINT.c) -c $<
$(LINT.s) -c $<
$(LINT.s) -c $<
$(LINT.c) -c $<
-$(INS.dir.root.sys)
$(INS.file)
$(INS.file)