2024-02-14 08:58:04 +00:00
|
|
|
NAME = woody_woodpacker
|
|
|
|
|
|
|
|
SRCS_PATH = srcs/
|
|
|
|
|
2024-02-14 10:37:05 +00:00
|
|
|
SRCS = $(SRCS_PATH)main.c \
|
|
|
|
$(SRCS_PATH)utils.c \
|
2024-02-21 12:54:33 +00:00
|
|
|
$(SRCS_PATH)woody.c \
|
|
|
|
$(SRCS_PATH)encrypt.c
|
2024-02-14 10:37:05 +00:00
|
|
|
|
2024-02-14 08:58:04 +00:00
|
|
|
|
|
|
|
OBJS = ${SRCS:.c=.o}
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
RM = rm -f
|
|
|
|
|
|
|
|
LIBFT_FLAGS = ft_printf/libftprintf.a
|
|
|
|
|
|
|
|
CFLAGS = -Wall -Wextra -Werror
|
|
|
|
|
|
|
|
all: ${NAME}
|
|
|
|
|
|
|
|
.c.o:
|
2024-02-14 10:37:05 +00:00
|
|
|
${CC} ${INCLUDES} ${DEFINES} ${CFLAGS} -c $< -o $@
|
2024-02-14 08:58:04 +00:00
|
|
|
|
|
|
|
$(NAME): ${OBJS}
|
|
|
|
make -C ft_printf
|
|
|
|
${CC} ${OBJS} ${LIBFT_FLAGS} -o ${NAME}
|
|
|
|
|
|
|
|
clean:
|
|
|
|
make -C ft_printf clean
|
|
|
|
${RM} ${OBJS}
|
|
|
|
|
|
|
|
fclean:
|
|
|
|
make -C ft_printf fclean
|
|
|
|
${RM} ${NAME}
|
|
|
|
|
|
|
|
re: fclean
|
|
|
|
make all
|
|
|
|
|
2024-02-19 10:35:40 +00:00
|
|
|
.PHONY : all clean fclean re
|