Previous: , Up: How to compile?   [Contents]


2.2 Compile under DOS

IMYplay, in various versions, has been successfully compiled on the following systems:

Requirements for automatic compiling the DOS version:

To compile under DOS using DJGPP, either enable LFN support or find your GCC’s limits.h file (NOT the standard one) and change the line

#include "syslimits.h"

to

#include "syslimit.h"

Then, run ‘make -f Makefile.dos’. If you don’t have a make utility, you can run the dosdist.bat file.

If you want to override the default C compiler, run ‘make -f Makefile.dos CC=your-compiler’.

If you want to override the default C compiler flags, run ‘make -f Makefile.dos CC_OPTS=your-compiler-flags’.

If you prefer the flex-based parser, install the flex utility (from https://github.com/westes/flex) and run ‘make -f Makefile.dos FLEX=1’.

If you prefer to compile manually (like when you don’t have all of the required utilities, then go to the src directory. Change VERSION with the at- and quotation marks to the current version number in the imyp_cfg.hin file, so the line reads:

# define PACKAGE_VERSION "2.0"

and rename the file to imyp_cfg.h. Then compile all the files you wish to (the dosfiles.txt file is a good starting point), for example:

gcc -o imyplay.exe *.c -lalleg

The resulting imyplay.exe is the program to use.


Previous: , Up: How to compile?   [Contents]