Set basic environment variables for compiling with library files and include files.
# #In order for the variables to be set in zsh, need to evoke this script with source
. Might also work in bash
or sh
. Either way, the first line (<!--) will likely produce a message (seemingly innocuous):
setup-build.html:1: no such file or directory: !--
But it continues anyway.
These have the expected basic paths for the system. Also assumes esoteric libraries and exoteric commands are in "~/elec/".
#
export CPATH\
=$HOME/elec/include\
\
:$HOME/elec/tron\
/ImageMagick/include\
\
:/usr/local/include\
:/usr/include
#
#
export LIBRARY_PATH\
=$HOME/elec/lib\
\
:$HOME/elec/tron\
/ImageMagick/lib\
\
:/usr/local/lib\
:/usr/lib
#
These are the paths for the ".pc" files for pkg-config. Leaving it open-ended, because that might mean to prepend to the default within pkg-config. (Should look that up...)
Also presumes pkg-config was configured with default paths before making it, by using --with-pc-path, as in:
# pkg-config-src/> ./configure
\
# > --prefix=$HOME/elec \
# > --with-pc-path\
# > =$HOME/elec/lib/pkgconfig\
# > :/usr/local/lib/pkgconfig\
# > :/usr/lib/pkgconfig
#
export PKG_CONFIG_PATH\
=$HOME/elec/tron\
/ImageMagick/lib/pkgconfig\
:
#