24 lines
593 B
Makefile
24 lines
593 B
Makefile
|
# Makefile - hhl - /usr/src/world/elfutils
|
||
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
||
|
#
|
||
|
distname = elfutils
|
||
|
distext = bz2
|
||
|
patches = elfutils-wnoerror.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
|