Support compiling with a custom application name with make APPNAME="something". DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@6008 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-01-18 22:20:58 +00:00
parent 8e7939fdc2
commit 00e39e3ffe
2 changed files with 7 additions and 1 deletions

View file

@ -170,6 +170,7 @@ APPLE_FRAMEWORKS ?=/Library/Frameworks
# NOASM - disables the use of inline assembly pragmas
# LINKED_GTK - enables compile-time linkage to GTK
#
APPNAME ?= EDuke32
POLYMER = 1
USE_OPENGL = 1
NOASM = 0
@ -670,6 +671,8 @@ ifneq (0,$(DMALLOC))
COMPILERFLAGS+= -DDMALLOC
endif
COMPILERFLAGS+= -DAPPNAME=\"$(APPNAME)\"
# may be overridden
EXESUFFIX=
DLLSUFFIX=.so

View file

@ -43,7 +43,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "keyboard.h"
#include "fx_man.h"
#define APPNAME "EDuke32"
#ifndef APPNAME
#define APPNAME "EDuke32"
#endif
#define HEAD2 APPNAME
#define VOLUMEALL (g_Shareware == 0)