xref: /titanic_41/usr/src/cmd/mdb/sparc/Makefile.sparcv9 (revision 80e2ca8596e3435bc3b76f3c597833ea0a87f85e)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24# ident	"%Z%%M%	%I%	%E% SMI"
25#
26
27include $(SRC)/cmd/mdb/Makefile.tools
28
29MACHDIR=sparcv9
30MACHMODDIR=/$(MACHDIR)
31
32ROOTMOD = $(ROOT)/usr/lib/mdb/$(MDBTGT)$(MACHMODDIR)
33ROOTKMOD = $(ROOT)/kernel/kmdb$(MACHMODDIR)
34
35CFLAGS = $(CTF_FLAGS) $(XSTRCONST)
36CFLAGS64 += $(CTF_FLAGS) $(XSTRCONST)
37CPPFLAGS += -D_ELF64
38CTFSTABSCFLAGS = $(CFLAGS64) $(CALLSYMS)
39
40LINTTAGS1 = E_BAD_FORMAT_STR2,E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2
41LINTTAGS2 = E_BAD_FORMAT_ARG_TYPE2
42LINTFLAGS64 += -u -erroff=$(LINTTAGS1),$(LINTTAGS2)
43LINTFLAGS = $(LINTFLAGS64)
44
45# Used to locate the SPARC kmdb linktest object
46KMDBDIR = $(SRC)/cmd/mdb/sparc/v9/kmdb
47
48# Used to test objects ($@) for the presence of FP code
49KMDB_FPTEST = \
50	$(FINDFP) $@
51
52PROMINCDIRS += $(SRC)/uts/sparc/v7
53
54LFLAGS = -t -v
55YFLAGS = -d -v
56
57MMU = sfmmu
58ISADIR = sparc/v9
59
60#
61# Dummy `all' target to force `all' to be the first target, so that
62# a `make' will `make all'.
63#
64all:
65
66$$(ROOTMOD)/%: dmod/%
67	$(INS.file)
68
69$$(ROOTKMOD)/%: kmod/%
70	$(INS.file)
71
72$(ROOTMOD): $(ROOT)/usr/lib/mdb/$(MDBTGT)
73	$(INS.dir)
74
75$(ROOTKMOD): $(ROOT)/kernel/kmdb
76	$(INS.dir)
77