NAME = libft.a CC = cc CFLAGS = -Wall -Wextra -Werror SRCS = $(wildcard ft_*.c) OBJS = $(SRCS:.c=.o) all: $(NAME) $(NAME): $(OBJS) ar rcs $(NAME) $(OBJS) %.o: %.c libft.h $(CC) $(CFLAGS) -c $< -o $@ clean: rm -f $(OBJS) fclean: clean rm -f $(NAME) re: fclean all .PHONY: all clean fclean re
To embed this project on your website, copy the following code and paste it into your website's HTML: