aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-13 23:12:32 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-13 23:12:32 +0100
commit97c08dd3043ee55724bba86c46804fd78a319df6 (patch)
tree3e033363a59ba28cdcc3e449e2e2f455ba1a9605 /Makefile
parentIn progress (diff)
download42-cub3d-97c08dd3043ee55724bba86c46804fd78a319df6.tar.gz
42-cub3d-97c08dd3043ee55724bba86c46804fd78a319df6.tar.bz2
42-cub3d-97c08dd3043ee55724bba86c46804fd78a319df6.tar.xz
42-cub3d-97c08dd3043ee55724bba86c46804fd78a319df6.tar.zst
42-cub3d-97c08dd3043ee55724bba86c46804fd78a319df6.zip
Colors
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1325b75..4870dfd 100644
--- a/Makefile
+++ b/Makefile
@@ -79,11 +79,12 @@ ifdef ASAN
CFLAGS += ${FSANITIZE}
endif
CDEFS = -DFT_SCR_SIZE=\"${SCR_SZE}\"
-ifeq (${OS}, Linux)
+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_ESC_KEY=65307
endif
#------------------------------------------------------------------------------#
@@ -103,7 +104,7 @@ ${OBJS_DIR}%.o: ${SRCS_DIR}%.c ${INCS_DIR}
ifeq (${OS}, Darwin)
${CC} -c ${CFLAGS} ${CDEFS} -I${LFT_DIR}${INCS_DIR} -I${MLX_DIR} -I${INCS_DIR} -o $@ $<
else
- ${CC} -c ${CFLAGS} -I${LFT_DIR}${INCS_DIR} -I${INCS_DIR} \
+ ${CC} -c ${CFLAGS} ${CDEFS} -I${LFT_DIR}${INCS_DIR} -I${INCS_DIR} \
\
-o $@ $<
endif