From 1f1d95faadca635adcb8e46bb0aecc0574654a24 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Fri, 12 Apr 2024 16:23:43 +0200 Subject: [PATCH] Setup project --- Makefile | 25 +++++++++++++++++++++++++ main.c | 7 +++++++ push_swap.h | 6 ++++++ 3 files changed, 38 insertions(+) create mode 100644 Makefile create mode 100644 main.c create mode 100644 push_swap.h diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a3e6282 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +NAME = push_swap + +CC = cc +CFLAGS = -Wall -Wextra -Werror + +SRC_FILES = main.c +OBJ_FILES = $(SRC_FILES:%.c=%.o) + +all: $(NAME) + +$(NAME): $(OBJ_FILES) + $(CC) -I. $(CFLAGS) $^ -o $@ + +%.o: %.c + $(CC) -I. $(CFLAGS) -c $< -o $@ + +clean: + rm -f $(OBJ_FILES) + +fclean: clean + rm -f $(NAME) + +re: fclean all + +.PHONY: all clean fclean re diff --git a/main.c b/main.c new file mode 100644 index 0000000..d3d95a6 --- /dev/null +++ b/main.c @@ -0,0 +1,7 @@ +#include "push_swap.h" + +#include + +int main(int argc, char *argv[]) +{ +} diff --git a/push_swap.h b/push_swap.h new file mode 100644 index 0000000..aa1fb38 --- /dev/null +++ b/push_swap.h @@ -0,0 +1,6 @@ +#ifndef PUSH_SWAP_H +#define PUSH_SWAP_H + + + +#endif // PUSH_SWAP_H -- 2.47.2