2024-06-30 00:42:42 +00:00
|
|
|
#
|
|
|
|
# Example project makefile for msxbuild.
|
|
|
|
#
|
2020-12-23 17:14:13 +00:00
|
|
|
PATH_BIN := bin
|
2024-06-30 00:42:42 +00:00
|
|
|
PATH_SRC := src
|
|
|
|
rwildcard = $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))
|
2024-06-30 00:44:32 +00:00
|
|
|
MK_MODULES := $(call rwildcard, $(PATH_SRC), */0module.mk)
|
2020-12-23 17:14:13 +00:00
|
|
|
BUILD_ALL := "Use 'make help' for possible targets."
|
|
|
|
BUILD_HELP := "Use one of the following build targets;"
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
|
|
|
@echo $(BUILD_ALL)
|
|
|
|
|
|
|
|
BUILD_HELP += \\n\\t* help
|
|
|
|
.PHONY: help
|
|
|
|
help:
|
|
|
|
@echo $(BUILD_HELP)
|
|
|
|
|
2020-12-23 21:20:15 +00:00
|
|
|
BUILD_HELP += \\n\\t* clean
|
2020-12-23 17:14:13 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(call mb_clean,$(PATH_BIN))
|
|
|
|
|
|
|
|
include lib/make/msxbuild.mk
|
2024-06-30 00:42:42 +00:00
|
|
|
include $(MK_MODULES)
|