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
This commit is contained in:
hendricks266 2017-01-23 11:21:42 +00:00
parent 382404f813
commit 05a3b230aa

View file

@ -170,8 +170,8 @@ APPLE_FRAMEWORKS ?=/Library/Frameworks
# NOASM - disables the use of inline assembly pragmas # NOASM - disables the use of inline assembly pragmas
# LINKED_GTK - enables compile-time linkage to GTK # LINKED_GTK - enables compile-time linkage to GTK
# #
APPNAME ?= EDuke32 APPNAME=
APPBASENAME ?= eduke32 APPBASENAME=
STANDALONE ?= 0 STANDALONE ?= 0
POLYMER = 1 POLYMER = 1
USE_OPENGL = 1 USE_OPENGL = 1
@ -681,7 +681,12 @@ ifneq (0,$(STANDALONE))
COMPILERFLAGS+= -DEDUKE32_STANDALONE COMPILERFLAGS+= -DEDUKE32_STANDALONE
endif endif
COMPILERFLAGS+= -DAPPNAME=\"$(APPNAME)\" -DAPPBASENAME=\"$(APPBASENAME)\" ifneq (,$(APPNAME))
COMPILERFLAGS+= -DAPPNAME=\"$(APPNAME)\"
endif
ifneq (,$(APPBASENAME))
COMPILERFLAGS+= -DAPPBASENAME=\"$(APPBASENAME)\"
endif
# may be overridden # may be overridden
EXESUFFIX= EXESUFFIX=