42_solong/libftx/extra/Makefile

40 lines
1.2 KiB
Makefile
Raw Normal View History

2023-01-04 14:07:13 -05:00
:# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/09/27 08:39:27 by cchauvet #+# #+# #
2023-01-05 13:04:29 -05:00
# Updated: 2023/01/05 19:00:54 by cchauvet ### ########.fr #
2023-01-04 14:07:13 -05:00
# #
# **************************************************************************** #
CC = clang
2023-01-05 13:04:29 -05:00
SRCS = draw.c main.c map.c shape.c xpm.c
2023-01-04 14:07:13 -05:00
OBJS = $(SRCS:.c=.o)
NAME = extra.a
2023-01-05 13:04:29 -05:00
CFLAGS = -Wall -Werror -Wextra -g
2023-01-04 14:07:13 -05:00
%.o: %.c extra.h
$(CC) $(CFLAGS) -c -o $@ $<
all: $(NAME)
$(NAME): $(OBJS)
ar -rc $(NAME) $(OBJS)
clean:
rm -f $(OBJS) $(BOBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all bonus clean fclean re