aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6805531..fa28732 100644
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,7 @@ SRCS_NAME += ft_sfx_pain.c
SRCS_NAME += ft_sfx_trap.c
SRCS_NAME += ft_death_screen.c
SRCS_NAME += ft_death_hooks.c
+SRCS_NAME += ft_init_sprites.c
#--------------------------------------------------------------------------------------------------#
SRCS = $(addprefix ${SRCS_DIR},${SRCS_NAME})
#--------------------------------------------------------------------------------------------------#
@@ -121,7 +122,11 @@ endif
#==================================================================================================#
#------------------------------------------ Compiler ----------------------------------------------#
#==================================================================================================#
-DEBUG = -glldb
+ifeq (${OS}, Darwin)
+ DBG = -glldb
+else
+ DBG = -ggdb
+endif
FSANITIZE = -fsanitize=address
#--------------------------------------------------------------------------------------------------#
ifeq (${OS}, Darwin)
@@ -136,8 +141,12 @@ CFLAGS += -Wextra
CFLAGS += -Werror
CFLAGS += -pedantic
#--------------------------------------------------------------------------------------------------#
+ifdef DEBUG
+ CFLAGS += ${DBG}
+endif
+#--------------------------------------------------------------------------------------------------#
ifdef ASAN
- CFLAGS += ${DEBUG}
+ CFLAGS += ${DBG}
CFLAGS += ${FSANITIZE}
endif
#--------------------------------------------------------------------------------------------------#
@@ -201,8 +210,10 @@ endif
#--------------------------------------------------------------------------------------------------#
re: fclean all
#--------------------------------------------------------------------------------------------------#
+bonus: all
+#--------------------------------------------------------------------------------------------------#
run: all
@./${NAME} "map/map_one.cub"
#--------------------------------------------------------------------------------------------------#
-.PHONY: all clean clean fclean re run default
+.PHONY: all clean clean fclean re bonus run default
#============================================== EOF ===============================================#