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
9 PKG_DESCR
:= elf to a.out converter
10 PKG_SECTION
:= sys
/misc
12 PKG_CFLINE_ELFTOAOUT
:= depends on ADK_HOST_ONLY
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
)))
23 ifeq ($(OS_FOR_BUILD
),Darwin
)
24 HOST_CFLAGS
+= -I
$(ADK_TOPDIR
)/adk
/include
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