aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-29 01:57:41 +0100
committerCharles <sircharlesaze@gmail.com>2019-10-29 02:02:09 +0100
commit87bce91050b56915dcf5964f6f66d5f47299e7f3 (patch)
tree8c8fef15ffb962cfa860181ffad3fdd52c71b4f0 /Makefile
parentf6ee1462e26d723cf5d53157eadaff2804d18c3a (diff)
downloadft_printf-87bce91050b56915dcf5964f6f66d5f47299e7f3.tar.gz
ft_printf-87bce91050b56915dcf5964f6f66d5f47299e7f3.tar.bz2
ft_printf-87bce91050b56915dcf5964f6f66d5f47299e7f3.zip
Reworking, binary flags, extract advance
- Binary flags attribute instead of multiple bool - Extract doesnst strdup fmt each time, just advance the current pointer - In parsing push front then reverse - Moved some functions to libf
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bc3e13c..43cbdfd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,19 @@
+# **************************************************************************** #
+# #
+# ::: :::::::: #
+# Makefile :+: :+: :+: #
+# +:+ +:+ +:+ #
+# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
+# +#+#+#+#+#+ +#+ #
+# Created: 2019/10/28 17:41:14 by cacharle #+# #+# #
+# Updated: 2019/10/29 02:01:51 by cacharle ### ########.fr #
+# #
+# **************************************************************************** #
+
LIBFT_ROOT = ./libft
CC = gcc
-CCFLAGS = -Wall -Wextra -Werror
+CCFLAGS = -Wall -Wextra -g #-Werror
LDFLAGS = -L. -lftprintf
INCFLAGS = -I$(LIBFT_ROOT)
@@ -14,6 +26,7 @@ SRC = ft_printf.c utils.c printer.c parse.c list.c extract.c
OBJ = $(SRC:.c=.o)
INCLUDE = header.h
+
all: libft_all $(NAME)
$(NAME): $(OBJ)
@@ -34,7 +47,7 @@ fclean: libft_fclean clean
re: fclean all
test: all
- $(CC) $(CCFLAGS) $(LDFLAGS) $(INCFLAGS) -o test main.c
+ $(CC) $(CCFLAGS) $(LDFLAGS) -L./libft -lft $(INCFLAGS) -o test main.c
libft_all: