aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-15 16:23:11 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-16 08:13:42 +0100
commitd0c146c2274198814e106b17ea1f9461a1b0b81a (patch)
tree7e348bed6a2f625ce3601a8cb7a0ef977e81ef16 /Makefile
parente0f11e486518930e82e67f2dc305595671c074b5 (diff)
downloadlibft-d0c146c2274198814e106b17ea1f9461a1b0b81a.tar.gz
libft-d0c146c2274198814e106b17ea1f9461a1b0b81a.tar.bz2
libft-d0c146c2274198814e106b17ea1f9461a1b0b81a.zip
Linux OPEN_MAX
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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