A compact cub3d setup with core sources, project headers, and a vendored
libft.
- Language: C
- Build system: Makefile
- Local library:
includes/libft/ - Graphics dependency: MiniLibX (
minilibx/)
.
├── Makefile
├── includes/
│ ├── cub3d.h
│ ├── libft.h
│ └── libft/
└── src/
├── main.c
└── raycasting.c
| Path | Purpose |
|---|---|
src/ |
Main game source files (main.c, raycasting.c). |
includes/ |
Project headers. |
includes/libft/ |
Vendored libft source + its Makefile. |
Makefile |
Builds libft, prepares MiniLibX, then links cub3d. |
makeBuild flow:
- Build
libftfromincludes/libft. - Clone
minilibxif it does not exist. - Build MiniLibX.
- Compile and link the final
cub3dbinary.
In restricted environments, make may fail while cloning MiniLibX if GitHub access is blocked.