cnq3/makefiles/gmake/Makefile

115 lines
No EOL
3 KiB
Makefile

# GNU Make workspace makefile autogenerated by Premake
.NOTPARALLEL:
ifndef config
config=debug_x32
endif
ifndef verbose
SILENT = @
endif
ifeq ($(config),debug_x32)
cnq3_config = debug_x32
cnq3_server_config = debug_x32
botlib_config = debug_x32
glew_config = debug_x32
renderer_config = debug_x32
libjpeg_turbo_config = debug_x32
endif
ifeq ($(config),debug_x64)
cnq3_config = debug_x64
cnq3_server_config = debug_x64
botlib_config = debug_x64
glew_config = debug_x64
renderer_config = debug_x64
libjpeg_turbo_config = debug_x64
endif
ifeq ($(config),release_x32)
cnq3_config = release_x32
cnq3_server_config = release_x32
botlib_config = release_x32
glew_config = release_x32
renderer_config = release_x32
libjpeg_turbo_config = release_x32
endif
ifeq ($(config),release_x64)
cnq3_config = release_x64
cnq3_server_config = release_x64
botlib_config = release_x64
glew_config = release_x64
renderer_config = release_x64
libjpeg_turbo_config = release_x64
endif
PROJECTS := cnq3 cnq3-server botlib glew renderer libjpeg-turbo
.PHONY: all clean help $(PROJECTS)
all: $(PROJECTS)
cnq3: botlib renderer glew libjpeg-turbo
ifneq (,$(cnq3_config))
@echo "==== Building cnq3 ($(cnq3_config)) ===="
@${MAKE} --no-print-directory -C . -f cnq3.make config=$(cnq3_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
botlib:
ifneq (,$(botlib_config))
@echo "==== Building botlib ($(botlib_config)) ===="
@${MAKE} --no-print-directory -C . -f botlib.make config=$(botlib_config)
endif
glew:
ifneq (,$(glew_config))
@echo "==== Building glew ($(glew_config)) ===="
@${MAKE} --no-print-directory -C . -f glew.make config=$(glew_config)
endif
renderer:
ifneq (,$(renderer_config))
@echo "==== Building renderer ($(renderer_config)) ===="
@${MAKE} --no-print-directory -C . -f renderer.make config=$(renderer_config)
endif
libjpeg-turbo:
ifneq (,$(libjpeg_turbo_config))
@echo "==== Building libjpeg-turbo ($(libjpeg_turbo_config)) ===="
@${MAKE} --no-print-directory -C . -f libjpeg-turbo.make config=$(libjpeg_turbo_config)
endif
clean:
@${MAKE} --no-print-directory -C . -f cnq3.make clean
@${MAKE} --no-print-directory -C . -f cnq3-server.make clean
@${MAKE} --no-print-directory -C . -f botlib.make clean
@${MAKE} --no-print-directory -C . -f glew.make clean
@${MAKE} --no-print-directory -C . -f renderer.make clean
@${MAKE} --no-print-directory -C . -f libjpeg-turbo.make clean
help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " debug_x32"
@echo " debug_x64"
@echo " release_x32"
@echo " release_x64"
@echo ""
@echo "TARGETS:"
@echo " all (default)"
@echo " clean"
@echo " cnq3"
@echo " cnq3-server"
@echo " botlib"
@echo " glew"
@echo " renderer"
@echo " libjpeg-turbo"
@echo ""
@echo "For more information, see http://industriousone.com/premake/quick-start"