aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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