Spice+ logo

Main
  Homepage
  Status
  Download

Compiling
• DOS version
  Windows version

  Link


Compiling under DOS
DJGPP Environment


1. Get DJGPP


To compile you need the DJGPP files. Make a new directory, for example c:\download\ and download the following files into that directory. Note that there may be newer versions of these files, but Spice+ is not verified to compile with any other versions of the following files.

File name File size Description
djdev203.zip 1503 kB This file contains the Development kit and C libraries v.2.03.
gcc304b.zip 2275 kB This file contains the GNU C compiler, GCC v.3.04.
bnu210b.zip 2733 kB This file contains the GNU binary utilities v.2.10.
mak377b.zip 242 kB This file contains the GNU make v.3.77.
fil316b.zip 1177 kB This file contains the GNU file utils v.3.16.


2. Extract all files


Next, you have uncompress the DJGPP files in the same directory, c:\djgpp.


3. Setup DJGPP


Next we will have to set up the environment variables.
Open a command prompt. You can find it either from under Start Menu - Programs, or you can simply select Run and type command.com into the dialog box. Now there are two possibilities:

- modify the file autoexec.bat
You have to edit autoexec.bat and find the line which says something like
path c:\win98;c:\win98\command
Add
;c:\djgpp\bin
to the end of that line, so that it will look like
path c:\win98;c:\win98\command;c:\djgpp\bin
After that, hit enter to make a new line and type
set djgpp = c:\djgpp\djgpp.env
then save the file.
You have to reboot your computer to make the changes effective and permanent.

- create a file batch
For example type
edit go.bat
then write the two lines:
path %path%;c:\djgpp\bin
set djgpp = c:\djgpp\djgpp.env
save the file and exit. Run the batch file (you need not to reboot your system).
In this case you have to lunch the batch file every time a new command prompt is opened, because the changes aren't permanent.


4. Library


In order to compile Spice+ you also need the following library:
- Allegro library
- Readline library
Note that there may be newer versions of these files, but Spice+ is not verified to compile with any other versions of the following files:

File name File size Description
all3934.zip 1790 kB This file contains the Allegro library v.3.9.34.
rdln22b.zip 215 kB This file contains the GNU Readline library v.2.2.


5. Install Allegro


Unzip Allegro library in c:\djgpp, then type
cd \djgpp\allegro
to go to Allegro's directory.
To compile, type
make
After compiling you have to install the library with the command
make install


6. Install Readline


Readline library is available in binary form, so you have only to unzip all files in c:\djgpp preserving the subdirectory structure


7. Compile Spice+


To compice Spice+ just go to its directory with
cd \spiceplus
and type
make OSTYPE=djgpp
Note that the keyword "OSTYPE" is case sensitive.

Another method is to edit the file makefile and uncomment the line
# OSTYPE = djgpp
Then just type
make