aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7886427..14b556d 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/10/08 15:45:53 by cacharle #+# #+# #
-# Updated: 2020/04/01 22:00:44 by charles ### ########.fr #
+# Updated: 2020/05/09 12:28:11 by charles ### ########.fr #
# #
# **************************************************************************** #
@@ -27,14 +27,17 @@ DOC_DIR = doc
INCLUDE_DIR = include
-
CC = gcc
-OFLAG ?= -O1
+OFLAG ?= -O0
CCFLAGS = $(OFLAG) -I$(INCLUDE_DIR) -Wall -Wextra -Werror
ifeq ($(TRAVIS_COMPILER),gcc)
CCFLAGS += -Wno-unused-result
endif
+ifeq ($(TRAVIS_COMPILER),gcc)
+CCFLAGS += -Wno-unused-result
+endif
+
IGNORE_FILE = .libftignore
IGNORE_DEFAULT = ft_printf
@@ -95,3 +98,7 @@ doc:
doc_clean:
$(RM) -r $(DOC_DIR)
+# compatible with libft-unit-test
+so: all
+ gcc -o libft.so -shared -fPIC $(OBJ)
+