src/world/elfutils/Makefile

26 lines
684 B
Makefile
Raw Normal View History

# Makefile - hhl - /usr/src/world/elfutils
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
distname = elfutils
distext = bz2
#patches += elfutils-wnoerror.patch
#patches += elfutils-musl-no-error.patch
#patches += elfutils-musl-no-cdefs.patch
include world.mk
export XFLAGS = --sysroot=$(DESTDIR)
config_opts += --host=$(tgt)
config_opts += --disable-debuginfod
define build_cmd
$(MAKE) -C $(objdir)/lib
$(MAKE) -C $(objdir)/libelf
endef
install_cmd = $(MAKE) DESTDIR=$(DESTDIR) -C $(objdir)/libelf install
define post_install
rm -rf $(libdir)/libelf.a
install -m644 $(objdir)/config/libelf.pc $(libdir)/pkgconfig
endef
include targets.mk