To create the .dll you could use the ert_shrlib.tlc System Target File, but you need to have Embedded Coder in order to do that.
You can always try and write your own TLC file which only needs Simulink Coder. You can find more information on how to do that in the following documentation link: