Print this page
3544 save-args matcher could be considerably more robust
3545 save-args matcher should accept saves may be out-of-order
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/mdb/intel/amd64/kmdb/Makefile
+++ new/usr/src/cmd/mdb/intel/amd64/kmdb/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 #
27 27 # Build and link kmdb
28 28 #
29 29 all: $(PROG) kmdb_modlinktest.o
30 30
31 31 %.o: ../../kmdb/%.c
32 32 $(COMPILE.c) $<
33 33 $(CTFCONVERT_O)
34 34
35 35 %.o: ../../mdb/%.c
36 36 $(COMPILE.c) $<
37 37 $(CTFCONVERT_O)
38 38
39 39 %.o: $(SRC)/common/dis/i386/%.c
40 40 $(COMPILE.c) $<
41 41 $(CTFCONVERT_O)
42 42
43 43 %.ln: ../../kmdb/%.c
44 44 $(LINT.c) -c $<
45 45
46 46 %.ln: ../../mdb/%.c
47 47 $(LINT.c) -c $<
48 48
49 49 %.ln: $(SRC)/common/dis/i386/%.c
50 50 $(LINT.c) -c $<
51 51
52 52 ROOT_MISC_DIR = $(ROOT)/kernel/misc
53 53 ROOT_MISC_DIR_64 = $(ROOT_MISC_DIR)/$(SUBDIR64)
54 54
↓ open down ↓ |
54 lines elided |
↑ open up ↑ |
55 55 ROOTMISC = $(ROOT_MISC_DIR)/$(PROG)
56 56 ROOTMISC64 = $(ROOT_MISC_DIR_64)/$(PROG)
57 57
58 58 include ../../../../Makefile.cmd
59 59 include ../../../../Makefile.cmd.64
60 60
61 61 include ../../Makefile.amd64
62 62 include ../../../Makefile.kmdb
63 63
64 64 STANDLIBS += $(ROOT)/usr/lib/amd64/libstanddisasm.so
65 +STANDLIBS += $(ROOT)/usr/lib/amd64/libstandsaveargs.so
65 66
66 67 INCDIRS += $(SRC)/uts/i86pc $(SRC)/common/dis/i386
67 68
68 69 CPPFLAGS += -DDIS_TEXT
69 70
70 71 install: all $(ROOTMISC64)
71 72
72 73 #
73 74 # lint rules
74 75 #
75 76
76 77 .PARALLEL: lintkmdb lintprom lintkctl
77 78
78 79 lint: lintkmdb lintprom lintkctl
79 80 $(LINT) $(ALLLINTFLAGS) $(KMDBOBJS:%.o=%.ln) $(PROMOBJS:%.o=%.ln)
80 81
81 82 lintkmdb: $(KMDBOBJS:%.o=%.ln)
82 83 $(LINT) $(LINTFLAGS) $(KMDBOBJS:%.o=%.ln)
83 84
84 85 lintprom: $(PROMOBJS:%.o=%.ln)
85 86 $(LINT) $(LINTFLAGS) $(PROMOBJS:%.o=%.ln)
86 87
87 88 lintkctl: $(KCTLOBJS:%.o=%.ln)
88 89 $(LINT) $(ALLLINTFLAGS) $(KCTLOBJS:%.o=%.ln)
89 90
90 91 kmdb_context_off.h: ../../kmdb/kmdb_context_off.in
91 92 $(OFFSETS_CREATE) <../../kmdb/kmdb_context_off.in >$@
92 93
93 94 #
94 95 # Installation targets
95 96 #
96 97
97 98 $(ROOT_MISC_DIR) $(ROOT_MISC_DIR_64):
98 99 -$(INS.dir)
99 100
100 101 $(ROOT_MISC_DIR)/%: % $(ROOT_MISC_DIR)
101 102 $(INS.file)
102 103
103 104 $(ROOT_MISC_DIR_64)/%: % $(ROOT_MISC_DIR_64)
104 105 $(INS.file)
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX