...
This script is very similar to what magics-config offered previously, but pkg-config is more general while magics-config was very Magics specific options.
gcc -o test testwind wind.c c $(pkg-config --libs --cflags magics)
gfortran -o wind wind.f -lMagPlusSingle $(pkg-config --libs magics)
gfortran -o wind wind.f
-fdefault-real-8
-lMagPlusDouble $(pkg-config --libs magics)
To find the information about Magics compilation the environment variable PKG_CONFIG_PATH needs to contain the directory $MAGPLUS_HOME/lib/pkgconfig. For more information visit pkg-config on Wikipedia.