summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-12 18:35:08 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-12 18:35:08 +0200
commit5ef6be2f273861ac7252f924ab555687436bcb6d (patch)
tree3ca13aa6164db0f989fc65e2597a074fbecbaef9 /Makefile
parentTest (diff)
download42-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--Makefile8
1 files 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}
#------------------------------------------------------------------------------#