xref: /titanic_41/usr/src/cmd/mdb/sparc/v9/intr/Makefile (revision 1f0f5e3e328e41529296f756090856aa7f239b1c)
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#
22# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26MODULE = intr.so
27MDBTGT = kvm
28
29MODSRCS = intr.c
30
31MDB_DIR= $(ROOT)/usr/lib/mdb/kvm/sparcv9
32MDB_INTR=intr.so
33MDB_PCIPSY=pcipsy.so
34MDB_PCISCH=pcisch.so
35MDB_PX=px.so
36MDB_NIUMX=niumx.so
37
38KMDB_DIR= $(ROOT)/kernel/kmdb/sparcv9
39KMDB_INTR=intr
40KMDB_PCIPSY=pcipsy
41KMDB_PCISCH=pcisch
42KMDB_PX=px
43KMDB_NIUMX=niumx
44
45include ../../../../Makefile.cmd
46include ../../../../Makefile.cmd.64
47include ../../Makefile.sparcv9
48include ../../../Makefile.module
49
50CPPFLAGS += -I$(SRC)/uts/common
51CPPFLAGS += -I$(SRC)/uts/sun4
52CPPFLAGS += -I$(SRC)/uts/sun4/io/px
53CPPFLAGS += -I$(SRC)/uts/sun4u
54CPPFLAGS += -I$(SRC)/uts/sun4v/io/niumx
55CPPFLAGS += -I$(SRC)/uts/sparc/v9
56
57MODSRCS_DIR = ../../../sparc/modules/intr
58
59install: all
60	-$(RM) $(MDB_DIR)/$(MDB_PCIPSY)
61	-$(RM) $(MDB_DIR)/$(MDB_PCISCH)
62	-$(RM) $(MDB_DIR)/$(MDB_PX)
63	-$(RM) $(MDB_DIR)/$(MDB_NIUMX)
64	-cd $(MDB_DIR); $(SYMLINK) $(MDB_INTR) $(MDB_PCIPSY)
65	-cd $(MDB_DIR); $(SYMLINK) $(MDB_INTR) $(MDB_PCISCH)
66	-cd $(MDB_DIR); $(SYMLINK) $(MDB_INTR) $(MDB_PX)
67	-cd $(MDB_DIR); $(SYMLINK) $(MDB_INTR) $(MDB_NIUMX)
68	-$(RM) $(KMDB_DIR)/$(KMDB_PCIPSY)
69	-$(RM) $(KMDB_DIR)/$(KMDB_PCISCH)
70	-$(RM) $(KMDB_DIR)/$(KMDB_PX)
71	-$(RM) $(KMDB_DIR)/$(KMDB_NIUMX)
72	-cd $(KMDB_DIR); $(SYMLINK) $(KMDB_INTR) $(KMDB_PCIPSY)
73	-cd $(KMDB_DIR); $(SYMLINK) $(KMDB_INTR) $(KMDB_PCISCH)
74	-cd $(KMDB_DIR); $(SYMLINK) $(KMDB_INTR) $(KMDB_PX)
75	-cd $(KMDB_DIR); $(SYMLINK) $(KMDB_INTR) $(KMDB_NIUMX)
76