2016-12-31 01:11:22 +00:00
|
|
|
# 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
|
2019-09-25 03:25:59 +00:00
|
|
|
glew_config = debug_x32
|
2016-12-31 01:11:22 +00:00
|
|
|
renderer_config = debug_x32
|
2017-01-03 08:34:59 +00:00
|
|
|
libjpeg_turbo_config = debug_x32
|
2016-12-31 01:11:22 +00:00
|
|
|
endif
|
2017-01-11 13:24:58 +00:00
|
|
|
ifeq ($(config),debug_x64)
|
|
|
|
cnq3_config = debug_x64
|
|
|
|
cnq3_server_config = debug_x64
|
|
|
|
botlib_config = debug_x64
|
2019-09-25 03:25:59 +00:00
|
|
|
glew_config = debug_x64
|
2017-01-11 13:24:58 +00:00
|
|
|
renderer_config = debug_x64
|
|
|
|
libjpeg_turbo_config = debug_x64
|
|
|
|
endif
|
2016-12-31 01:11:22 +00:00
|
|
|
ifeq ($(config),release_x32)
|
|
|
|
cnq3_config = release_x32
|
|
|
|
cnq3_server_config = release_x32
|
|
|
|
botlib_config = release_x32
|
2019-09-25 03:25:59 +00:00
|
|
|
glew_config = release_x32
|
2016-12-31 01:11:22 +00:00
|
|
|
renderer_config = release_x32
|
2017-01-03 08:34:59 +00:00
|
|
|
libjpeg_turbo_config = release_x32
|
2016-12-31 01:11:22 +00:00
|
|
|
endif
|
2017-01-11 13:24:58 +00:00
|
|
|
ifeq ($(config),release_x64)
|
|
|
|
cnq3_config = release_x64
|
|
|
|
cnq3_server_config = release_x64
|
|
|
|
botlib_config = release_x64
|
2019-09-25 03:25:59 +00:00
|
|
|
glew_config = release_x64
|
2017-01-11 13:24:58 +00:00
|
|
|
renderer_config = release_x64
|
|
|
|
libjpeg_turbo_config = release_x64
|
|
|
|
endif
|
2016-12-31 01:11:22 +00:00
|
|
|
|
2019-09-25 03:25:59 +00:00
|
|
|
PROJECTS := cnq3 cnq3-server botlib glew renderer libjpeg-turbo
|
2016-12-31 01:11:22 +00:00
|
|
|
|
|
|
|
.PHONY: all clean help $(PROJECTS)
|
|
|
|
|
|
|
|
all: $(PROJECTS)
|
|
|
|
|
2019-09-25 03:25:59 +00:00
|
|
|
cnq3: botlib renderer glew libjpeg-turbo
|
2016-12-31 01:11:22 +00:00
|
|
|
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
|
|
|
|
|
2019-09-25 03:25:59 +00:00
|
|
|
glew:
|
|
|
|
ifneq (,$(glew_config))
|
|
|
|
@echo "==== Building glew ($(glew_config)) ===="
|
|
|
|
@${MAKE} --no-print-directory -C . -f glew.make config=$(glew_config)
|
|
|
|
endif
|
|
|
|
|
2016-12-31 01:11:22 +00:00
|
|
|
renderer:
|
|
|
|
ifneq (,$(renderer_config))
|
|
|
|
@echo "==== Building renderer ($(renderer_config)) ===="
|
|
|
|
@${MAKE} --no-print-directory -C . -f renderer.make config=$(renderer_config)
|
|
|
|
endif
|
|
|
|
|
2017-01-03 08:34:59 +00:00
|
|
|
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
|
|
|
|
|
2016-12-31 01:11:22 +00:00
|
|
|
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
|
2019-09-25 03:25:59 +00:00
|
|
|
@${MAKE} --no-print-directory -C . -f glew.make clean
|
2016-12-31 01:11:22 +00:00
|
|
|
@${MAKE} --no-print-directory -C . -f renderer.make clean
|
2017-01-03 08:34:59 +00:00
|
|
|
@${MAKE} --no-print-directory -C . -f libjpeg-turbo.make clean
|
2016-12-31 01:11:22 +00:00
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "Usage: make [config=name] [target]"
|
|
|
|
@echo ""
|
|
|
|
@echo "CONFIGURATIONS:"
|
|
|
|
@echo " debug_x32"
|
2017-01-11 13:24:58 +00:00
|
|
|
@echo " debug_x64"
|
2016-12-31 01:11:22 +00:00
|
|
|
@echo " release_x32"
|
2017-01-11 13:24:58 +00:00
|
|
|
@echo " release_x64"
|
2016-12-31 01:11:22 +00:00
|
|
|
@echo ""
|
|
|
|
@echo "TARGETS:"
|
|
|
|
@echo " all (default)"
|
|
|
|
@echo " clean"
|
|
|
|
@echo " cnq3"
|
|
|
|
@echo " cnq3-server"
|
|
|
|
@echo " botlib"
|
2019-09-25 03:25:59 +00:00
|
|
|
@echo " glew"
|
2016-12-31 01:11:22 +00:00
|
|
|
@echo " renderer"
|
2017-01-03 08:34:59 +00:00
|
|
|
@echo " libjpeg-turbo"
|
2016-12-31 01:11:22 +00:00
|
|
|
@echo ""
|
|
|
|
@echo "For more information, see http://industriousone.com/premake/quick-start"
|