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