ft_printf

This commit is contained in:
Raphaël 2023-11-16 16:09:03 +01:00 committed by GitHub
commit 81d78420a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 309 additions and 0 deletions

46
Makefile Normal file
View file

@ -0,0 +1,46 @@
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rparodi <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2023/11/16 15:14:07 by rparodi ### ########.fr #
# #
# **************************************************************************** #
NAME=libftprintf.a
CC=cc
CFLAGS=-Wall -Wextra -Werror
RM=rm -f
LIBFT = ./libft/ft_strdup.c ./libft/ft_strlcpy.c ./libft/ft_strlen.c
SRC = ./src/ft_printf.c ./src/ft_put.c
OBJ = $(SRC:.c=.o)
OBJLibft = $(LIBFT:.c=.o)
$(NAME): $(OBJ) $(OBJLibft)
ar rc $(NAME) $(OBJ) $(OBJLibft)
ranlib $(NAME)
%.o: %.c
$(CC) -I. -o $@ -c $? $(CFLAGS)
all: $(NAME)
bonus: $(OBJ) $(OBJLibft)
ar rc $(NAME) $(OBJ) $(OBJLibft)
ranlib $(NAME)
dev: all bonus clean
clean:
$(RM) $(OBJ) $(OBJLibft)
fclean: clean
$(RM) $(NAME)
re: fclean all bonus
.PHONY: clean clean