Makefile.sparcv9 revision 02e56f3f1bfc8d9977bafb8cb5202f576dcded27
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# CDDL HEADER START
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# The contents of this file are subject to the terms of the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Common Development and Distribution License (the "License").
199767f8919635c4928607450d9e0abb932109ceToomas Soome# You may not use this file except in compliance with the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
199767f8919635c4928607450d9e0abb932109ceToomas Soome# or http://www.opensolaris.org/os/licensing.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# See the License for the specific language governing permissions
199767f8919635c4928607450d9e0abb932109ceToomas Soome# and limitations under the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# When distributing Covered Code, include this CDDL HEADER in each
199767f8919635c4928607450d9e0abb932109ceToomas Soome# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If applicable, add the following below this CDDL HEADER, with the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# fields enclosed by brackets "[]" replaced with your own identifying
199767f8919635c4928607450d9e0abb932109ceToomas Soome# information: Portions Copyright [yyyy] [name of copyright owner]
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# CDDL HEADER END
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Use is subject to license terms.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# ident "%Z%%M% %I% %E% SMI"
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude $(SRC)/cmd/mdb/Makefile.tools
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeMACHDIR=sparcv9
199767f8919635c4928607450d9e0abb932109ceToomas SoomeMACHMODDIR=/$(MACHDIR)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeROOTMOD = $(ROOT)/usr/lib/mdb/$(MDBTGT)$(MACHMODDIR)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeROOTKMOD = $(ROOT)/kernel/kmdb$(MACHMODDIR)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS = $(CTF_FLAGS) $(XSTRCONST)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS64 += $(CTF_FLAGS) $(XSTRCONST)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCPPFLAGS += -D_ELF64
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCTFSTABSCFLAGS = $(CFLAGS64) $(CALLSYMS)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLINTTAGS1 = E_BAD_FORMAT_STR2,E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLINTTAGS2 = E_BAD_FORMAT_ARG_TYPE2
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLINTFLAGS64 += -u -erroff=$(LINTTAGS1),$(LINTTAGS2)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLINTFLAGS = $(LINTFLAGS64)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Used to locate the SPARC kmdb linktest object
199767f8919635c4928607450d9e0abb932109ceToomas SoomeKMDBDIR = $(SRC)/cmd/mdb/sparc/v9/kmdb
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Used to test objects ($@) for the presence of FP code
199767f8919635c4928607450d9e0abb932109ceToomas SoomeKMDB_FPTEST = \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(FINDFP) $@
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomePROMINCDIRS += $(SRC)/uts/sparc/v7
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLFLAGS = -t -v
199767f8919635c4928607450d9e0abb932109ceToomas SoomeYFLAGS = -d -v
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeMMU = sfmmu
199767f8919635c4928607450d9e0abb932109ceToomas SoomeISADIR = sparc/v9
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Dummy `all' target to force `all' to be the first target, so that
199767f8919635c4928607450d9e0abb932109ceToomas Soome# a `make' will `make all'.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soomeall:
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$$(ROOTMOD)/%: dmod/%
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(INS.file)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$$(ROOTKMOD)/%: kmod/%
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(INS.file)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(ROOTMOD): $(ROOT)/usr/lib/mdb/$(MDBTGT)
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(INS.dir)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(ROOTKMOD): $(ROOT)/kernel/kmdb
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(INS.dir)
199767f8919635c4928607450d9e0abb932109ceToomas Soome