Move all "public" header files to ./inc directory
authorLukas Jiriste <ljiriste@student.42prague.com>
Sat, 9 Dec 2023 17:03:13 +0000 (18:03 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Sat, 9 Dec 2023 17:03:13 +0000 (18:03 +0100)
This makes compiling easier, as only one directory has to be given
through the -I compiler option.

Makefile
inc/ft_check.h [moved from ft_check/ft_check.h with 100% similarity]
inc/ft_conv.h [moved from ft_conv/ft_conv.h with 100% similarity]
inc/ft_gen.h [moved from ft_gen/ft_gen.h with 100% similarity]
inc/ft_io.h [moved from ft_io/ft_io.h with 100% similarity]
inc/ft_lst.h [moved from ft_lst/ft_lst.h with 100% similarity]
inc/ft_math.h [moved from ft_math/ft_math.h with 100% similarity]
inc/ft_mem.h [moved from ft_mem/ft_mem.h with 100% similarity]
inc/ft_str.h [moved from ft_str/ft_str.h with 100% similarity]
inc/libft.h [moved from libft.h with 100% similarity]

index e92ca752010054afd73006c607b1f872fc22d9ff..13997eeca61ebb6af9379afbe0e741ad3a39ef86 100644 (file)
--- 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                               \
 
similarity index 100%
rename from ft_check/ft_check.h
rename to inc/ft_check.h
similarity index 100%
rename from ft_conv/ft_conv.h
rename to inc/ft_conv.h
similarity index 100%
rename from ft_gen/ft_gen.h
rename to inc/ft_gen.h
similarity index 100%
rename from ft_io/ft_io.h
rename to inc/ft_io.h
similarity index 100%
rename from ft_lst/ft_lst.h
rename to inc/ft_lst.h
similarity index 100%
rename from ft_math/ft_math.h
rename to inc/ft_math.h
similarity index 100%
rename from ft_mem/ft_mem.h
rename to inc/ft_mem.h
similarity index 100%
rename from ft_str/ft_str.h
rename to inc/ft_str.h
similarity index 100%
rename from libft.h
rename to inc/libft.h