17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5ae115bc7Smrj# Common Development and Distribution License (the "License"). 6ae115bc7Smrj# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22*4a1c2431SJonathan Adams# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gatePROMSRCS += \ 277c478bd9Sstevel@tonic-gate prom_2path.c \ 287c478bd9Sstevel@tonic-gate prom_devname.c \ 297c478bd9Sstevel@tonic-gate prom_devtype.c \ 307c478bd9Sstevel@tonic-gate prom_enter.c \ 317c478bd9Sstevel@tonic-gate prom_env.c \ 327c478bd9Sstevel@tonic-gate prom_exit.c \ 337c478bd9Sstevel@tonic-gate prom_fb.c \ 347c478bd9Sstevel@tonic-gate prom_getchar.c \ 357c478bd9Sstevel@tonic-gate prom_init.c \ 367c478bd9Sstevel@tonic-gate prom_inpath.c \ 377c478bd9Sstevel@tonic-gate prom_interp.c \ 387c478bd9Sstevel@tonic-gate prom_io.c \ 397c478bd9Sstevel@tonic-gate prom_mmu.c \ 407c478bd9Sstevel@tonic-gate prom_node.c \ 417c478bd9Sstevel@tonic-gate prom_outpath.c \ 427c478bd9Sstevel@tonic-gate prom_panic.c \ 437c478bd9Sstevel@tonic-gate prom_phandle.c \ 447c478bd9Sstevel@tonic-gate prom_printf.c \ 457c478bd9Sstevel@tonic-gate prom_prop.c \ 467c478bd9Sstevel@tonic-gate prom_putchar.c \ 477c478bd9Sstevel@tonic-gate prom_sparc.c \ 487c478bd9Sstevel@tonic-gate prom_stdin.c \ 497c478bd9Sstevel@tonic-gate prom_stdout.c \ 507c478bd9Sstevel@tonic-gate prom_string.c 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gateKMDBSRCS += \ 537c478bd9Sstevel@tonic-gate kaif.c \ 547c478bd9Sstevel@tonic-gate kaif_activate.c \ 557c478bd9Sstevel@tonic-gate kaif_start_isadep.c \ 567c478bd9Sstevel@tonic-gate kmdb_dpi_isadep.c \ 577c478bd9Sstevel@tonic-gate kmdb_fault_isadep.c \ 587c478bd9Sstevel@tonic-gate kmdb_kdi_isadep.c \ 597c478bd9Sstevel@tonic-gate kmdb_makecontext.c \ 607c478bd9Sstevel@tonic-gate kmdb_promif_isadep.c \ 617c478bd9Sstevel@tonic-gate kvm_isadep.c 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gateKMDBML += \ 647c478bd9Sstevel@tonic-gate kmdb_asmutil.s 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gateKCTLSRCS += \ 677c478bd9Sstevel@tonic-gate kctl_isadep.c 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gateKCTLML += \ 707c478bd9Sstevel@tonic-gate kctl_asm.s 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gateSACPPFLAGS = -D__sparc 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gateSTANDLIBS += \ 757c478bd9Sstevel@tonic-gate ../../../sparc/v9/libstandctf/libstandctf.so \ 767c478bd9Sstevel@tonic-gate $(SRC)/lib/libumem/$(MACHDIR)/libstandumem.so \ 777c478bd9Sstevel@tonic-gate ../../../sparc/v9/libstand/libstand.a 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gateKMDBLIBS = $(STANDLIBS) ../../../sparc/v9/mdb_ks/kmod/mdb_ks 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gateMAPFILE_SOURCES = \ 82*4a1c2431SJonathan Adams $(MAPFILE_SOURCES_COMMON) \ 837c478bd9Sstevel@tonic-gate ../../../sparc/kmdb/kmdb_dpi_isadep.h \ 847c478bd9Sstevel@tonic-gate $(MAPFILE_SOURCES_$(MACH)) 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate%.fth: $(SRC)/cmd/mdb/sparc/kmdb/%.fdbg 877c478bd9Sstevel@tonic-gate grep '^#' <$< >$(<F).c 887c478bd9Sstevel@tonic-gate grep -v '^#' <$< >$(<F).tmp 897c478bd9Sstevel@tonic-gate $(CC) $(CTFSTABSCFLAGS) $(CPPFLAGS) -g -c -o $(<F).o $(<F).c 907c478bd9Sstevel@tonic-gate $(CTFCONVERT) $(CTFCVTFLAGS) $(<F).o 917c478bd9Sstevel@tonic-gate $(CTFSTABS) -t forth -i $(<F).tmp -o $@ $(<F).o 927c478bd9Sstevel@tonic-gate $(RM) $(<F).c $(<F).tmp $(<F).o 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gate%.o: ../../../../../psm/promif/ieee1275/common/%.c 957c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 967c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gate%.o: ../../../../../psm/promif/ieee1275/sun4/%.c 997c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 1007c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 1017c478bd9Sstevel@tonic-gate 1027c478bd9Sstevel@tonic-gate%.o: ../../../../../psm/promif/ieee1275/sun4u/%.c 1037c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 1047c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 1057c478bd9Sstevel@tonic-gate 1067c478bd9Sstevel@tonic-gate%.ln: ../../../../../psm/promif/ieee1275/common/%.c 1077c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gate%.ln: ../../../../../psm/promif/ieee1275/sun4/%.c 1107c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gate%.ln: ../../../../../psm/promif/ieee1275/sun4u/%.c 1137c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 114