4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
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.
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]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
28 ctfconvert: $(CVTOBJS)
29 $(LINK.c) -o $@ $(CVTOBJS) $(LDLIBS)
33 $(LINK.c) -o $@ $(MRGOBJS) $(LDLIBS)
42 $(ROOTONBLDMACHPROG): $(SELFTEST)
45 install: $(PROG) $(SELFTEST) .WAIT $(ROOTONBLDMACHPROG)
48 $(LINT) $(LINTFLAGS) $(CVTLINTFILES)
49 $(LINT) $(LINTFLAGS) $(MRGLINTFILES)
54 CLOBBERFILES=$(LINTFILES)
57 # After we've built ctfconvert and ctfmerge, let's use them on ourselves. The
58 # RPATH in the built ctfconvert will only know how to find libdwarf if we invoke
59 # the one in $(ROOT). We haven't installed it there yet, though, so we have to
60 # invoke the one in $(SRC). We'll manually tell it where libdwarf is.
62 selftest: ctf_o ctfconvert_merge ctfmerge_merge
64 ctf_o: $(OBJS:%.o=%_ctf)
67 LD_LIBRARY_PATH=$(DWARFSRCLIBDIR)/$(MACH) ./ctfconvert -l $@ $<
69 ctfconvert_merge: ctf_o ctfmerge
70 ./ctfmerge -l $@ -o ctfconvert $(CVTOBJS)
72 ctfmerge_merge: ctf_o ctfmerge
73 ./ctfmerge -l $@ -o ctfmerge $(MRGOBJS)
75 include ../../Makefile.ctf.targ