2016-12-31 01:11:22 +00:00
|
|
|
# GNU Make workspace makefile autogenerated by Premake
|
|
|
|
|
|
|
|
ifndef config
|
2020-01-06 00:04:16 +00:00
|
|
|
config=debug_x64
|
2016-12-31 01:11:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef verbose
|
|
|
|
SILENT = @
|
|
|
|
endif
|
|
|
|
|
2017-01-11 13:24:58 +00:00
|
|
|
ifeq ($(config),debug_x64)
|
|
|
|
botlib_config = debug_x64
|
2022-12-28 19:49:18 +00:00
|
|
|
cnq3_server_config = debug_x64
|
2017-01-11 13:24:58 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(config),release_x64)
|
|
|
|
botlib_config = release_x64
|
2022-12-28 19:49:18 +00:00
|
|
|
cnq3_server_config = release_x64
|
2017-01-11 13:24:58 +00:00
|
|
|
endif
|
2016-12-31 01:11:22 +00:00
|
|
|
|
2022-12-28 19:49:18 +00:00
|
|
|
PROJECTS := botlib cnq3-server
|
2016-12-31 01:11:22 +00:00
|
|
|
|
|
|
|
.PHONY: all clean help $(PROJECTS)
|
|
|
|
|
|
|
|
all: $(PROJECTS)
|
|
|
|
|
|
|
|
botlib:
|
|
|
|
ifneq (,$(botlib_config))
|
|
|
|
@echo "==== Building botlib ($(botlib_config)) ===="
|
|
|
|
@${MAKE} --no-print-directory -C . -f botlib.make config=$(botlib_config)
|
|
|
|
endif
|
|
|
|
|
2022-12-28 19:49:18 +00:00
|
|
|
cnq3-server: botlib
|
|
|
|
ifneq (,$(cnq3_server_config))
|
|
|
|
@echo "==== Building cnq3-server ($(cnq3_server_config)) ===="
|
|
|
|
@${MAKE} --no-print-directory -C . -f cnq3-server.make config=$(cnq3_server_config)
|
2017-01-03 08:34:59 +00:00
|
|
|
endif
|
|
|
|
|
2016-12-31 01:11:22 +00:00
|
|
|
clean:
|
|
|
|
@${MAKE} --no-print-directory -C . -f botlib.make clean
|
2022-12-28 19:49:18 +00:00
|
|
|
@${MAKE} --no-print-directory -C . -f cnq3-server.make clean
|
2016-12-31 01:11:22 +00:00
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "Usage: make [config=name] [target]"
|
|
|
|
@echo ""
|
|
|
|
@echo "CONFIGURATIONS:"
|
2017-01-11 13:24:58 +00:00
|
|
|
@echo " debug_x64"
|
|
|
|
@echo " release_x64"
|
2016-12-31 01:11:22 +00:00
|
|
|
@echo ""
|
|
|
|
@echo "TARGETS:"
|
|
|
|
@echo " all (default)"
|
|
|
|
@echo " clean"
|
|
|
|
@echo " botlib"
|
2022-12-28 19:49:18 +00:00
|
|
|
@echo " cnq3-server"
|
2016-12-31 01:11:22 +00:00
|
|
|
@echo ""
|
2023-09-20 20:30:38 +00:00
|
|
|
@echo "For more information, see https://github.com/premake/premake-core/wiki"
|