cnq3/makefiles/linux_gmake/Makefile

55 lines
1.2 KiB
Makefile
Raw Normal View History

# GNU Make workspace makefile autogenerated by Premake
ifndef config
2020-01-06 00:04:16 +00:00
config=debug_x64
endif
ifndef verbose
SILENT = @
endif
ifeq ($(config),debug_x64)
botlib_config = debug_x64
cnq3_server_config = debug_x64
endif
ifeq ($(config),release_x64)
botlib_config = release_x64
cnq3_server_config = release_x64
endif
PROJECTS := botlib cnq3-server
.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
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)
endif
clean:
@${MAKE} --no-print-directory -C . -f botlib.make clean
@${MAKE} --no-print-directory -C . -f cnq3-server.make clean
help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " debug_x64"
@echo " release_x64"
@echo ""
@echo "TARGETS:"
@echo " all (default)"
@echo " clean"
@echo " botlib"
@echo " cnq3-server"
@echo ""
2023-09-20 20:30:38 +00:00
@echo "For more information, see https://github.com/premake/premake-core/wiki"