1# $Id: Makefile 3292 2016-01-06 21:46:32Z jkoshy $ 2 3TOP= ${.CURDIR}/.. 4 5LIB= elftc 6 7SRCS= elftc_bfdtarget.c \ 8 elftc_copyfile.c \ 9 elftc_demangle.c \ 10 elftc_set_timestamps.c \ 11 elftc_string_table.c \ 12 elftc_version.c \ 13 libelftc_bfdtarget.c \ 14 libelftc_dem_arm.c \ 15 libelftc_dem_gnu2.c \ 16 libelftc_dem_gnu3.c \ 17 libelftc_hash.c \ 18 libelftc_vstr.c 19 20INCS= libelftc.h 21INCSDIR= /usr/include 22 23RELEASE= HEAD # Change this on release branches. 24 25SHLIB_MAJOR= 1 26 27WARNS?= 6 28 29CLEANFILES+= elftc_version.c 30 31LDADD+= -lelf 32 33MAN= elftc.3 \ 34 elftc_bfd_find_target.3 \ 35 elftc_copyfile.3 \ 36 elftc_demangle.3 \ 37 elftc_set_timestamps.3 \ 38 elftc_string_table_create.3 \ 39 elftc_version.3 40 41MLINKS= elftc_bfd_find_target.3 elftc_bfd_target_byteorder.3 \ 42 elftc_bfd_find_target.3 elftc_bfd_target_class.3 \ 43 elftc_bfd_find_target.3 elftc_bfd_target_flavor.3 \ 44 elftc_string_table_create.3 elftc_string_table_from_section.3 \ 45 elftc_string_table_create.3 elftc_string_table_destroy.3 \ 46 elftc_string_table_create.3 elftc_string_table_image.3 \ 47 elftc_string_table_create.3 elftc_string_table_insert.3 \ 48 elftc_string_table_create.3 elftc_string_table_lookup.3 49 50.if !make(clean) && !make(clobber) 51.BEGIN: .SILENT 52 ${.CURDIR}/make-toolchain-version -t ${TOP} -r ${RELEASE} \ 53 -h ${OS_HOST} 54.endif 55 56.include "${TOP}/mk/elftoolchain.lib.mk" 57