7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25
26 #
27 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
28 # Copyright (c) 2012 by Delphix. All rights reserved.
29 # Copyright (c) 2012 Joyent, Inc. All rights reserved.
30 #
31
32 .KEEP_STATE:
33 .SUFFIXES:
34
35 SRCS += \
36 ffs.c \
37 mdb.c \
38 mdb_addrvec.c \
39 mdb_argvec.c \
40 mdb_callb.c \
41 mdb_cmdbuf.c \
42 mdb_cmds.c \
43 mdb_conf.c \
44 mdb_context.c \
45 mdb_create.c \
46 mdb_ctf.c \
47 mdb_ctf_open.c \
48 mdb_debug.c \
49 mdb_demangle.c \
50 mdb_disasm.c \
51 mdb_dump.c \
52 mdb_err.c \
53 mdb_evset.c \
54 mdb_fdio.c \
55 mdb_fmt.c \
56 mdb_frame.c \
152 mdb_lex.o mdb_grammar.o := CCVERBOSE =
153
154 mdb_conf.o := CPPFLAGS += -DMDB_VERSION='$(MDB_VERSION)'
155
156 inet_ntop.o := CPPFLAGS += -Dsnprintf=mdb_snprintf
157
158 ffs.o ffs.ln := CPPFLAGS += -Dffs=mdb_ffs
159
160 %.o: ../../../common/mdb/%.c
161 $(COMPILE.c) $<
162 $(CTFCONVERT_O)
163
164 %.o: ../../mdb/%.c
165 $(COMPILE.c) $<
166 $(CTFCONVERT_O)
167
168 %.o: %.c
169 $(COMPILE.c) $<
170 $(CTFCONVERT_O)
171
172 %.o: $(SRC)/common/net/util/%.c
173 $(COMPILE.c) $<
174 $(CTFCONVERT_O)
175
176 %.o: $(SRC)/common/util/%.c
177 $(COMPILE.c) $<
178 $(CTFCONVERT_O)
179
180 clean.lint:
181 $(RM) $(LINTFILES)
182
183 clean:
184 $(RM) $(OBJS)
185 $(RM) mdb_lex.c mdb_grammar.c mdb_grammar.h y.tab.h y.tab.c y.output
186
187 clobber: clean clean.lint
188 $(RM) $(PROG)
189
190 %.ln: ../../../common/mdb/%.c
191 $(LINT.c) -c $<
192
193 %.ln: ../../mdb/%.c
194 $(LINT.c) -c $<
195
196 %.ln: %.c
197 $(LINT.c) -c $<
198
199 %.ln: $(SRC)/common/net/util/%.c
200 $(LINT.c) -c $<
201
202 %.ln: $(SRC)/common/util/%.c
203 $(LINT.c) -c $<
204
205 lint: $(LINTFILES)
206 $(LINT) $(LINTFLAGS) $(LINTFILES)
207
208 dmods:
|
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25
26 #
27 # Copyright 2011, 2015 Nexenta Systems, Inc. All rights reserved.
28 # Copyright (c) 2012 by Delphix. All rights reserved.
29 # Copyright (c) 2012 Joyent, Inc. All rights reserved.
30 #
31
32 .KEEP_STATE:
33 .SUFFIXES:
34
35 SRCS += \
36 ffs.c \
37 list.c \
38 mdb.c \
39 mdb_addrvec.c \
40 mdb_argvec.c \
41 mdb_callb.c \
42 mdb_cmdbuf.c \
43 mdb_cmds.c \
44 mdb_conf.c \
45 mdb_context.c \
46 mdb_create.c \
47 mdb_ctf.c \
48 mdb_ctf_open.c \
49 mdb_debug.c \
50 mdb_demangle.c \
51 mdb_disasm.c \
52 mdb_dump.c \
53 mdb_err.c \
54 mdb_evset.c \
55 mdb_fdio.c \
56 mdb_fmt.c \
57 mdb_frame.c \
153 mdb_lex.o mdb_grammar.o := CCVERBOSE =
154
155 mdb_conf.o := CPPFLAGS += -DMDB_VERSION='$(MDB_VERSION)'
156
157 inet_ntop.o := CPPFLAGS += -Dsnprintf=mdb_snprintf
158
159 ffs.o ffs.ln := CPPFLAGS += -Dffs=mdb_ffs
160
161 %.o: ../../../common/mdb/%.c
162 $(COMPILE.c) $<
163 $(CTFCONVERT_O)
164
165 %.o: ../../mdb/%.c
166 $(COMPILE.c) $<
167 $(CTFCONVERT_O)
168
169 %.o: %.c
170 $(COMPILE.c) $<
171 $(CTFCONVERT_O)
172
173 %.o: $(SRC)/common/list/%.c
174 $(COMPILE.c) $<
175 $(CTFCONVERT_O)
176
177 %.o: $(SRC)/common/net/util/%.c
178 $(COMPILE.c) $<
179 $(CTFCONVERT_O)
180
181 %.o: $(SRC)/common/util/%.c
182 $(COMPILE.c) $<
183 $(CTFCONVERT_O)
184
185 clean.lint:
186 $(RM) $(LINTFILES)
187
188 clean:
189 $(RM) $(OBJS)
190 $(RM) mdb_lex.c mdb_grammar.c mdb_grammar.h y.tab.h y.tab.c y.output
191
192 clobber: clean clean.lint
193 $(RM) $(PROG)
194
195 %.ln: ../../../common/mdb/%.c
196 $(LINT.c) -c $<
197
198 %.ln: ../../mdb/%.c
199 $(LINT.c) -c $<
200
201 %.ln: %.c
202 $(LINT.c) -c $<
203
204 %.ln: $(SRC)/common/list/%.c
205 $(LINT.c) -c $<
206
207 %.ln: $(SRC)/common/net/util/%.c
208 $(LINT.c) -c $<
209
210 %.ln: $(SRC)/common/util/%.c
211 $(LINT.c) -c $<
212
213 lint: $(LINTFILES)
214 $(LINT) $(LINTFLAGS) $(LINTFILES)
215
216 dmods:
|