From 41ecca9dc7be4d9200e5a914f9da124099336a16 Mon Sep 17 00:00:00 2001 From: Gregory Date: Sat, 20 Oct 2018 22:21:19 +0300 Subject: [PATCH] move md5 in seperate directory --- Makefile | 6 ++++-- src/main.c | 4 ++-- src/{ => md5}/ft_md5_decode.c | 0 src/{ => md5}/ft_md5_digest_string.c | 0 src/{ => md5}/ft_md5_encode_len.c | 0 src/{ => md5}/ft_md5_encode_register.c | 0 src/{ => md5}/ft_md5_final.c | 0 src/{ => md5}/ft_md5_init.c | 0 src/{ => md5}/ft_md5_padding.c | 0 src/{ => md5}/ft_md5_transform.c | 0 src/{ => md5}/ft_md5_update.c | 0 11 files changed, 6 insertions(+), 4 deletions(-) rename src/{ => md5}/ft_md5_decode.c (100%) rename src/{ => md5}/ft_md5_digest_string.c (100%) rename src/{ => md5}/ft_md5_encode_len.c (100%) rename src/{ => md5}/ft_md5_encode_register.c (100%) rename src/{ => md5}/ft_md5_final.c (100%) rename src/{ => md5}/ft_md5_init.c (100%) rename src/{ => md5}/ft_md5_padding.c (100%) rename src/{ => md5}/ft_md5_transform.c (100%) rename src/{ => md5}/ft_md5_update.c (100%) diff --git a/Makefile b/Makefile index 519eb7ac..7bfc7ffa 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ NAME := ft_ssl ROOT := $(shell pwd) SRC_DIR := $(ROOT)/src/ +MD5_DIR := $(SRC_DIR)/md5/ OBJ_DIR := $(ROOT)/obj/ INC_DIR := $(ROOT)/inc/ LIB_DIR := $(ROOT)/lib/ @@ -148,8 +149,9 @@ multi: # special stuff -vpath %.c $(SRC_DIR) \ - $(TST_DIR) \ +vpath %.c $(SRC_DIR) \ + $(MD5_DIR) \ + $(TST_DIR) \ $(MUINUT_DIR) diff --git a/src/main.c b/src/main.c index f43f2e10..9a45afdf 100644 --- a/src/main.c +++ b/src/main.c @@ -2,6 +2,6 @@ int main() { - printf("hello from sha256"); - return(0); + printf("hello from sha256\n"); + return (0); } \ No newline at end of file diff --git a/src/ft_md5_decode.c b/src/md5/ft_md5_decode.c similarity index 100% rename from src/ft_md5_decode.c rename to src/md5/ft_md5_decode.c diff --git a/src/ft_md5_digest_string.c b/src/md5/ft_md5_digest_string.c similarity index 100% rename from src/ft_md5_digest_string.c rename to src/md5/ft_md5_digest_string.c diff --git a/src/ft_md5_encode_len.c b/src/md5/ft_md5_encode_len.c similarity index 100% rename from src/ft_md5_encode_len.c rename to src/md5/ft_md5_encode_len.c diff --git a/src/ft_md5_encode_register.c b/src/md5/ft_md5_encode_register.c similarity index 100% rename from src/ft_md5_encode_register.c rename to src/md5/ft_md5_encode_register.c diff --git a/src/ft_md5_final.c b/src/md5/ft_md5_final.c similarity index 100% rename from src/ft_md5_final.c rename to src/md5/ft_md5_final.c diff --git a/src/ft_md5_init.c b/src/md5/ft_md5_init.c similarity index 100% rename from src/ft_md5_init.c rename to src/md5/ft_md5_init.c diff --git a/src/ft_md5_padding.c b/src/md5/ft_md5_padding.c similarity index 100% rename from src/ft_md5_padding.c rename to src/md5/ft_md5_padding.c diff --git a/src/ft_md5_transform.c b/src/md5/ft_md5_transform.c similarity index 100% rename from src/ft_md5_transform.c rename to src/md5/ft_md5_transform.c diff --git a/src/ft_md5_update.c b/src/md5/ft_md5_update.c similarity index 100% rename from src/ft_md5_update.c rename to src/md5/ft_md5_update.c