2022-10-06 12:34:29 +00:00
|
|
|
TARGET = template_debug
|
2018-02-22 22:16:25 +00:00
|
|
|
|
2022-10-06 12:34:29 +00:00
|
|
|
BASE = scons target=$(TARGET) $(EXTRA_ARGS)
|
2019-03-10 11:38:55 +00:00
|
|
|
LINUX = $(BASE) platform=linux
|
|
|
|
WINDOWS = $(BASE) platform=windows
|
2022-07-20 08:01:47 +00:00
|
|
|
MACOS = $(BASE) platform=macos
|
2018-02-22 22:16:25 +00:00
|
|
|
|
|
|
|
|
2022-10-06 12:34:29 +00:00
|
|
|
.PHONY: usage
|
|
|
|
usage:
|
|
|
|
@echo -e "Specify one of the available targets:\n"
|
|
|
|
# https://stackoverflow.com/a/26339924
|
|
|
|
@LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/(^|\n)# Files(\n|$$)/,/(^|\n)# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | grep -E -v -e '^[^[:alnum:]]' -e '^$@$$'
|
|
|
|
@echo -e "\nDefine the SCons target with TARGET, and pass extra SCons arguments with EXTRA_ARGS."
|
2018-02-22 22:16:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
linux:
|
|
|
|
make linux32
|
|
|
|
make linux64
|
|
|
|
|
|
|
|
linux32: SConstruct
|
2022-10-06 12:34:29 +00:00
|
|
|
$(LINUX) arch=x86_32
|
2018-02-22 22:16:25 +00:00
|
|
|
|
|
|
|
linux64: SConstruct
|
2022-10-06 12:34:29 +00:00
|
|
|
$(LINUX) arch=x86_64
|
2018-02-22 22:16:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
windows:
|
|
|
|
make windows32
|
|
|
|
make windows64
|
|
|
|
|
|
|
|
windows32: SConstruct
|
2022-10-06 12:34:29 +00:00
|
|
|
$(WINDOWS) arch=x86_32
|
2018-02-22 22:16:25 +00:00
|
|
|
|
|
|
|
windows64: SConstruct
|
2022-10-06 12:34:29 +00:00
|
|
|
$(WINDOWS) arch=x86_64
|
2018-02-22 22:16:25 +00:00
|
|
|
|
|
|
|
|
2022-07-20 08:01:47 +00:00
|
|
|
macos: SConstruct
|
|
|
|
$(MACOS)
|