aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore5
-rw-r--r--Makefile34
-rw-r--r--README.md3
-rw-r--r--checker_src/main.c4
-rw-r--r--push_swap_src/main.c4
-rw-r--r--subject.en.pdfbin0 -> 1351267 bytes
6 files changed, 50 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..869816d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+a.out
+checker
+push_swap
+*.o
+*.ghc
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f1bb6eb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+RM = rm -f
+
+CC = gcc
+CCFLAGS = -Wall -Wextra #-Werror
+
+CHECKER_NAME = checker
+CHECKER_SRC = checker_src/main.c
+CHECKER_OBJ = $(CHECKER_SRC:.c=.o)
+
+PUSH_SWAP_NAME = push_swap
+PUSH_SWAP_SRC = push_swap_src/main.c
+PUSH_SWAP_OBJ = $(PUSH_SWAP_SRC:.c=.o)
+
+
+all: $(CHECKER_NAME) $(PUSH_SWAP_NAME)
+
+$(CHECKER_NAME): $(CHECKER_OBJ) $(CHECKER_HEADER)
+ $(CC) -o $@ $(CHECKER_OBJ)
+
+$(PUSH_SWAP_NAME): $(PUSH_SWAP_OBJ) $(PUSH_SWAP_HEADER)
+ $(CC) -o $@ $(PUSH_SWAP_OBJ)
+
+%.o: %.c
+ $(CC) $(CCFLAGS) -c -o $@ $<
+
+clean:
+ $(RM) $(CHECKER_OBJ)
+ $(RM) $(PUSH_SWAP_OBJ)
+
+fclean: clean
+ $(RM) $(CHECKER_NAME)
+ $(RM) $(PUSH_SWAP_NAME)
+
+re: fclean all
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..dd79553
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# push_swap
+
+push_swap project of school 42
diff --git a/checker_src/main.c b/checker_src/main.c
new file mode 100644
index 0000000..5019e79
--- /dev/null
+++ b/checker_src/main.c
@@ -0,0 +1,4 @@
+int main(int argc, char **argv)
+{
+ return 0;
+}
diff --git a/push_swap_src/main.c b/push_swap_src/main.c
new file mode 100644
index 0000000..5019e79
--- /dev/null
+++ b/push_swap_src/main.c
@@ -0,0 +1,4 @@
+int main(int argc, char **argv)
+{
+ return 0;
+}
diff --git a/subject.en.pdf b/subject.en.pdf
new file mode 100644
index 0000000..d90f5b9
--- /dev/null
+++ b/subject.en.pdf
Binary files differ