From: = <=> Date: Mon, 27 Oct 2025 10:24:59 +0000 (+0100) Subject: Initial setup X-Git-Url: https://git.uwuaxy.net/?a=commitdiff_plain;h=e75a336d9c97cc8743a0b55aec7b157295b58908;p=axy%2Fft%2Flibft.git Initial setup --- e75a336d9c97cc8743a0b55aec7b157295b58908 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e0292b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.o +*.a diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..844d5c5 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +NAME=libft.a + +SRCS= + +OBJS=${SRCS:.c=.o} + +CFLAGS=-Wall -Wextra -Werror -O3 + +CC=cc + +all : ${NAME} + +%.o : %.c + ${CC} ${CFLAGS} -c -o $@ -- $< + +${NAME} : ${OBJS} + ar -rcs $@ $^ + +clean : + rm -f ${OBJS} + +fclean : clean + rm -f ${NAME} + +re : fclean all + +.PHONY : all clean fclean re