This repository has been archived on 2025-11-15. You can view files and clone it, but cannot push or open issues or pull requests.
push-swap-gero/Makefile

32 lines
530 B
Makefile

NAME = push_swap
CC = cc
CFLAGS = -Wall -Wextra -Werror
INCLUDES = -I include
SRC_DIR = src
SRCS = $(SRC_DIR)/push_swap.c \
$(SRC_DIR)/parse.c \
$(SRC_DIR)/utils.c \
$(SRC_DIR)/normalize.c \
$(SRC_DIR)/ops.c \
$(SRC_DIR)/sort_small.c \
$(SRC_DIR)/radix.c
OBJS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(NAME)
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re