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