aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-22 23:59:26 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-22 23:59:26 +0100
commit4ae78583f731a3d8512693e80ccbcf522855312b (patch)
treead49e2a498f7b98b52e0169eab5f2fe6504740cd /Makefile
parentSmooth af (diff)
download42-cub3d-4ae78583f731a3d8512693e80ccbcf522855312b.tar.gz
42-cub3d-4ae78583f731a3d8512693e80ccbcf522855312b.tar.bz2
42-cub3d-4ae78583f731a3d8512693e80ccbcf522855312b.tar.xz
42-cub3d-4ae78583f731a3d8512693e80ccbcf522855312b.tar.zst
42-cub3d-4ae78583f731a3d8512693e80ccbcf522855312b.zip
Fixed map_three, Makefiles have POWERMODE
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2c2443d..91985bb 100644
--- a/Makefile
+++ b/Makefile
@@ -97,6 +97,12 @@ ifdef ASAN
CFLAGS += ${FSANITIZE}
endif
#--------------------------------------------------------------------------------------------------#
+ifdef POWER
+ CFLAGS += -march=ivybridge
+ CFLAGS += -O2
+ CFLAGS += -pipe
+endif
+#--------------------------------------------------------------------------------------------------#
CDEFS = -DFT_SCR_SIZE=\"${SCR_SZE}\"
ifneq (${OS}, Darwin)
CDEFS += -DFT_W_KEY=119
@@ -140,6 +146,9 @@ ifeq (${OS}, Darwin)
endif
ifdef ASAN
@$(MAKE) --no-print-directory -C ${LFT_DIR} all ASAN=1
+endif
+ifdef POWER
+ @$(MAKE) --no-print-directory -C ${LFT_DIR} all POWER=1
else
@$(MAKE) --no-print-directory -C ${LFT_DIR} all
endif