libgpg-error: fix riscv64
[openadk.git] / package / elftoaout / Makefile
blob51af97ee8c424edc20169b71f5a612e7e0aec8c9
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= elftoaout
7 PKG_VERSION:= 2.3
8 PKG_RELEASE:= 1
9 PKG_DESCR:= elf to a.out converter
10 PKG_SECTION:= sys/misc
12 PKG_CFLINE_ELFTOAOUT:= depends on ADK_HOST_ONLY
14 NO_DISTFILES:= 1
16 include $(ADK_TOPDIR)/mk/host.mk
17 include $(ADK_TOPDIR)/mk/package.mk
19 $(eval $(call HOST_template,ELFTOAOUT,elftoaout,$(PKG_VERSION)-$(PKG_RELEASE)))
21 HOST_STYLE:= manual
23 ifeq ($(OS_FOR_BUILD),Darwin)
24 HOST_CFLAGS+= -I$(ADK_TOPDIR)/adk/include
25 endif
27 host-build:
28 $(HOST_CC) $(HOST_CFLAGS) -o $(WRKBUILD)/elftoaout $(WRKBUILD)/elftoaout.c
30 elftoaout-hostinstall:
31 $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/bin
32 $(INSTALL_BIN) $(WRKBUILD)/elftoaout $(STAGING_HOST_DIR)/usr/bin
34 include $(ADK_TOPDIR)/mk/host-bottom.mk
35 include $(ADK_TOPDIR)/mk/pkg-bottom.mk