From 05a3b230aade5db9bb3e971f8b54babf08577b1b Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 23 Jan 2017 11:21:42 +0000 Subject: [PATCH] Makefile: Only pass APPNAME and APPBASENAME to the preprocessor if a value for them was passed in. Keeping compiler invocation clutter to a minimum is good. git-svn-id: https://svn.eduke32.com/eduke32@6051 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile.common | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index c36e67f6b..3a0c3a785 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -170,8 +170,8 @@ APPLE_FRAMEWORKS ?=/Library/Frameworks # NOASM - disables the use of inline assembly pragmas # LINKED_GTK - enables compile-time linkage to GTK # -APPNAME ?= EDuke32 -APPBASENAME ?= eduke32 +APPNAME= +APPBASENAME= STANDALONE ?= 0 POLYMER = 1 USE_OPENGL = 1 @@ -681,7 +681,12 @@ ifneq (0,$(STANDALONE)) COMPILERFLAGS+= -DEDUKE32_STANDALONE endif -COMPILERFLAGS+= -DAPPNAME=\"$(APPNAME)\" -DAPPBASENAME=\"$(APPBASENAME)\" +ifneq (,$(APPNAME)) + COMPILERFLAGS+= -DAPPNAME=\"$(APPNAME)\" +endif +ifneq (,$(APPBASENAME)) + COMPILERFLAGS+= -DAPPBASENAME=\"$(APPBASENAME)\" +endif # may be overridden EXESUFFIX=