From 2ba34c2c0f2d1157461197784fa000950a9d03e8 Mon Sep 17 00:00:00 2001 From: flowtron Date: Thu, 13 Jan 2022 17:37:57 +0100 Subject: [PATCH] Updated linux CodeBlocks project and tweaked Makefile accordingly --- source/codeblocks/AssaultCube_Linux.cbp | 709 ++++++++++-------------- source/src/Makefile | 14 +- 2 files changed, 295 insertions(+), 428 deletions(-) diff --git a/source/codeblocks/AssaultCube_Linux.cbp b/source/codeblocks/AssaultCube_Linux.cbp index 0c522ff0..ae04f309 100644 --- a/source/codeblocks/AssaultCube_Linux.cbp +++ b/source/codeblocks/AssaultCube_Linux.cbp @@ -1,428 +1,287 @@ - - - + + + diff --git a/source/src/Makefile b/source/src/Makefile index c76791ca..bf061958 100644 --- a/source/src/Makefile +++ b/source/src/Makefile @@ -8,13 +8,21 @@ # continue using clang++ (just in case), you can use g++ if you prefer. CXX=clang++ -# Changing this to ACDEBUG=yes will compile a debug version of AssaultCube. -ACDEBUG=no +# call like 'DEBUGBUILD=1 make' to compile a debug version of AssaultCube. +ifdef DEBUGBUILD + ACDEBUG=yes +else + ACDEBUG=no +endif PLATFORM=$(shell uname -s) # This prefix is only used to name the installed executables. -PLATFORM_PREFIX=native +ifdef DEBUGBUILD + PLATFORM_PREFIX=debug +else + PLATFORM_PREFIX=native +endif # As above, this file is optional only. -include Makefile_local