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