cls
@ECHO off
cd src
@ECHO.
@ECHO Welcome to MDK 3.01
@ECHO.
@ECHO   Compiling the sources, 
@ECHO   this'll take a few minutes
@ECHO.
@ECHO   + Compiling the integrated Allegro grabber (by Shawn Hargreaves)
gcc -c -O3 datedit.c -o datedit.o
gcc -c -O3 grabber.c -o grabber.o
@ECHO. 
@ECHO   + Compiling the integrated Help System (by Shawn Hargreaves/Doug Eleved)
gcc -c -O3 objhelp.c -o objhelp.o
@ECHO. 
@ECHO   + Compiling the base DIALOG classes of MDK
gcc -c -O3 dialog.cc -o dialog.o
@ECHO. 
@ECHO   + Compiling the base bitmap DIALOG classes of MDK
gcc -c -O3 dbitmap.cc -o dbitmap.o
@ECHO. 
@ECHO   + Compiling the color handling & bitmap setup of MDK
gcc -c -O3 mdk_desk.cc -o mdk_desk.o
@ECHO. 
@ECHO   + Compiling the setup menu of MDK
gcc -c -O3 setup.cc -o setup.o
@ECHO.  
@ECHO   + Compiling the templates and desktop of MDK
gcc -c -O3 mdk.cc -o mdk.o
@ECHO.  
@ECHO   + linking MDK
gxx -o mdk.exe datedit.o grabber.o objhelp.o dialog.o dbitmap.o mdk_desk.o setup.o mdk.o -lalleg
@ECHO Starting MDK
del *.o
move mdk.exe ..
cd ..
mdk.exe
