finish part1 - to correct memchr & memcmp & strnstr
This commit is contained in:
12
Makefile
12
Makefile
@ -6,7 +6,7 @@
|
||||
# By: adjoly <adjoly@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2023/11/01 11:03:22 by adjoly #+# #+# #
|
||||
# Updated: 2023/11/08 12:14:33 by adjoly ### ########.fr #
|
||||
# Updated: 2023/11/08 17:07:14 by adjoly ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -36,11 +36,13 @@ SRCS = ft_atoi.c \
|
||||
ft_strlcat.c \
|
||||
ft_strjoin.c \
|
||||
ft_strncmp.c \
|
||||
ft_strchr.c \
|
||||
ft_itoa.c \
|
||||
ft_calloc.c \
|
||||
ft_memchr.c \
|
||||
ft_memcmp.c \
|
||||
ft_strchr.c \
|
||||
ft_strrchr.c \
|
||||
ft_strnstr.c \
|
||||
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
|
||||
@ -51,9 +53,9 @@ HEADER = libft.h
|
||||
$(NAME): $(OBJS)
|
||||
ar -rcs $(NAME) $(OBJS)
|
||||
|
||||
so:
|
||||
$(CC) -nostartfiles -fPIC $(CFLAGS) $(SRCS)
|
||||
gcc -nostartfiles -shared -o libft.so $(OBJS)
|
||||
# so:
|
||||
# $(CC) -nostartfiles -fPIC $(CFLAGS) $(SRCS)
|
||||
# gcc -nostartfiles -shared -o libft.so $(OBJS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(FLAGS) -I $(HEADER) $< -c -o $@
|
||||
|
Reference in New Issue
Block a user