summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile25
-rw-r--r--main.c7
-rw-r--r--push_swap.h6
3 files changed, 38 insertions, 0 deletions
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 <stdio.h>
+
+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