Files
wren/projects/gmake/Makefile
T
underscorediscovery 7232ca4310 fix: rename nan-tagging build configs and add release variant with CI script
Replace the broken `64bit-no-nan-tagging_64bit` and `64bit-no-nan-tagging_32bit` configurations with properly named `release_64bit-no-nan-tagging` and `debug_64bit-no-nan-tagging` across all gmake Makefiles and wren_cli.make files. Add the missing `release_64bit-no-nan-tagging` build target definitions for linux, mac, and bsd platforms. Introduce `.travis.sh` script that runs both nan-tagged and non-nan-tagged debug and release builds, and simplify `.travis.yml` to use the new script with per-os env variables instead of matrix options.
2020-05-28 16:57:29 +00:00

64 lines
1.4 KiB
Makefile

# Alternative GNU Make workspace makefile autogenerated by Premake
ifndef config
config=release_64bit
endif
ifndef verbose
SILENT = @
endif
ifeq ($(config),release_64bit)
wren_cli_config = release_64bit
else ifeq ($(config),release_32bit)
wren_cli_config = release_32bit
else ifeq ($(config),release_64bit-no-nan-tagging)
wren_cli_config = release_64bit-no-nan-tagging
else ifeq ($(config),debug_64bit)
wren_cli_config = debug_64bit
else ifeq ($(config),debug_32bit)
wren_cli_config = debug_32bit
else ifeq ($(config),debug_64bit-no-nan-tagging)
wren_cli_config = debug_64bit-no-nan-tagging
else
$(error "invalid configuration $(config)")
endif
PROJECTS := wren_cli
.PHONY: all clean help $(PROJECTS)
all: $(PROJECTS)
wren_cli:
ifneq (,$(wren_cli_config))
@echo "==== Building wren_cli ($(wren_cli_config)) ===="
@${MAKE} --no-print-directory -C . -f wren_cli.make config=$(wren_cli_config)
endif
clean:
@${MAKE} --no-print-directory -C . -f wren_cli.make clean
help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " release_64bit"
@echo " release_32bit"
@echo " release_64bit-no-nan-tagging"
@echo " debug_64bit"
@echo " debug_32bit"
@echo " debug_64bit-no-nan-tagging"
@echo ""
@echo "TARGETS:"
@echo " all (default)"
@echo " clean"
@echo " wren_cli"
@echo ""
@echo "For more information, see https://github.com/premake/premake-core/wiki"