diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index 8c0f44f37..405ee5d81 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -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 diff --git a/polymer/eduke32/source/duke3d.h b/polymer/eduke32/source/duke3d.h index fd3d50a73..f47296927 100644 --- a/polymer/eduke32/source/duke3d.h +++ b/polymer/eduke32/source/duke3d.h @@ -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)