From 4926713021c54cfb8f00a9a128998aa316f32f13 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 27 Jan 2020 20:07:45 +0100 Subject: Added new file, added -lm to Linux compilation --- Makefile | 3 ++- src/ft_drawmap.c | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/ft_drawmap.c diff --git a/Makefile b/Makefile index 4814d68..ecf5f4f 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ SRCS_NAME += ft_check_empty_line.c SRCS_NAME += ft_free_words.c SRCS_NAME += ft_map_error.c SRCS_NAME += ft_init_winlx.c +SRCS_NAME += ft_drawmap.c SRCS_NAME += ft_print_list.c #------------------------------------------------------------------------------# SRCS = $(addprefix ${SRCS_DIR},${SRCS_NAME}) @@ -82,7 +83,7 @@ ifeq (${OS}, Darwin) ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_DIR} -lft -lmlx -lm \ -framework OpenGL -framework AppKit else - ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -lft -lX11 -lXext -lmlx + ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -lft -lX11 -lXext -lmlx -lm endif #------------------------------------------------------------------------------# all: diff --git a/src/ft_drawmap.c b/src/ft_drawmap.c new file mode 100644 index 0000000..f944b11 --- /dev/null +++ b/src/ft_drawmap.c @@ -0,0 +1,7 @@ +#include + +int +ft_drawmap(void) +{ + return (0); +} -- cgit v1.2.3