xref: /freebsd/usr.sbin/pmc/Makefile (revision cbc83e378a7ee8f8aea9811906a2786a8f3bdeb3)
13554f22eSMatt Macy#
23554f22eSMatt Macy# $FreeBSD$
33554f22eSMatt Macy#
43554f22eSMatt Macy
5ebfaf69cSMatt Macy.include <src.opts.mk>
6ebfaf69cSMatt MacyPROG_CXX=	pmc
73554f22eSMatt MacyMAN=
8e8e87febSRuslan BukinWARNS?=	3
9e8067928SEnji CooperCXXFLAGS+= -O0
10e8067928SEnji CooperCXXSTD= c++14
112ef5e364SRyan LibbyCWARNFLAGS.gcc+= -Wno-redundant-decls
12ee55186dSEmmanuel VadotCFLAGS+= -I${SRCTOP}/lib/libpmcstat
133554f22eSMatt Macy
14415a606eSBrooks Davis# Does not link when built position-independent.
15415a606eSBrooks DavisMK_PIE=no
16415a606eSBrooks Davis
17*cbc83e37SBaptiste DaroussinLIBADD=	pmc m pmcstat elf
183554f22eSMatt Macy
19c8d23c13SMatt MacySRCS=	pmc.c pmc_util.c cmd_pmc_stat.c \
20b2ca2e50SMatt Macy	cmd_pmc_list.c cmd_pmc_filter.cc \
21b2ca2e50SMatt Macy	cmd_pmc_summary.cc
223554f22eSMatt Macy
233554f22eSMatt Macy.include <bsd.prog.mk>
24