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 51ae08745Sheppo# Common Development and Distribution License (the "License"). 61ae08745Sheppo# 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 \ 471ae08745Sheppo prom_reboot.c \ 487c478bd9Sstevel@tonic-gate prom_sparc.c \ 497c478bd9Sstevel@tonic-gate prom_stdin.c \ 507c478bd9Sstevel@tonic-gate prom_stdout.c \ 511ae08745Sheppo prom_string.c \ 521ae08745Sheppo promif_emul.c \ 531ae08745Sheppo promif_interp.c \ 541ae08745Sheppo promif_io.c \ 551ae08745Sheppo promif_mon.c \ 561ae08745Sheppo promif_node.c \ 571ae08745Sheppo promif_prop.c \ 581ae08745Sheppo promif_reboot.c \ 591ae08745Sheppo promif_stree.c 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gateKMDBSRCS += \ 627c478bd9Sstevel@tonic-gate kaif.c \ 637c478bd9Sstevel@tonic-gate kaif_activate.c \ 647c478bd9Sstevel@tonic-gate kaif_start_isadep.c \ 657c478bd9Sstevel@tonic-gate kmdb_dpi_isadep.c \ 667c478bd9Sstevel@tonic-gate kmdb_fault_isadep.c \ 677c478bd9Sstevel@tonic-gate kmdb_kdi_isadep.c \ 687c478bd9Sstevel@tonic-gate kmdb_makecontext.c \ 697c478bd9Sstevel@tonic-gate kmdb_promif_isadep.c \ 707c478bd9Sstevel@tonic-gate kvm_isadep.c 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gateKMDBML += \ 737c478bd9Sstevel@tonic-gate kmdb_asmutil.s 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gateKCTLSRCS += \ 767c478bd9Sstevel@tonic-gate kctl_isadep.c 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gateKCTLML += \ 797c478bd9Sstevel@tonic-gate kctl_asm.s 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gateSACPPFLAGS = -D__sparc 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gateSTANDLIBS += \ 847c478bd9Sstevel@tonic-gate ../../../sparc/v9/libstandctf/libstandctf.so \ 857c478bd9Sstevel@tonic-gate $(SRC)/lib/libumem/$(MACHDIR)/libstandumem.so \ 867c478bd9Sstevel@tonic-gate ../../../sparc/v9/libstand/libstand.a 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gateKMDBLIBS = $(STANDLIBS) ../../../sparc/v9/mdb_ks/kmod/mdb_ks 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gateMAPFILE_SOURCES = \ 91*4a1c2431SJonathan Adams $(MAPFILE_SOURCES_COMMON) \ 927c478bd9Sstevel@tonic-gate ../../../sparc/kmdb/kmdb_dpi_isadep.h \ 937c478bd9Sstevel@tonic-gate $(MAPFILE_SOURCES_$(MACH)) 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gate%.fth: $(SRC)/cmd/mdb/sparc/kmdb/%.fdbg 967c478bd9Sstevel@tonic-gate grep '^#' <$< >$(<F).c 977c478bd9Sstevel@tonic-gate grep -v '^#' <$< >$(<F).tmp 987c478bd9Sstevel@tonic-gate $(CC) $(CTFSTABSCFLAGS) $(CPPFLAGS) -g -c -o $(<F).o $(<F).c 997c478bd9Sstevel@tonic-gate $(CTFCONVERT) $(CTFCVTFLAGS) $(<F).o 1007c478bd9Sstevel@tonic-gate $(CTFSTABS) -t forth -i $(<F).tmp -o $@ $(<F).o 1017c478bd9Sstevel@tonic-gate $(RM) $(<F).c $(<F).tmp $(<F).o 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gate%.o: ../../../../../psm/promif/ieee1275/common/%.c 1047c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 1057c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 1067c478bd9Sstevel@tonic-gate 1077c478bd9Sstevel@tonic-gate%.o: ../../../../../psm/promif/ieee1275/sun4/%.c 1087c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 1097c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 1107c478bd9Sstevel@tonic-gate 1117c478bd9Sstevel@tonic-gate%.o: ../../../../../psm/promif/ieee1275/sun4u/%.c 1127c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 1137c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 1147c478bd9Sstevel@tonic-gate 1151ae08745Sheppo%.o: ../../../../../uts/sun4v/promif/%.c 1161ae08745Sheppo $(COMPILE.c) $< 1171ae08745Sheppo $(CTFCONVERT_O) 1181ae08745Sheppo 1197c478bd9Sstevel@tonic-gate%.ln: ../../../../../psm/promif/ieee1275/common/%.c 1207c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 1217c478bd9Sstevel@tonic-gate 1227c478bd9Sstevel@tonic-gate%.ln: ../../../../../psm/promif/ieee1275/sun4/%.c 1237c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 1247c478bd9Sstevel@tonic-gate 1257c478bd9Sstevel@tonic-gate%.ln: ../../../../../psm/promif/ieee1275/sun4u/%.c 1267c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 1271ae08745Sheppo 1281ae08745Sheppo%.ln: ../../../../../uts/sun4v/promif/%.c 1291ae08745Sheppo $(LINT.c) -c $< 130