From 5650ececb1cdb15e16c3d00a96463657042a2f88 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Sat, 9 Dec 2023 18:03:13 +0100 Subject: [PATCH] Move all "public" header files to ./inc directory This makes compiling easier, as only one directory has to be given through the -I compiler option. --- Makefile | 4 +++- {ft_check => inc}/ft_check.h | 0 {ft_conv => inc}/ft_conv.h | 0 {ft_gen => inc}/ft_gen.h | 0 {ft_io => inc}/ft_io.h | 0 {ft_lst => inc}/ft_lst.h | 0 {ft_math => inc}/ft_math.h | 0 {ft_mem => inc}/ft_mem.h | 0 {ft_str => inc}/ft_str.h | 0 libft.h => inc/libft.h | 0 10 files changed, 3 insertions(+), 1 deletion(-) rename {ft_check => inc}/ft_check.h (100%) rename {ft_conv => inc}/ft_conv.h (100%) rename {ft_gen => inc}/ft_gen.h (100%) rename {ft_io => inc}/ft_io.h (100%) rename {ft_lst => inc}/ft_lst.h (100%) rename {ft_math => inc}/ft_math.h (100%) rename {ft_mem => inc}/ft_mem.h (100%) rename {ft_str => inc}/ft_str.h (100%) rename libft.h => inc/libft.h (100%) diff --git a/Makefile b/Makefile index e92ca75..13997ee 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,10 @@ AR := ar RM := rm -f +INCDIR = ./inc +INCLUDE := $(addprefix -I, $(INCDIR)) + SRCDIR := ft_gen ft_math ft_str ft_mem ft_io ft_check ft_conv ft_lst -INCLUDE := $(addprefix -I, $(SRCDIR) .) SRCgen := ft_swap.c \ diff --git a/ft_check/ft_check.h b/inc/ft_check.h similarity index 100% rename from ft_check/ft_check.h rename to inc/ft_check.h diff --git a/ft_conv/ft_conv.h b/inc/ft_conv.h similarity index 100% rename from ft_conv/ft_conv.h rename to inc/ft_conv.h diff --git a/ft_gen/ft_gen.h b/inc/ft_gen.h similarity index 100% rename from ft_gen/ft_gen.h rename to inc/ft_gen.h diff --git a/ft_io/ft_io.h b/inc/ft_io.h similarity index 100% rename from ft_io/ft_io.h rename to inc/ft_io.h diff --git a/ft_lst/ft_lst.h b/inc/ft_lst.h similarity index 100% rename from ft_lst/ft_lst.h rename to inc/ft_lst.h diff --git a/ft_math/ft_math.h b/inc/ft_math.h similarity index 100% rename from ft_math/ft_math.h rename to inc/ft_math.h diff --git a/ft_mem/ft_mem.h b/inc/ft_mem.h similarity index 100% rename from ft_mem/ft_mem.h rename to inc/ft_mem.h diff --git a/ft_str/ft_str.h b/inc/ft_str.h similarity index 100% rename from ft_str/ft_str.h rename to inc/ft_str.h diff --git a/libft.h b/inc/libft.h similarity index 100% rename from libft.h rename to inc/libft.h -- 2.30.2