From d0c146c2274198814e106b17ea1f9461a1b0b81a Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 15 Nov 2019 16:23:11 +0100 Subject: Linux OPEN_MAX --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b7ad478..b7f8641 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,10 @@ RM = rm -f CC = gcc CCFLAGS = -Wall -Wextra -Werror +ifeq ($(shell uname),Linux) + CCFLAGS += -D LINUX +endif + NAME = libft.a SRC = ft_atoi.c ft_bzero.c ft_isalnum.c ft_isalpha.c ft_isascii.c ft_isdigit.c \ ft_isprint.c ft_itoa.c ft_memalloc.c ft_memccpy.c ft_memchr.c \ @@ -29,7 +33,6 @@ SRC = ft_atoi.c ft_bzero.c ft_isalnum.c ft_isalpha.c ft_isascii.c ft_isdigit.c \ ft_strrchr.c ft_split.c ft_strstr.c ft_substr.c ft_strtrim.c \ ft_tolower.c ft_toupper.c ft_strlcpy.c ft_calloc.c ft_strndup.c \ ft_strjoin_free.c ft_strjoin_free_snd.c get_next_line.c ft_strcount.c - OBJ = $(SRC:.c=.o) INCLUDE = libft.h -- cgit