~denisebitca/c-piscine

8ea03f7ffa7a81e7a85b0076e75489130643923f — Denise Bitca 1 year, 9 months ago 9e078db
Changes MISC
2 files changed, 28 insertions(+), 0 deletions(-)

M .gitignore
A test09/ex01/Makefile
M .gitignore => .gitignore +4 -0
@@ 10,3 10,7 @@ a.out
07/
08/
09/
11/
12/
rush-00/
rush-01/

A test09/ex01/Makefile => test09/ex01/Makefile +24 -0
@@ 0,0 1,24 @@
CC		= gcc
CFLAGS	= -Wall -Wextra -Werror
SRCS	= srcs/ft_putchar.c srcs/ft_swap.c srcs/ft_putstr.c srcs/ft_strlen.c srcs/ft_strcmp.c
OBJS	= ${SRCS:.c=.o}
NAME	= libft.a

all: ${NAME}

.c.o:
	$(CC) $(CFLAGS) -c -Iincludes $< -o $@

${NAME}: ${OBJS}
	ar rc ${NAME} ${OBJS}
	ranlib ${NAME}

clean:
	rm -f ${OBJS}

fclean:	clean
	rm -f ${NAME}

re:	fclean all

.PHONY:	all clean fclean re