mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
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:
parent
382404f813
commit
05a3b230aa
1 changed files with 8 additions and 3 deletions
|
@ -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=
|
||||||
|
|
Loading…
Reference in a new issue