Thanks for pointing this out KWO. I changed this area of the makefile to look for a "type" variable which I will pass in. If I'm building the DLL, I leave it blank. If I want to build a .SO for Linux, I say make type=so. I can run the DLL on my local listen server, and the .SO loads and runs fine on my dedicated Linux server.
Code:
ifeq "$(type)" "so"
OS=LINUX
MCPU=-mcpu
MCPU=-mtune
PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
CLEAN=clean_linux
else
OS=WIN32
MCPU=-mtune
PATH_WIN=/mingw/bin
CLEAN=clean_win32
endif