From c128213daa677d548bfc2905496257fe4a4faf79 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 11 Mar 2020 21:07:32 +0100 Subject: ft_mem* and ft_strlen optimization --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5a7d8a9..83c1fc6 100644 --- a/Makefile +++ b/Makefile @@ -24,8 +24,10 @@ TEST_DIR = test INCLUDE_DIR = include +OPTIMIZATION ?= -O0 + CC = gcc -CCFLAGS = -I$(INCLUDE_DIR) -Wall -Wextra -Werror +CCFLAGS = -I$(INCLUDE_DIR) $(OPTIMIZATION) -Wall -Wextra -Werror IGNORE_FILE = .libftignore IGNORE_DEFAULT = ft_printf @@ -77,3 +79,6 @@ fclean: clean @$(RM) $(NAME) re: fclean all + +so: all + gcc -o libft.so -shared -fPIC $(OBJ) -- cgit