2017-08-01 20:30:04 +00:00
|
|
|
.NOTPARALLEL:
|
|
|
|
|
2020-01-06 00:04:16 +00:00
|
|
|
host_os := $(shell uname -s)
|
|
|
|
ifeq ($(host_os), FreeBSD)
|
|
|
|
make_dir := ./makefiles/bsd_gmake
|
|
|
|
make_name := gmake
|
|
|
|
else
|
|
|
|
make_dir := ./makefiles/linux_gmake
|
|
|
|
make_name := make
|
|
|
|
endif
|
|
|
|
|
2017-08-01 20:30:04 +00:00
|
|
|
ifndef config
|
2020-01-06 00:04:16 +00:00
|
|
|
config=release
|
2017-08-01 20:30:04 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef verbose
|
|
|
|
SILENT = @
|
|
|
|
endif
|
|
|
|
|
2023-09-20 15:30:48 +00:00
|
|
|
# if client
|
|
|
|
#PROJECTS := server client
|
|
|
|
# else
|
|
|
|
PROJECTS := server
|
|
|
|
# endif
|
2017-08-01 20:30:04 +00:00
|
|
|
|
|
|
|
help:
|
2020-01-06 00:04:16 +00:00
|
|
|
@echo "Usage: $(make_name) [config=name] target"
|
2017-08-01 20:30:04 +00:00
|
|
|
@echo ""
|
|
|
|
@echo "CONFIGURATIONS:"
|
2020-01-06 00:04:16 +00:00
|
|
|
@echo " release (default)"
|
|
|
|
@echo " debug"
|
2017-08-01 20:30:04 +00:00
|
|
|
@echo ""
|
|
|
|
@echo "TARGETS:"
|
|
|
|
@echo " server"
|
2023-09-20 15:30:48 +00:00
|
|
|
# if client
|
|
|
|
# @echo " client"
|
|
|
|
# @echo " all (server + client)"
|
|
|
|
# else
|
|
|
|
@echo " all (server only for now)"
|
|
|
|
# end
|
2017-08-01 20:30:04 +00:00
|
|
|
@echo " clean"
|
|
|
|
@echo " help (default)"
|
2023-09-20 15:30:48 +00:00
|
|
|
# if client
|
|
|
|
# @echo ""
|
|
|
|
# @echo "REQUIREMENTS:"
|
|
|
|
# @echo " NASM is required for building the client."
|
|
|
|
# endif
|
2017-08-01 20:30:04 +00:00
|
|
|
@echo ""
|
|
|
|
@echo "OPTIONS:"
|
|
|
|
@echo " If the environment variable QUAKE3DIR is defined,"
|
|
|
|
@echo " the output executable(s) will be copied to"
|
|
|
|
@echo " that directory as a post-build command."
|
|
|
|
|
|
|
|
server:
|
2020-01-06 00:04:16 +00:00
|
|
|
@${MAKE} --no-print-directory -C $(make_dir) cnq3-server config=$(config)_x64
|
2023-09-20 15:30:48 +00:00
|
|
|
|
|
|
|
# if client
|
|
|
|
#client:
|
|
|
|
# @${MAKE} --no-print-directory -C $(make_dir) cnq3 config=$(config)_x64
|
|
|
|
# endif
|
2017-08-01 20:30:04 +00:00
|
|
|
|
|
|
|
clean:
|
2020-01-06 00:04:16 +00:00
|
|
|
@${MAKE} --no-print-directory -C $(make_dir) clean config=$(config)_x64
|
2017-08-01 20:30:04 +00:00
|
|
|
|
2023-09-20 15:30:48 +00:00
|
|
|
# if client
|
|
|
|
#all: server client
|
|
|
|
# else
|
|
|
|
all: server
|
|
|
|
# endif
|