Add minilibx as dependency to *.o compilation
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 4 Apr 2024 06:39:08 +0000 (08:39 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 4 Apr 2024 06:39:08 +0000 (08:39 +0200)
This is done to make sure that mlx.h is present so that any file
including it compiles succesfully.

solution/Makefile

index eeffa85f7d7756f01b4d74c85e72cc42138c52d8..f32afbb791e055039ec4ef232ce9c37b2154a172 100644 (file)
@@ -40,7 +40,7 @@ endif
 minilibx-linux/libmlx.a : | minilibx-linux/Makefile
        $(MAKE) -C minilibx-linux
 
-%.o : %.c | Libft/Makefile
+%.o : %.c | Libft/Makefile minilibx-linux/Makefile
        $(CC) $(CFLAGS) -o $@ -c $< $(INCLUDE)
 
 %/Makefile :