From: Lukas Jiriste Date: Sat, 9 Dec 2023 17:03:13 +0000 (+0100) Subject: Move all "public" header files to ./inc directory X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=5650ececb1cdb15e16c3d00a96463657042a2f88;p=Libft.git 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. --- 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