woody-woodpacker/Makefile

47 lines
716 B
Makefile
Raw Normal View History

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 \
2024-08-20 14:36:54 +00:00
$(SRCS_PATH)utils.c \
$(SRCS_PATH)payload.c \
$(SRCS_PATH)woody32.c \
$(SRCS_PATH)woody64.c \
$(SRCS_PATH)encrypt.c \
$(SRCS_PATH)rsa.c \
$(SRCS_PATH)primes.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
2024-06-12 11:39:29 +00:00
CFLAGS = -Wall -Wextra -Werror
2024-02-14 08:58:04 +00:00
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
2024-06-15 10:43:59 +00:00
$(NAME): ${OBJS} includes/woody.h
2024-02-14 08:58:04 +00:00
make -C ft_printf
${CC} ${OBJS} ${LIBFT_FLAGS} -o ${NAME}
clean:
make -C ft_printf clean
${RM} ${OBJS}
2024-06-15 10:43:59 +00:00
fclean: clean
2024-02-14 08:58:04 +00:00
make -C ft_printf fclean
2024-06-12 11:39:29 +00:00
make clean
2024-02-14 08:58:04 +00:00
${RM} ${NAME}
re: fclean
make all
2024-06-15 10:43:59 +00:00
.PHONY : all clean fclean re