summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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}
#------------------------------------------------------------------------------#