aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-29 00:50:02 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-29 00:50:02 +0100
commit7fa49f137016f188dbbc3337c772d1301409303c (patch)
tree9bab66b3aa4921cbe76192faa05bb967e03e9109 /Makefile
parentWorks fine, preparing small map (diff)
download42-cub3d-7fa49f137016f188dbbc3337c772d1301409303c.tar.gz
42-cub3d-7fa49f137016f188dbbc3337c772d1301409303c.tar.bz2
42-cub3d-7fa49f137016f188dbbc3337c772d1301409303c.tar.xz
42-cub3d-7fa49f137016f188dbbc3337c772d1301409303c.tar.zst
42-cub3d-7fa49f137016f188dbbc3337c772d1301409303c.zip
Better defines
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 15 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 82b070c..54305fb 100644
--- a/Makefile
+++ b/Makefile
@@ -117,18 +117,22 @@ ifdef OPTI
endif
#--------------------------------------------------------------------------------------------------#
CDEFS = -DFT_SCR_SIZE=\"${SCR_SZE}\"
-CDEFS += -DFT_OS=\"${OS}\"
-ifneq (${OS}, Darwin)
- CDEFS += -DFT_W_KEY=119
- CDEFS += -DFT_A_KEY=97
- CDEFS += -DFT_S_KEY=115
- CDEFS += -DFT_D_KEY=100
- CDEFS += -DFT_F1_KEY=65470
- CDEFS += -DFT_TAB_KEY=65289
- CDEFS += -DFT_L_ARR_KEY=65361
- CDEFS += -DFT_R_ARR_KEY=65363
- CDEFS += -DFT_ESC_KEY=65307
+ifeq (${OS}, Darwin)
+ CDEFS += -DFT_OS=1
+else
+ CDEFS += -DFT_OS=2
endif
+# ifneq (${OS}, Darwin)
+# CDEFS += -DFT_W_KEY=119
+# CDEFS += -DFT_A_KEY=97
+# CDEFS += -DFT_S_KEY=115
+# CDEFS += -DFT_D_KEY=100
+# CDEFS += -DFT_F1_KEY=65470
+# CDEFS += -DFT_TAB_KEY=65289
+# CDEFS += -DFT_L_ARR_KEY=65361
+# CDEFS += -DFT_R_ARR_KEY=65363
+# CDEFS += -DFT_ESC_KEY=65307
+# endif
#--------------------------------------------------------------------------------------------------#
ifeq (${OS}, Darwin)
NAME = Cub3D