diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-29 00:50:02 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-29 00:50:02 +0100 |
commit | 7fa49f137016f188dbbc3337c772d1301409303c (patch) | |
tree | 9bab66b3aa4921cbe76192faa05bb967e03e9109 /Makefile | |
parent | Works fine, preparing small map (diff) | |
download | 42-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-- | Makefile | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -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 |