A simple Makefile that you can include in your Raylib projects to easily build or clean your project. Simple and clear directions:
- Ensure you have compiled raylib and generated the
libraylib.astatic file. Need to do this? I have created a YouTube video guide that will show you how step by step. - Modify the paths in the Makefile to point to your source file(s), and the directory that contains
raylib.handlibraylib.a. maketo build your program.make cleanto clean the executable and any objects if they exist.
Example project structure:
|───(Project Root)
|─── main.c
├───include
└───raylib.h
├───lib
└───libraylib.a
Any questions? Feel free to contact me
All credit to @raysan5 for his awesome C game library. Check out https://www.raylib.com/ !