xref: /titanic_52/usr/src/tools/ctf/libctf/Makefile.com (revision 7fd791373689a6af05e27efec3b1ab556e02aa23)
1*7fd79137SRobert Mustacchi#
2*7fd79137SRobert Mustacchi# This file and its contents are supplied under the terms of the
3*7fd79137SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
4*7fd79137SRobert Mustacchi# You may only use this file in accordance with the terms of version
5*7fd79137SRobert Mustacchi# 1.0 of the CDDL.
6*7fd79137SRobert Mustacchi#
7*7fd79137SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this
8*7fd79137SRobert Mustacchi# source.  A copy of the CDDL is also available via the Internet at
9*7fd79137SRobert Mustacchi# http://www.illumos.org/license/CDDL.
10*7fd79137SRobert Mustacchi#
11*7fd79137SRobert Mustacchi
12*7fd79137SRobert Mustacchi#
13*7fd79137SRobert Mustacchi# Copyright 2018 Joyent, Inc.
14*7fd79137SRobert Mustacchi#
15*7fd79137SRobert Mustacchi
16*7fd79137SRobert Mustacchiinclude $(SRC)/lib/libctf/Makefile.shared.com
17*7fd79137SRobert Mustacchiinclude ../../Makefile.ctf
18*7fd79137SRobert Mustacchi
19*7fd79137SRobert MustacchiCSTD = $(CSTD_GNU99)
20*7fd79137SRobert MustacchiC99LMODE = -Xc99=%all
21*7fd79137SRobert Mustacchi
22*7fd79137SRobert MustacchiCPPFLAGS +=	-I$(SRC)/lib/libctf/common/ \
23*7fd79137SRobert Mustacchi		-I$(SRC)/lib/libdwarf/common/ \
24*7fd79137SRobert Mustacchi		-I$(SRC)/lib/mergeq \
25*7fd79137SRobert Mustacchi		-include ../../common/ctf_headers.h \
26*7fd79137SRobert Mustacchi		-DCTF_OLD_VERSIONS \
27*7fd79137SRobert Mustacchi		-DCTF_TOOLS_BUILD
28*7fd79137SRobert MustacchiLDLIBS += -lc -lelf -L$(ROOTONBLDLIBMACH) -ldwarf -lavl
29*7fd79137SRobert MustacchiDYNFLAGS += '-R$$ORIGIN/../../lib/$(MACH)'
30*7fd79137SRobert Mustacchi
31*7fd79137SRobert Mustacchi.KEEP_STATE:
32*7fd79137SRobert Mustacchi
33*7fd79137SRobert Mustacchiall: $(LIBS)
34*7fd79137SRobert Mustacchi
35*7fd79137SRobert Mustacchiinstall: all $(ROOTONBLDLIBMACH)/libctf.so.1 $(ROOTONBLDLIBMACH)/libctf.so
36*7fd79137SRobert Mustacchi
37*7fd79137SRobert Mustacchi$(ROOTONBLDLIBMACH)/%: %
38*7fd79137SRobert Mustacchi	$(INS.file)
39*7fd79137SRobert Mustacchi
40*7fd79137SRobert Mustacchi$(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(LIBLINKS)$(VERS)
41*7fd79137SRobert Mustacchi	$(INS.liblink)
42*7fd79137SRobert Mustacchi
43*7fd79137SRobert Mustacchi#
44*7fd79137SRobert Mustacchi# Just like with libdwarf, we can't actually add ctf to ourselves,
45*7fd79137SRobert Mustacchi# because we're part of the tools for creating CTF.
46*7fd79137SRobert Mustacchi#
47*7fd79137SRobert Mustacchi$(DYNLIB) := CTFMERGE_POST= :
48*7fd79137SRobert MustacchiCTFCONVERT_O= :
49*7fd79137SRobert Mustacchi
50*7fd79137SRobert Mustacchiinclude $(SRC)/lib/Makefile.targ
51*7fd79137SRobert Mustacchiinclude $(SRC)/lib/libctf/Makefile.shared.targ
52