mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
02589839cd
outputting to /.build (temp) and /.bin (final) instead of ../.bin removed the premake option "quake3dir" on Linux, not copying files if $QUAKE3DIR is undefined/empty on Linux, compiling all C++ code with -std=c++98 added a meta-Makefile at the root for convenience added build documentation (build.md)
46 lines
998 B
Makefile
46 lines
998 B
Makefile
.NOTPARALLEL:
|
|
|
|
ifndef config
|
|
config=release_x64
|
|
endif
|
|
|
|
ifndef verbose
|
|
SILENT = @
|
|
endif
|
|
|
|
PROJECTS := server client
|
|
|
|
help:
|
|
@echo "Usage: make [config=name] target"
|
|
@echo ""
|
|
@echo "CONFIGURATIONS:"
|
|
@echo " debug_x32"
|
|
@echo " debug_x64"
|
|
@echo " release_x32"
|
|
@echo " release_x64 (default)"
|
|
@echo ""
|
|
@echo "TARGETS:"
|
|
@echo " server"
|
|
@echo " client"
|
|
@echo " all (server + client)"
|
|
@echo " clean"
|
|
@echo " help (default)"
|
|
@echo ""
|
|
@echo "REQUIREMENTS:"
|
|
@echo " NASM is required for building the client."
|
|
@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:
|
|
@${MAKE} --no-print-directory -C ./makefiles/gmake cnq3-server config=$(config)
|
|
|
|
client:
|
|
@${MAKE} --no-print-directory -C ./makefiles/gmake cnq3 config=$(config)
|
|
|
|
clean:
|
|
@${MAKE} --no-print-directory -C ./makefiles/gmake clean config=$(config)
|
|
|
|
all: server client
|