View Single Post
Re: How to compile binaries (dll, so) under windows
Old
  (#14)
Mr_Red
Member
 
Status: Offline
Posts: 2
Join Date: May 2011
Default Re: How to compile binaries (dll, so) under windows - 14-05-2011

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
  
Reply With Quote