# $Id: Makefile 2168 2011-11-14 11:40:58Z jkoshy $

TOP=	${.CURDIR}/..

LIB=	elftc

SRCS=	elftc_bfdtarget.c			\
	elftc_demangle.c			\
	elftc_version.c				\
	libelftc_bfdtarget.c			\
	libelftc_dem_arm.c			\
	libelftc_dem_gnu2.c			\
	libelftc_dem_gnu3.c			\
	libelftc_vstr.c
INCS=	libelftc.h

BRANCH=	0.5.1		# Change this on release branches.

SHLIB_MAJOR=	1

WARNS?=	6

CLEANFILES+=	elftc_version.c

LDADD+=	-lelf

MAN3=	elftc_bfd_find_target.3 \
	elftc_demangle.3 \
	elftc_version.3

MLINKS=	elftc_bfd_find_target.3 elftc_bfd_target_byteorder.3 \
	elftc_bfd_find_target.3 elftc_bfd_target_class.3 \
	elftc_bfd_find_target.3 elftc_bfd_target_flavor.3

.BEGIN:	.SILENT
	${.CURDIR}/make-toolchain-version -t ${TOP} -b ${BRANCH} \
	    -h ${OS_HOST}

.include "${TOP}/mk/elftoolchain.lib.mk"
