summaryrefslogtreecommitdiffstats
path: root/libft/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-04 15:52:47 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-04 15:52:47 +0200
commit5cb3373a2e5a5109a5d3b72ef45978b98f885706 (patch)
tree11a0a6f467da3ddf227d2eaf6824c4509242025e /libft/Makefile
parentok nice (diff)
parent$? fix (diff)
download42-minishell-5cb3373a2e5a5109a5d3b72ef45978b98f885706.tar.gz
42-minishell-5cb3373a2e5a5109a5d3b72ef45978b98f885706.tar.bz2
42-minishell-5cb3373a2e5a5109a5d3b72ef45978b98f885706.tar.xz
42-minishell-5cb3373a2e5a5109a5d3b72ef45978b98f885706.tar.zst
42-minishell-5cb3373a2e5a5109a5d3b72ef45978b98f885706.zip
Merge branch 'master' into fix-pwd
Diffstat (limited to 'libft/Makefile')
-rw-r--r--libft/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/libft/Makefile b/libft/Makefile
index 6803f66..7b1c22c 100644
--- a/libft/Makefile
+++ b/libft/Makefile
@@ -3,10 +3,11 @@ default: all
#--------------------------------- Shell --------------------------------------#
#==============================================================================#
SHELL := /bin/sh
+OS = $(shell uname)
#==============================================================================#
#------------------------------ Directories -----------------------------------#
#==============================================================================#
-INCS_DIR = inc/
+INCS_DIR = include/
SRCS_DIR = src/
OBJS_DIR = obj/
#==============================================================================#
@@ -23,6 +24,8 @@ SRCS_NAME += ft_memchr.c
SRCS_NAME += ft_memlchr.c
SRCS_NAME += ft_memcmp.c
SRCS_NAME += ft_strlen.c
+SRCS_NAME += ft_strclen.c
+SRCS_NAME += ft_strnlen.c
SRCS_NAME += ft_isalpha.c
SRCS_NAME += ft_isdigit.c
SRCS_NAME += ft_isalnum.c
@@ -70,7 +73,6 @@ SRCS_NAME += ft_putstr.c
SRCS_NAME += ft_putendl.c
SRCS_NAME += ft_putnbr.c
SRCS_NAME += ft_putnbr_base.c
-SRCS_NAME += ft_strnlen.c
SRCS_NAME += ft_strcat.c
SRCS_NAME += ft_strcmp.c
SRCS_NAME += ft_isspace.c
@@ -120,9 +122,17 @@ OS = $(shell uname)
#==============================================================================#
#-------------------------------- Compiler ------------------------------------#
#==============================================================================#
-CC = clang
+ifeq (${OS}, FreeBSD)
+CC = /usr/bin/cc
+endif
+ifeq (${OS}, Linux)
+CC = /usr/bin/clang-9
+endif
+ifeq (${OS}, Darwin)
+CC = clang
+endif
#------------------------------------------------------------------------------#
-CFLAGS = -std=c89
+CFLAGS = -std=c89
CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Werror