xref: /onnv-gate/usr/src/cmd/mdb/sparc/v9/genunix/Makefile (revision 4798:8e0fa896ea0b)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
51676Sjpk# Common Development and Distribution License (the "License").
61676Sjpk# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
201676Sjpk
211676Sjpk
220Sstevel@tonic-gate#
230Sstevel@tonic-gate#
243434Sesaxe# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
250Sstevel@tonic-gate# Use is subject to license terms.
260Sstevel@tonic-gate#
270Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
280Sstevel@tonic-gate
290Sstevel@tonic-gateMODULE = genunix.so
300Sstevel@tonic-gateMDBTGT = kvm
310Sstevel@tonic-gate
323446Smrjinclude	../../../common/modules/genunix/Makefile.files
333446Smrj
340Sstevel@tonic-gateCOMMONSRCS = \
353446Smrj	$(GENUNIX_SRCS)
360Sstevel@tonic-gate
370Sstevel@tonic-gateKMODSRCS = \
380Sstevel@tonic-gate	$(COMMONSRCS)
390Sstevel@tonic-gate
400Sstevel@tonic-gateMODSRCS = \
410Sstevel@tonic-gate	$(COMMONSRCS) \
420Sstevel@tonic-gate	typegraph.c
430Sstevel@tonic-gate
440Sstevel@tonic-gate#
450Sstevel@tonic-gate# This signals that $(KMODSRCS) != $(MODSRCS).  Typegraph is not usable under
460Sstevel@tonic-gate# kmdb.  As such, we don't bother compiling it.
470Sstevel@tonic-gateKMOD_SOURCES_DIFFERENT=$(POUND_SIGN)
480Sstevel@tonic-gate
490Sstevel@tonic-gateinclude ../../../../Makefile.cmd
500Sstevel@tonic-gateinclude ../../../../Makefile.cmd.64
510Sstevel@tonic-gateinclude ../../Makefile.sparcv9
520Sstevel@tonic-gateinclude ../../../Makefile.module
530Sstevel@tonic-gate
54*4798Stomeedmod/$(MODULE) := LDLIBS += -lm
55*4798Stomee
560Sstevel@tonic-gate#
570Sstevel@tonic-gate# We are not actually hardwiring some dependency on sun4u, we just need to
580Sstevel@tonic-gate# include sys/param.h with _MACHDEP defined, and this forces the inclusion of
590Sstevel@tonic-gate# machparam.h, even though we don't use anything there.  This is a temporary
600Sstevel@tonic-gate# kludge until we invent -DDONTINCLUDEMACHPARAM or something.
610Sstevel@tonic-gate#
620Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/uts/sun4u
630Sstevel@tonic-gate
640Sstevel@tonic-gate# Needed to include c2/audit.h (from cred.h)
650Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/uts/common
660Sstevel@tonic-gate# Needed to find include file mutex_impl.h
670Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/uts/sparc/v9
68