-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the LibDOS wiki!
LibDOS uses SDL2, which needs to be installed. See www.libsdl.org/download-2.0. On Mac, the easiest way to get SDL2 is to use Homebrew and type at the commend line: brew install sdl2
In a location of your choosing, at the command line, type:
git clone https://github.com/xiphiasnonus/LibDOS.git
In the directory that's created (called LibDOS), type:
make install
This will build libdos.a and copy it and the header files to /usr/local/lib and /usr/local/include, respectively. (If you want to build the library but not install it, just type make.)
(Coming soon(?))
To build a LibDOS program you must link with the LibDOS library and the SDL2 library:
cc main.c -ldos -lSDL2
This assumes libdos.a is in the system library location (/usr/local/lib).