]> git.dkaiser.de - 42/push_swap.git/commitdiff
Setup project
authorDominik Kaiser <dkaiser@2-F-4.42heilbronn.de>
Fri, 12 Apr 2024 14:23:43 +0000 (16:23 +0200)
committerDominik Kaiser <dkaiser@2-F-4.42heilbronn.de>
Fri, 12 Apr 2024 14:23:43 +0000 (16:23 +0200)
Makefile [new file with mode: 0644]
main.c [new file with mode: 0644]
push_swap.h [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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 (file)
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 (file)
index 0000000..aa1fb38
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef PUSH_SWAP_H
+#define PUSH_SWAP_H
+
+
+
+#endif // PUSH_SWAP_H