I'm building some shared libraries in Linux, the first versions of which I made in Windows. Their project settings are fairly minimal, I'm using the CodeLite Makefile generator and the Output File was set as lib$(ProjectName).dll
.
In Linux the output file should be lib$(ProjectName).so
. Would it be possible to make some sort of conditional environment variable $(SharedLibExt)
that is set to .dll
on Windows and .so
on Linux?
I'm not quite sure how libraries like OpenBLAS do this, but I guess it's a function in CMake. In CodeLite, its own makefile generator is ever so slightly easier to work with though, so if it can be done without CMake that would be great.