summaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-08-15 18:53:45 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-08-15 18:53:45 +0200
commit54c8bf2e978b883aad984549c946386d50160c0e (patch)
treeea1ca93ff5607cf1c626bc102fb9961e22bf5984 /GNUmakefile
parentFixed the Reload and Save-all console commands. (diff)
parentUpdated the makefile to disable assembly for clang. (diff)
downloadcuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar
cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar.gz
cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar.bz2
cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar.lz
cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar.xz
cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar.zst
cuberite-54c8bf2e978b883aad984549c946386d50160c0e.zip
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 277308e08..f139b3d39 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -12,6 +12,8 @@
# Usage:
# To make a release build, call "make release=1"
# To make a debug build, call "make"
+# To make a 32-bit build on 64-bit OS, pass the addm32=1 flag
+# To build with clang, you need to add disableasm=1 flag
#
###################################################
@@ -98,10 +100,9 @@ endif
-################
+###################################################
# 32-bit build override in 64-bit build environments
-# - so that BearBin doesn't need to modify his makefile after each makefile change :)
-################
+
ifeq ($(addm32),1)
CC_OPTIONS += -m32
CXX_OPTIONS += -m32
@@ -110,6 +111,21 @@ endif
+
+
+
+###################################################
+# Clang doesn't seem to support CryptoPP's assembly mode, disable it for now (CryptoPP 5.6.2)
+
+ifeq ($(disableasm),1)
+ CC_OPTIONS += -DCRYPTOPP_DISABLE_ASM
+ CXX_OPTIONS += -DCRYPTOPP_DISABLE_ASM
+endif
+
+
+
+
+
###################################################
# INCLUDE directories for MCServer
#