From aedf0ac9594678da00218f924dd8468a481c7cc3 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 14 Jan 2020 17:06:30 +0100 Subject: Initial commit --- .gitignore | 5 +++++ Makefile | 34 ++++++++++++++++++++++++++++++++++ README.md | 3 +++ checker_src/main.c | 4 ++++ push_swap_src/main.c | 4 ++++ subject.en.pdf | Bin 0 -> 1351267 bytes 6 files changed, 50 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README.md create mode 100644 checker_src/main.c create mode 100644 push_swap_src/main.c create mode 100644 subject.en.pdf 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 Binary files /dev/null and b/subject.en.pdf differ -- cgit