From 5ef6be2f273861ac7252f924ab555687436bcb6d Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 12 Oct 2020 18:35:08 +0200 Subject: Test --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b2b16f0..ed51777 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -default: asan +default: all #==============================================================================# #--------------------------------- SHELL --------------------------------------# #==============================================================================# @@ -125,6 +125,8 @@ CFLAGS += -Wextra CFLAGS += -Werror CFLAGS += -pedantic #------------------------------------------------------------------------------# +CDEFS = -D_BSD_SOURCE +#------------------------------------------------------------------------------# LDFLAGS = -L${LFT_DIR} LDFLAGS += -lft #==============================================================================# @@ -139,11 +141,11 @@ LFTRULE = all #------------------------------------------------------------------------------# ${OBJS_DIR}%.o: ${SRCS_DIR}%.c ${INCS} @${MKDIR} ${OBJS_DIR} - ${CC} -c ${CFLAGS} -I${LFT_INCS_DIR} -o $@ $< + ${CC} -c ${CFLAGS} ${CDEFS} -I${LFT_INCS_DIR} -o $@ $< #------------------------------------------------------------------------------# $(NAME): ${OBJS} ${LFT_SRCS} ${LFT_INCS_DIR}libft.h @$(MAKE) --no-print-directory -C ${LFT_DIR} ${LFTRULE} - ${CC} ${CFLAGS} -o ${NAME} ${OBJS} ${LDFLAGS} + ${CC} ${CFLAGS} ${CDEFS} -o ${NAME} ${OBJS} ${LDFLAGS} #------------------------------------------------------------------------------# all: ${NAME} #------------------------------------------------------------------------------# -- cgit v1.2.3