diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-12 18:35:08 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-12 18:35:08 +0200 |
commit | 5ef6be2f273861ac7252f924ab555687436bcb6d (patch) | |
tree | 3ca13aa6164db0f989fc65e2597a074fbecbaef9 /Makefile | |
parent | Test (diff) | |
download | 42-minishell-5ef6be2f273861ac7252f924ab555687436bcb6d.tar.gz 42-minishell-5ef6be2f273861ac7252f924ab555687436bcb6d.tar.bz2 42-minishell-5ef6be2f273861ac7252f924ab555687436bcb6d.tar.xz 42-minishell-5ef6be2f273861ac7252f924ab555687436bcb6d.tar.zst 42-minishell-5ef6be2f273861ac7252f924ab555687436bcb6d.zip |
Test
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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} #------------------------------------------------------------------------------# |