@if not "%1" == ""  goto START
@ECHO    /****************************************************************/
@ECHO    /**                      make_275                              **/
@ECHO    /**                                                            **/
@ECHO    /** make_275  creates the Dislin extension dislin.so for       **/
@ECHO    /**           Ruby 2.7.5                                       **/
@ECHO    /**                                                            **/
@ECHO    /** Command:  make_275 ruby                                    **/
@ECHO    /**                                                            **/
@ECHO    /** The Dislin library dismg_d.a for MinGW is required. The    **/
@ECHO    /** extension was created with gcc version 4.5.2 (tdm, 32-bit).**/
@ECHO    /****************************************************************/
@goto ENDE
:START
@if %1 == ruby goto M0
@ECHO Bad Parameter
@goto ENDE
:M0
set _ruby=c:\opt\Ruby275
set _inc=c:\opt\Ruby275\include\ruby-2.7.0

gcc -I. -I%_inc% -I%_inc%\i386-mingw32 dislin.c -shared -o dislin.so -L%_ruby%\lib -lmsvcrt-ruby270 c:\dislin\dismg_d.a -luser32 -lgdi32 -lopengl32
copy dislin.so dis_275.so
:ENDE
