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