xref: /titanic_41/usr/src/cmd/mdb/sparc/v9/intr/Makefile (revision 1816cb7076d3ec8a78ef9ac9f895574e13c43645)
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#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27
28MODULE = intr.so
29MDBTGT = kvm
30
31MODSRCS = intr.c
32
33MDB_DIR= $(ROOT)/usr/lib/mdb/kvm/sparcv9
34MDB_INTR=intr.so
35MDB_PCIPSY=pcipsy.so
36MDB_PCISCH=pcisch.so
37MDB_PX=px.so
38
39KMDB_DIR= $(ROOT)/kernel/kmdb/sparcv9
40KMDB_INTR=intr
41KMDB_PCIPSY=pcipsy
42KMDB_PCISCH=pcisch
43KMDB_PX=px
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/sparc/v9
55
56MODSRCS_DIR = ../../../sparc/modules/intr
57
58install: all
59	-$(RM) $(MDB_DIR)/$(MDB_PCIPSY)
60	-$(RM) $(MDB_DIR)/$(MDB_PCISCH)
61	-$(RM) $(MDB_DIR)/$(MDB_PX)
62	-cd $(MDB_DIR); $(SYMLINK) $(MDB_INTR) $(MDB_PCIPSY)
63	-cd $(MDB_DIR); $(SYMLINK) $(MDB_INTR) $(MDB_PCISCH)
64	-cd $(MDB_DIR); $(SYMLINK) $(MDB_INTR) $(MDB_PX)
65	-$(RM) $(KMDB_DIR)/$(KMDB_PCIPSY)
66	-$(RM) $(KMDB_DIR)/$(KMDB_PCISCH)
67	-$(RM) $(KMDB_DIR)/$(KMDB_PX)
68	-cd $(KMDB_DIR); $(SYMLINK) $(KMDB_INTR) $(KMDB_PCIPSY)
69	-cd $(KMDB_DIR); $(SYMLINK) $(KMDB_INTR) $(KMDB_PCISCH)
70	-cd $(KMDB_DIR); $(SYMLINK) $(KMDB_INTR) $(KMDB_PX)
71