makedll.exe - make dll's in blitzmax

BlitzMax Forums/BlitzMax Programming/makedll.exe - make dll's in blitzmax

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Check line 94
file.WriteLine("START /WAIT/B gcc -shared -o "+output+" "+modpath+".bmx/"+modname+".bmx.o "+bmaxpath+"mod/brl.mod/blitz.mod/blitz.a "+modpath+modname+".def")


It's importing the brl.blitz module when it calls gcc to create the dll. Uou can try modifying this, I wasn't sure if it was possible to import multiple files, you probably can.. if it is the case, it would be easy enough to make the blitz parser return a list of imports.