summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2017-08-07 12:56:09 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2017-08-07 12:56:09 +0200
commit2a31d9a48eca0dd73fcb98d6dffca5f5ceb79256 (patch)
tree9bb2ca61870080eebbd5547772b38df40af86de1 /templates
parent2fcfe8521987be953c77d952e7b73fc923aeceae (diff)
downloadMPC-2a31d9a48eca0dd73fcb98d6dffca5f5ceb79256.tar.gz
Only generate common defines when we have those
* templates/bmake.mpd:
Diffstat (limited to 'templates')
-rw-r--r--templates/bmake.mpd6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/bmake.mpd b/templates/bmake.mpd
index 8f53a42c..6e9557d1 100644
--- a/templates/bmake.mpd
+++ b/templates/bmake.mpd
@@ -229,21 +229,27 @@ COMMON_FLAGS = \
<%endif%>
<%if(build64bit)%>
+<%if(common64_defines)%>
COMMON_DEFINES = \
<%foreach(common64_defines)%>
-D<%common64_define%><%fornotlast(" \\")%>
<%endfor%>
+<%endif%>
<%else%>
!ifdef CLASSIC
+<%if(common32_defines)%>
COMMON_DEFINES = \
<%foreach(common32_defines)%>
-D<%common32_define%><%fornotlast(" \\")%>
<%endfor%>
+<%endif%>
!else
+<%if(common32c_defines)%>
COMMON_DEFINES = \
<%foreach(common32c_defines)%>
-D<%common32c_define%><%fornotlast(" \\")%>
<%endfor%>
+<%endif%>
!endif
<%endif%>