From 7fa49f137016f188dbbc3337c772d1301409303c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 29 Feb 2020 00:50:02 +0100 Subject: Better defines --- Makefile | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3