#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
PROMSRCS += \
KMDBSRCS += \
kaif.c \
KMDBML += \
KCTLSRCS += \
KCTLML += \
SACPPFLAGS = -D__sparc
STANDLIBS += \
../../../sparc/v9/libstandctf/libstandctf.so \
$(SRC)/lib/libumem/$(MACHDIR)/libstandumem.so \
../../../sparc/v9/libstand/libstand.a
KMDBLIBS = $(STANDLIBS) ../../../sparc/v9/mdb_ks/kmod/mdb_ks
MAPFILE_SOURCES = \
$(MAPFILE_SOURCES_COMMON) \
../../../sparc/kmdb/kmdb_dpi_isadep.h \
$(MAPFILE_SOURCES_$(MACH))
%.fth: $(SRC)/cmd/mdb/sparc/kmdb/%.fdbg
grep '^#' <$< >$(<F).c
grep -v '^#' <$< >$(<F).tmp
$(CC) $(CTFSTABSCFLAGS) $(CPPFLAGS) -g -c -o $(<F).o $(<F).c
$(CTFCONVERT) $(CTFCVTFLAGS) $(<F).o
$(CTFSTABS) -t forth -i $(<F).tmp -o $@ $(<F).o
$(RM) $(<F).c $(<F).tmp $(<F).o
%.o: ../../../../../psm/promif/ieee1275/common/%.c
$(COMPILE.c) $<
$(CTFCONVERT_O)
%.o: ../../../../../psm/promif/ieee1275/sun4/%.c
$(COMPILE.c) $<
$(CTFCONVERT_O)
%.o: ../../../../../psm/promif/ieee1275/sun4u/%.c
$(COMPILE.c) $<
$(CTFCONVERT_O)
%.o: ../../../../../uts/sun4v/promif/%.c
$(COMPILE.c) $<
$(CTFCONVERT_O)
%.ln: ../../../../../psm/promif/ieee1275/common/%.c
$(LINT.c) -c $<
%.ln: ../../../../../psm/promif/ieee1275/sun4/%.c
$(LINT.c) -c $<
%.ln: ../../../../../psm/promif/ieee1275/sun4u/%.c
$(LINT.c) -c $<
%.ln: ../../../../../uts/sun4v/promif/%.c
$(LINT.c) -c $<