flek-config is a script designed to make using Flek and Fltk even easier. One problem with compiling software is knowing what libraries, library paths, include paths and compiler options to in your compile line. flek-config solves this by determining what Flek, Fltk and OpenGl need to compile.
Just typing flek-config at the shell prompt should give you this:
Usage: flek-config [OPTIONS]
Options:
[--prefix[=DIR]] return/set where FLEK is installed
[--exec-prefix[=DIR]]
[--version]
options telling what we are doing :
[--use-core] use core library (default) (libflek_core)
[--use-ui] use user interface library (libflek_ui)
[--use-gl] use OpenGL library (libflek_gl)
options telling what information we request
[--cflags] return flags to compile C using Flek
[--cxxflags] return flags to compile C++ using Flek
[--ldflags] return flags to link against Flek
[--ldstaticflags] return flags to link against static Flek library
even if there are DSOs installed
[--libs] return Flek libraries full path for dependencies
So, if we wanted to compile something to an object file, we could type:
CC 'flek-config --cxxflags' -c something.cxx
And if we wanted to link the object file, we could type :
CC something.o 'flek-config --ldflags' -o something
Or combining the two steps :
CC 'flek-config --cxxflags' something.cxx 'flek-config --ldflags' -o something