msxbuild/lib/make/msxbuild.mk

45 lines
1.6 KiB
Makefile
Raw Normal View History

2020-12-23 17:14:13 +00:00
#
2021-07-04 00:12:48 +00:00
# msxbuild.mk - Makefile helper to use with msx projects.
2020-12-23 17:14:13 +00:00
#
# Setup default tools paths
2024-07-05 22:11:54 +00:00
PATH_SDCC ?= /usr/bin
PATH_OPENMSX ?= /usr/bin
PATH_MSXBUILD ?= $(dir $(lastword $(MAKEFILE_LIST)))../..
2021-07-06 18:42:46 +00:00
PATH_MSXBUILD_REAL := $(if $(realpath $(PATH_MSXBUILD)),$(realpath $(PATH_MSXBUILD)),$(PATH_MSXBUILD))
2024-06-29 22:49:23 +00:00
# Include extra features
include $(PATH_MSXBUILD)/lib/make/mb_doc.mk
include $(PATH_MSXBUILD)/lib/make/mb_make.mk
include $(PATH_MSXBUILD)/lib/make/mb_conv.mk
include $(PATH_MSXBUILD)/lib/make/mb_sdcc.mk
include $(PATH_MSXBUILD)/lib/make/mb_flight.mk
include $(PATH_MSXBUILD)/lib/make/mb_msxrom.mk
include $(PATH_MSXBUILD)/lib/make/mb_msxhub.mk
include $(PATH_MSXBUILD)/lib/make/mb_msxpipe.mk
include $(PATH_MSXBUILD)/lib/make/mb_openmsx.mk
include $(PATH_MSXBUILD)/lib/make/mb_autoexec.mk
include $(PATH_MSXBUILD)/lib/make/mb_assert.mk
include $(PATH_MSXBUILD)/lib/make/mb_tool.mk
include $(PATH_MSXBUILD)/lib/make/mb_proj.mk
2024-07-05 22:11:54 +00:00
include $(PATH_MSXBUILD)/lib/make/mb_os.mk
2020-12-23 17:14:13 +00:00
2024-07-05 22:11:54 +00:00
# Below mb_doc.mk for white space...
2024-07-07 18:53:06 +00:00
$(call mb_make_call,mb_doc_variable_deep,PATH_SDCC,"Path where SDCC binaries are located.")
$(call mb_make_call,mb_doc_variable_deep,PATH_OPENMSX,"Path where openMSX binary is located.")
$(call mb_make_call,mb_doc_variable_deep,PATH_MSXBUILD,"Path where msxbuild lib folder is located.")
$(call mb_make_call,mb_doc_variable_rock,PATH_MSXBUILD_REAL,"Resolved real path of msxbuild.")
define mb_create_dist
$(call mb_make_call,mb_make_echo_command,Creating distribution archive $(2))
2024-06-30 02:37:21 +00:00
tar -czf $(2) -C $(1) `ls $(1)`
endef
2024-07-07 18:53:06 +00:00
$(call mb_make_call,mb_doc_function,mb_create_dist,"Create an distribution archive.","<dir> <artifact>")