diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -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 ===============================================# |