Glina is an OpenGL build system for Linux. It is used as a starting point while following the learnopengl.com tutorials. It is based off of "Writing a build system under Linux" article, but with few adjustments to handle issues with GLAD:
- Added
AC_PROG_CCinconfigure.ac-> makes C compiler available to compile glad.c - Enabled
subdir-objectsinMakefile.am-> so it can support source files that are in subdirectories - Corrected the
myprogram_SOURCESpaths -> specifies glad.c and main.cpp paths - Added
myprogram_CPPFLAGS-> added -Iinclude flag
- Clone the repo
git clone https://github.com/braticpetar/glina.git
cd glina- Build as described in the initial article
autoreconf -i
./configure
make- This will generate a myprogram executable which you can run with
./myprogram