diff options
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | .gitmodules | 4 | ||||
| -rw-r--r-- | Makefile | 59 | ||||
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | include/ft_ssl.h | 18 | ||||
| m--------- | libft | 0 | ||||
| -rw-r--r-- | src/main.c | 19 | ||||
| -rw-r--r-- | subject.pdf | bin | 0 -> 4146689 bytes |
8 files changed, 107 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd339c2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.o +*.ghc +ft_sll +a.out diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..073d7a0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "libft"] + path = libft + url = https://github.com/HappyTramp/libft + branch = ft_ssl diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b4d28f8 --- /dev/null +++ b/Makefile @@ -0,0 +1,59 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# Makefile :+: :+: :+: # +# +:+ +:+ +:+ # +# By: cacharle <marvin@42.fr> +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2020/02/03 20:14:50 by cacharle #+# #+# # +# Updated: 2020/02/03 20:31:02 by cacharle ### ########.fr # +# # +# **************************************************************************** # + +RM = rm -f +MAKE = make + +LIBFT_DIR = libft +INCLUDE_DIR = include +SRC_DIR = src +OBJ_DIR = obj + +CC = gcc +CCFLAGS = -Wall -Wextra #-Werror +LDFLAGS = -L$(LIBFT_DIR) -lft + +INCLUDE = $(shell find $(INCLUDE_DIR) -type f -name "*.h") +SRC = $(shell find $(SRC_DIR) -type f -name "*.c") +OBJ = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) + +NAME = ft_ssl + +all: prebuild libft_all $(NAME) + +prebuild: + @if [ ! -d $(OBJ_DIR) ]; then mkdir $(OBJ_DIR); fi + +$(NAME): $(OBJ) + @echo "Linking: $@" + @$(CC) -o $@ $^ $(LDFLAGS) + +$(OBJ_DIR)%.o: $(SRC_DIR)/%.c $(INCLUDE) + @echo "Compiling: $@" + @$(CC) $(CCFLAGS) -c -o $@ $< + +clean: libft_fclean + @echo "Removing objects" + @$(RM) $(OBJ) + +fclean: clean + @echo "Removing $(NAME)" + @$(RM) $(NAME) + +re: fclean all + +libft_all: + $(MAKE) $(MAKE_ARGS) -C $(LIBFT_DIR) all + +libft_fclean: + $(MAKE) $(MAKE_ARGS) -C $(LIBFT_DIR) fclean + diff --git a/README.md b/README.md new file mode 100644 index 0000000..193b575 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ft_ssl_md5 + +ft\_ssl\_md5 project of school 42 diff --git a/include/ft_ssl.h b/include/ft_ssl.h new file mode 100644 index 0000000..26fbc7e --- /dev/null +++ b/include/ft_ssl.h @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_ssl.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/03 20:27:19 by cacharle #+# #+# */ +/* Updated: 2020/02/03 20:29:15 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef FT_SSL_H +# define FT_SSL_H + +# include "libft.h" + +#endif diff --git a/libft b/libft new file mode 160000 +Subproject ac0559db82bfef3b7ca3d976b1d7700ed2c1c1f diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..b670ba6 --- /dev/null +++ b/src/main.c @@ -0,0 +1,19 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* main.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/03 20:29:33 by cacharle #+# #+# */ +/* Updated: 2020/02/03 20:30:03 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "ft_ssl.h" + +int main(int argc, char **argv) +{ + ft_putendl("hello\n"); + return (0); +} diff --git a/subject.pdf b/subject.pdf Binary files differnew file mode 100644 index 0000000..9154c33 --- /dev/null +++ b/subject.pdf |
