1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate 28*7c478bd9Sstevel@tonic-gatePROMSRCS += \ 29*7c478bd9Sstevel@tonic-gate prom_2path.c \ 30*7c478bd9Sstevel@tonic-gate prom_devname.c \ 31*7c478bd9Sstevel@tonic-gate prom_devtype.c \ 32*7c478bd9Sstevel@tonic-gate prom_enter.c \ 33*7c478bd9Sstevel@tonic-gate prom_env.c \ 34*7c478bd9Sstevel@tonic-gate prom_exit.c \ 35*7c478bd9Sstevel@tonic-gate prom_fb.c \ 36*7c478bd9Sstevel@tonic-gate prom_getchar.c \ 37*7c478bd9Sstevel@tonic-gate prom_init.c \ 38*7c478bd9Sstevel@tonic-gate prom_inpath.c \ 39*7c478bd9Sstevel@tonic-gate prom_interp.c \ 40*7c478bd9Sstevel@tonic-gate prom_io.c \ 41*7c478bd9Sstevel@tonic-gate prom_mmu.c \ 42*7c478bd9Sstevel@tonic-gate prom_node.c \ 43*7c478bd9Sstevel@tonic-gate prom_outpath.c \ 44*7c478bd9Sstevel@tonic-gate prom_panic.c \ 45*7c478bd9Sstevel@tonic-gate prom_phandle.c \ 46*7c478bd9Sstevel@tonic-gate prom_printf.c \ 47*7c478bd9Sstevel@tonic-gate prom_prop.c \ 48*7c478bd9Sstevel@tonic-gate prom_putchar.c \ 49*7c478bd9Sstevel@tonic-gate prom_sparc.c \ 50*7c478bd9Sstevel@tonic-gate prom_stdin.c \ 51*7c478bd9Sstevel@tonic-gate prom_stdout.c \ 52*7c478bd9Sstevel@tonic-gate prom_string.c 53*7c478bd9Sstevel@tonic-gate 54*7c478bd9Sstevel@tonic-gateKMDBSRCS += \ 55*7c478bd9Sstevel@tonic-gate kaif.c \ 56*7c478bd9Sstevel@tonic-gate kaif_activate.c \ 57*7c478bd9Sstevel@tonic-gate kaif_start_isadep.c \ 58*7c478bd9Sstevel@tonic-gate kmdb_dpi_isadep.c \ 59*7c478bd9Sstevel@tonic-gate kmdb_fault_isadep.c \ 60*7c478bd9Sstevel@tonic-gate kmdb_kdi_isadep.c \ 61*7c478bd9Sstevel@tonic-gate kmdb_makecontext.c \ 62*7c478bd9Sstevel@tonic-gate kmdb_promif_isadep.c \ 63*7c478bd9Sstevel@tonic-gate kvm_isadep.c 64*7c478bd9Sstevel@tonic-gate 65*7c478bd9Sstevel@tonic-gateKMDBML += \ 66*7c478bd9Sstevel@tonic-gate kaif_enter.s \ 67*7c478bd9Sstevel@tonic-gate kmdb_asmutil.s 68*7c478bd9Sstevel@tonic-gate 69*7c478bd9Sstevel@tonic-gateKCTLSRCS += \ 70*7c478bd9Sstevel@tonic-gate kctl_isadep.c 71*7c478bd9Sstevel@tonic-gate 72*7c478bd9Sstevel@tonic-gateKCTLML += \ 73*7c478bd9Sstevel@tonic-gate kctl_asm.s 74*7c478bd9Sstevel@tonic-gate 75*7c478bd9Sstevel@tonic-gateSACPPFLAGS = -D__sparc 76*7c478bd9Sstevel@tonic-gate 77*7c478bd9Sstevel@tonic-gateSTANDLIBS += \ 78*7c478bd9Sstevel@tonic-gate ../../../sparc/v9/libstandctf/libstandctf.so \ 79*7c478bd9Sstevel@tonic-gate $(SRC)/lib/libumem/$(MACHDIR)/libstandumem.so \ 80*7c478bd9Sstevel@tonic-gate ../../../sparc/v9/libstand/libstand.a 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gateKMDBLIBS = $(STANDLIBS) ../../../sparc/v9/mdb_ks/kmod/mdb_ks 83*7c478bd9Sstevel@tonic-gate 84*7c478bd9Sstevel@tonic-gateMAPFILE_SOURCES = \ 85*7c478bd9Sstevel@tonic-gate ../../../common/mdb/mdb_ctf.h \ 86*7c478bd9Sstevel@tonic-gate ../../../common/kmdb/kmdb_dpi.h \ 87*7c478bd9Sstevel@tonic-gate ../../../common/kmdb/kmdb_kctl.h \ 88*7c478bd9Sstevel@tonic-gate ../../../common/kmdb/kmdb_kdi.h \ 89*7c478bd9Sstevel@tonic-gate ../../../common/mdb/mdb_ks.h \ 90*7c478bd9Sstevel@tonic-gate ../../../common/mdb/mdb_modapi.h \ 91*7c478bd9Sstevel@tonic-gate ../../../common/mdb/mdb_param.h \ 92*7c478bd9Sstevel@tonic-gate ../../../common/kmdb/kmdb_wr.h \ 93*7c478bd9Sstevel@tonic-gate ../../../sparc/kmdb/kmdb_dpi_isadep.h \ 94*7c478bd9Sstevel@tonic-gate $(MAPFILE_SOURCES_$(MACH)) 95*7c478bd9Sstevel@tonic-gate 96*7c478bd9Sstevel@tonic-gate%.fth: $(SRC)/cmd/mdb/sparc/kmdb/%.fdbg 97*7c478bd9Sstevel@tonic-gate grep '^#' <$< >$(<F).c 98*7c478bd9Sstevel@tonic-gate grep -v '^#' <$< >$(<F).tmp 99*7c478bd9Sstevel@tonic-gate $(CC) $(CTFSTABSCFLAGS) $(CPPFLAGS) -g -c -o $(<F).o $(<F).c 100*7c478bd9Sstevel@tonic-gate $(CTFCONVERT) $(CTFCVTFLAGS) $(<F).o 101*7c478bd9Sstevel@tonic-gate $(CTFSTABS) -t forth -i $(<F).tmp -o $@ $(<F).o 102*7c478bd9Sstevel@tonic-gate $(RM) $(<F).c $(<F).tmp $(<F).o 103*7c478bd9Sstevel@tonic-gate 104*7c478bd9Sstevel@tonic-gate%.o: ../../../../../psm/promif/ieee1275/common/%.c 105*7c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 106*7c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 107*7c478bd9Sstevel@tonic-gate 108*7c478bd9Sstevel@tonic-gate%.o: ../../../../../psm/promif/ieee1275/sun4/%.c 109*7c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 110*7c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 111*7c478bd9Sstevel@tonic-gate 112*7c478bd9Sstevel@tonic-gate%.o: ../../../../../psm/promif/ieee1275/sun4u/%.c 113*7c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 114*7c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 115*7c478bd9Sstevel@tonic-gate 116*7c478bd9Sstevel@tonic-gate%.ln: ../../../../../psm/promif/ieee1275/common/%.c 117*7c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 118*7c478bd9Sstevel@tonic-gate 119*7c478bd9Sstevel@tonic-gate%.ln: ../../../../../psm/promif/ieee1275/sun4/%.c 120*7c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 121*7c478bd9Sstevel@tonic-gate 122*7c478bd9Sstevel@tonic-gate%.ln: ../../../../../psm/promif/ieee1275/sun4u/%.c 123*7c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 124