xref: /illumos-gate/usr/src/cmd/mdb/intel/Makefile.kmdb (revision 7c478bd9)
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-gate
29*7c478bd9Sstevel@tonic-gatePROMSRCS += \
30*7c478bd9Sstevel@tonic-gate	prom_env.c \
31*7c478bd9Sstevel@tonic-gate	prom_getchar.c \
32*7c478bd9Sstevel@tonic-gate	prom_init.c \
33*7c478bd9Sstevel@tonic-gate	prom_printf.c \
34*7c478bd9Sstevel@tonic-gate	prom_putchar.c
35*7c478bd9Sstevel@tonic-gate
36*7c478bd9Sstevel@tonic-gateKMDBSRCS += \
37*7c478bd9Sstevel@tonic-gate	bits.c \
38*7c478bd9Sstevel@tonic-gate	dis_tables.c \
39*7c478bd9Sstevel@tonic-gate	inteldis.c \
40*7c478bd9Sstevel@tonic-gate	kaif.c \
41*7c478bd9Sstevel@tonic-gate	kaif_activate.c \
42*7c478bd9Sstevel@tonic-gate	kaif_idt.c \
43*7c478bd9Sstevel@tonic-gate	kaif_start_isadep.c \
44*7c478bd9Sstevel@tonic-gate	kmdb_dpi_isadep.c \
45*7c478bd9Sstevel@tonic-gate	kmdb_fault_isadep.c \
46*7c478bd9Sstevel@tonic-gate	kmdb_kdi_isadep.c \
47*7c478bd9Sstevel@tonic-gate	kmdb_promif_isadep.c \
48*7c478bd9Sstevel@tonic-gate	kvm_cpu_amd.c \
49*7c478bd9Sstevel@tonic-gate	kvm_cpu_p4.c \
50*7c478bd9Sstevel@tonic-gate	kvm_isadep.c
51*7c478bd9Sstevel@tonic-gate
52*7c478bd9Sstevel@tonic-gateKMDBML += \
53*7c478bd9Sstevel@tonic-gate	kaif_idthdl.s \
54*7c478bd9Sstevel@tonic-gate	kmdb_asmutil.s \
55*7c478bd9Sstevel@tonic-gate	kmdb_setcontext.s
56*7c478bd9Sstevel@tonic-gate
57*7c478bd9Sstevel@tonic-gateKCTLSRCS += \
58*7c478bd9Sstevel@tonic-gate	kctl_isadep.c
59*7c478bd9Sstevel@tonic-gate
60*7c478bd9Sstevel@tonic-gateCTXOFFUSERS = \
61*7c478bd9Sstevel@tonic-gate	kmdb_setcontext.o
62*7c478bd9Sstevel@tonic-gate
63*7c478bd9Sstevel@tonic-gateOSINCDIRS += $(SRC)/common/dis/i386
64*7c478bd9Sstevel@tonic-gateCPPFLAGS += -DDIS_TEXT
65*7c478bd9Sstevel@tonic-gate
66*7c478bd9Sstevel@tonic-gate$(CTXOFFUSERS) $(CTXOFFUSERS:%.o=%.ln): kmdb_context_off.h
67*7c478bd9Sstevel@tonic-gate
68*7c478bd9Sstevel@tonic-gatekaif_activate.o kaif_activate.ln := CPPFLAGS += -D_MACHDEP -D_KMEMUSER
69*7c478bd9Sstevel@tonic-gate
70*7c478bd9Sstevel@tonic-gateSTANDLIBS += \
71*7c478bd9Sstevel@tonic-gate	../libstandctf/libstandctf.so \
72*7c478bd9Sstevel@tonic-gate	$(SRC)/lib/libumem/$(MACHDIR)/libstandumem.so \
73*7c478bd9Sstevel@tonic-gate	../libstand/libstand.a
74*7c478bd9Sstevel@tonic-gate
75*7c478bd9Sstevel@tonic-gateKMDBLIBS = $(STANDLIBS) ../mdb_ks/kmod/mdb_ks
76*7c478bd9Sstevel@tonic-gate
77*7c478bd9Sstevel@tonic-gateMAPFILE_SOURCES = \
78*7c478bd9Sstevel@tonic-gate	../../../common/mdb/mdb_ctf.h \
79*7c478bd9Sstevel@tonic-gate	../../../common/kmdb/kmdb_dpi.h \
80*7c478bd9Sstevel@tonic-gate	../../../common/kmdb/kmdb_kctl.h \
81*7c478bd9Sstevel@tonic-gate	../../../common/kmdb/kmdb_kdi.h \
82*7c478bd9Sstevel@tonic-gate	../../../common/mdb/mdb_ks.h \
83*7c478bd9Sstevel@tonic-gate	../../../common/mdb/mdb_modapi.h \
84*7c478bd9Sstevel@tonic-gate	../../../common/mdb/mdb_param.h \
85*7c478bd9Sstevel@tonic-gate	../../../common/kmdb/kmdb_wr.h \
86*7c478bd9Sstevel@tonic-gate	../../kmdb/kmdb_dpi_isadep.h \
87*7c478bd9Sstevel@tonic-gate	$(MAPFILE_SOURCES_$(MACH))
88*7c478bd9Sstevel@tonic-gate
89*7c478bd9Sstevel@tonic-gate%.o: $(SRC)/common/dis/i386/%.c
90*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
91*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
92*7c478bd9Sstevel@tonic-gate
93*7c478bd9Sstevel@tonic-gate%.o: ../../../../../uts/intel/promif/%.c
94*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
95*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
96*7c478bd9Sstevel@tonic-gate
97*7c478bd9Sstevel@tonic-gate%.ln: $(SRC)/common/dis/i386/%.c
98*7c478bd9Sstevel@tonic-gate	$(LINT.c) -c $<
99*7c478bd9Sstevel@tonic-gate
100*7c478bd9Sstevel@tonic-gate%.ln: ../../../../../uts/intel/promif/%.c
101*7c478bd9Sstevel@tonic-gate	$(LINT.c) -c $<
102