1*715d1396SEd Maste# $Id: Makefile 3601 2018-04-12 16:58:53Z jkoshy $ 2a85fe12eSEd Maste 3*715d1396SEd MasteTOP= .. 4a85fe12eSEd Maste 5a85fe12eSEd MasteLIB= elftc 6a85fe12eSEd Maste 7a85fe12eSEd MasteSRCS= elftc_bfdtarget.c \ 8a85fe12eSEd Maste elftc_copyfile.c \ 9a85fe12eSEd Maste elftc_demangle.c \ 10b6b6f9ccSEd Maste elftc_reloc_type_str.c \ 11a85fe12eSEd Maste elftc_set_timestamps.c \ 12a85fe12eSEd Maste elftc_string_table.c \ 13b6d812d2SEd Maste elftc_timestamp.c \ 14a85fe12eSEd Maste elftc_version.c \ 15a85fe12eSEd Maste libelftc_bfdtarget.c \ 16a85fe12eSEd Maste libelftc_dem_arm.c \ 17a85fe12eSEd Maste libelftc_dem_gnu2.c \ 18a85fe12eSEd Maste libelftc_dem_gnu3.c \ 19a85fe12eSEd Maste libelftc_hash.c \ 20a85fe12eSEd Maste libelftc_vstr.c 21a85fe12eSEd Maste 22a85fe12eSEd MasteINCS= libelftc.h 23a85fe12eSEd MasteINCSDIR= /usr/include 24a85fe12eSEd Maste 25a85fe12eSEd MasteRELEASE= HEAD # Change this on release branches. 26a85fe12eSEd Maste 27a85fe12eSEd MasteSHLIB_MAJOR= 1 28a85fe12eSEd Maste 29a85fe12eSEd MasteWARNS?= 6 30a85fe12eSEd Maste 31*715d1396SEd MasteELFTC_VERSION_FILE= ${.OBJDIR}/elftc_version.c 32*715d1396SEd MasteCLEANFILES+= ${ELFTC_VERSION_FILE} 33a85fe12eSEd Maste 34a85fe12eSEd MasteLDADD+= -lelf 35a85fe12eSEd Maste 36a85fe12eSEd MasteMAN= elftc.3 \ 37a85fe12eSEd Maste elftc_bfd_find_target.3 \ 38a85fe12eSEd Maste elftc_copyfile.3 \ 39a85fe12eSEd Maste elftc_demangle.3 \ 40b6b6f9ccSEd Maste elftc_reloc_type_str.3 \ 41a85fe12eSEd Maste elftc_set_timestamps.3 \ 42a85fe12eSEd Maste elftc_string_table_create.3 \ 43a85fe12eSEd Maste elftc_version.3 44a85fe12eSEd Maste 45a85fe12eSEd MasteMLINKS= elftc_bfd_find_target.3 elftc_bfd_target_byteorder.3 \ 46a85fe12eSEd Maste elftc_bfd_find_target.3 elftc_bfd_target_class.3 \ 47a85fe12eSEd Maste elftc_bfd_find_target.3 elftc_bfd_target_flavor.3 \ 48a85fe12eSEd Maste elftc_string_table_create.3 elftc_string_table_from_section.3 \ 49a85fe12eSEd Maste elftc_string_table_create.3 elftc_string_table_destroy.3 \ 50a85fe12eSEd Maste elftc_string_table_create.3 elftc_string_table_image.3 \ 51a85fe12eSEd Maste elftc_string_table_create.3 elftc_string_table_insert.3 \ 52839529caSEd Maste elftc_string_table_create.3 elftc_string_table_lookup.3 53a85fe12eSEd Maste 54*715d1396SEd Maste.if !make(clean) && !make(clobber) && !make(obj) 55a85fe12eSEd Maste.BEGIN: .SILENT 56*715d1396SEd Maste ${.CURDIR}/make-toolchain-version -t ${.CURDIR}/${TOP} \ 57*715d1396SEd Maste -r ${RELEASE} -h ${OS_HOST} -o ${ELFTC_VERSION_FILE} 58a85fe12eSEd Maste.endif 59a85fe12eSEd Maste 60a85fe12eSEd Maste.include "${TOP}/mk/elftoolchain.lib.mk" 61