dos_compilers/Logitech Modula-2 v34/EXAMPLES/MOD-C/MAKE.BAT
2024-07-02 07:25:31 -07:00

32 lines
932 B
Batchfile

echo off
echo.
echo Example of a main program in C that calls procedures in Modula-2.
echo.
echo Before executing this command file, make sure that both Logitech
echo Modula-2 and Microsoft C 5.1 are properly installed. This batch
echo file assumes that the name of Microsoft C large-model library is
echo "LLIBCER.LIB" and that it is accessible through the "SET LIB="
echo environment setting.
echo.
echo (Note: if you have purchased only the Compiler Pack, you must
echo change the "m2l" command in this file to the corresponding "link"
echo command for DOS.)
echo.
pause
rem (compile the C program with /AL when using library routines with
rem large data)
set m2sav=%m2lib%
echo on
set m2lib=%m2lib%;%lib%
cl /c /AL c.c
m2c c.def main
m2l main c /case /p /lib mcrts llibcer
rem link main c,,,..\..\m2lib\lib\mcrts ..\..\m2lib\lib\m2lib llibcer;
main
pause
echo off
set m2lib=%m2sav%
set m2sav=