Print this page
5324 .comment section on kmdb kmods is not set properly
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/mdb/Makefile.kmdb.targ
+++ new/usr/src/cmd/mdb/Makefile.kmdb.targ
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 2007 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
26 26 ROOTTERMINFO = $(ROOTSHLIB)/terminfo
27 27
28 28 $(PROG).core: $(OBJS) $(KMDBLIBS) $(MAPFILE)
29 29 $(LD) -r $(BREDUCE) $(ZNOVERSION) $(ZDEFS) -M$(MAPFILE) -o $@ $(OBJS) \
30 30 $(KMDBLIBS)
31 31
32 32 $(PROG): $(PROG).core $(KCTLOBJS)
33 33 $(LD) -dy -r -o $@ $@.core -Nmisc/ctf $(KCTLOBJS)
34 34 $(CTFMERGE) -L VERSION -o $@ $(OBJS) $(KCTLOBJS)
35 35 $(KMDB_FPTEST)
36 + $(POST_PROCESS)
36 37 $(SETDYNFLAG) -f DF_1_IGNMULDEF,DF_1_NOKSYMS $@
37 38
38 39 clean.lint:
39 40 $(RM) $(ALLLINTFILES)
40 41
41 42 clean:
42 43 $(RM) $(OBJS) $(KCTLOBJS) $(PROG).core $(MAPFILE)
43 44 $(RM) $(MAPFILE_INTERMEDIATE)
44 45 $(RM) kmdb_terminfo.c kmdb_modlinktest.c kmdb_modlinktest.o
45 46 $(RM) kaif_off.h kmdb_context_off.h
46 47 $(RM) mdb_lex.c mdb_grammar.c mdb_grammar.h y.tab.h y.tab.c y.output
47 48
48 49 clobber: clean clean.lint
49 50 $(RM) $(PROG)
50 51
51 52 dmods:
52 53
53 54 #
54 55 # Specialized object construction
55 56 #
56 57 kmdb_terminfo.c: ../../../common/mdb/mdb_termio.c \
57 58 ../../../common/kmdb/kmdb_terminfo_skel.c \
58 59 $(ROOTTERMINFO)
59 60 TERMINFO=$(ROOTTERMINFO) $(TIGEN) -s \
60 61 ../../../common/kmdb/kmdb_terminfo_skel.c \
61 62 -t ../../../common/mdb/mdb_termio.c \
62 63 $(SUPPORTED_TERMS) > $@
63 64
64 65 $(MAPFILE_INTERMEDIATE): $(MAPFILE_SOURCES) $(MAPFILE_TEMPLATE)
65 66 $(HDR2MAP) -t $(MAPFILE_TEMPLATE) $(MAPFILE_SOURCES) >$@
66 67
67 68 $(MAPFILE): $(MAPFILE_INTERMEDIATE)
68 69 $(CPP) -P $(SACPPFLAGS) <$(MAPFILE_INTERMEDIATE) >$@
69 70
70 71 mdb_lex.c: ../../../common/mdb/mdb_lex.l mdb_grammar.h
71 72 $(LEX) $(LFLAGS) ../../../common/mdb/mdb_lex.l > $@
72 73
73 74 mdb_grammar.h mdb_grammar.c: ../../../common/mdb/mdb_grammar.y
74 75 $(YACC) $(YFLAGS) ../../../common/mdb/mdb_grammar.y
75 76 @$(MV) y.tab.h mdb_grammar.h
76 77 @$(MV) y.tab.c mdb_grammar.c
77 78
78 79 #
79 80 # These should really be combined into a dynamic rule, but there's a bug in
80 81 # dmake that'll cause it to get confused about dependencies if we do.
81 82 #
82 83
83 84 kaif_off.h := CPPFLAGS += $(SACPPCFLAGS)
84 85
85 86 kmdb_modlinktest.c: $(MAPFILE_INTERMEDIATE)
86 87 $(MAP2LINKTEST) <$(MAPFILE_INTERMEDIATE) >$@
87 88 $(CPP) -P $(SACPPFLAGS) <$(MAPFILE_INTERMEDIATE) >$(MAPFILE)
88 89
89 90 #
90 91 # Dynamic rules for object construction
91 92 #
92 93 %.o: ../../../common/kmdb/%.c
93 94 $(COMPILE.c) -o $@ $<
94 95 $(CTFCONVERT_O)
95 96
96 97 %.o: ../../../common/kmdb/kctl/%.c
97 98 $(COMPILE.c) -o $@ $<
98 99 $(CTFCONVERT_O)
99 100
100 101 %.o: ../../../common/kmdb/kctl/%.s
101 102 $(COMPILE.s) -o $@ $<
102 103
103 104 %.o: ../../../common/mdb/%.c
104 105 $(COMPILE.c) -o $@ $<
105 106 $(CTFCONVERT_O)
106 107
107 108 %.o: ../../kmdb/%.c
108 109 $(COMPILE.c) -o $@ $<
109 110 $(CTFCONVERT_O)
110 111
111 112 %.o: ../../kmdb/%.s
112 113 $(COMPILE.s) -o $@ $<
113 114
114 115 %.o: ../../kmdb/kctl/%.c
115 116 $(COMPILE.c) -o $@ $<
116 117 $(CTFCONVERT_O)
117 118
118 119 %.o: ../../kmdb/kctl/%.s
119 120 $(COMPILE.s) -o $@ $<
120 121
121 122 %.o: ../../mdb/%.c
122 123 $(COMPILE.c) -o $@ $<
123 124 $(CTFCONVERT_O)
124 125
125 126 %.o: %.c
126 127 $(COMPILE.c) -o $@ $<
127 128 $(CTFCONVERT_O)
128 129
129 130 %.o: %.s
130 131 $(COMPILE.s) -o $@ $<
131 132
132 133 %.o: kctl/%.s
133 134 $(COMPILE.s) -o $@ $<
134 135
135 136 %.o: $(SRC)/common/net/util/%.c
136 137 $(COMPILE.c) $<
137 138 $(CTFCONVERT_O)
138 139
139 140 %.o: $(SRC)/common/util/%.c
140 141 $(COMPILE.c) $<
141 142 $(CTFCONVERT_O)
142 143
143 144 #
144 145 # Lint
145 146 #
146 147
147 148 %.ln: ../../../common/kmdb/%.c
148 149 $(LINT.c) -c $<
149 150
150 151 %.ln: ../../../common/kmdb/kctl/%.c
151 152 $(LINT.c) -c $<
152 153
153 154 %.ln: ../../../common/kmdb/kctl/%.s
154 155 $(LINT.s) -c $<
155 156
156 157 %.ln: ../../../common/mdb/%.c
157 158 $(LINT.c) -c $<
158 159
159 160 %.ln: ../../kmdb/%.c
160 161 $(LINT.c) -c $<
161 162
162 163 %.ln: ../../kmdb/%.s
163 164 $(LINT.s) -c $<
164 165
165 166 %.ln: ../../kmdb/kctl/%.c
166 167 $(LINT.c) -c $<
167 168
168 169 %.ln: ../../kmdb/kctl/%.s
169 170 $(LINT.s) -c $<
170 171
171 172 %.ln: ../../mdb/%.c
172 173 $(LINT.c) -c $<
173 174
174 175 %.ln: %.c
175 176 $(LINT.c) -c $<
176 177
177 178 %.ln: %.s
178 179 $(LINT.s) -c $<
179 180
180 181 %.ln: kctl/%.s
181 182 $(LINT.s) -c $<
182 183
183 184 %.ln: $(SRC)/common/net/util/%.c
184 185 $(LINT.c) -c $<
185 186
186 187 %.ln: $(SRC)/common/util/%.c
187 188 $(LINT.c) -c $<
↓ open down ↓ |
142 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX