The generate_wine.sh script generates a wine wrapper for each exe in the SGDK bin directory. It also generates makefile_wine.gen.
It should be run once from within the SGDK bin directory:
PATH_TO_SGDK=/path/to/sgdk
cp generate_wine.sh $PATH_TO_SGDK/bin
cd $PATH_TO_SGDK/bin
sh generate_wine.sh
The following command should then be able to build any SGDK project:
make GDK=/path/to/sgdk -f /path/to/sgdk/makefile_wine.gen
I have tested it on my Linux distribution (Manjaro). According to users' reports, it works on Debian-based distros as well. It would be much appreciated if you shared your own experience here: #4
More information about SGDK can be found in the official repository: https://github.com/Stephane-D/SGDK