Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.31 KB

File metadata and controls

46 lines (40 loc) · 1.31 KB

cstroids

tiny asteroids clone written in C using SDL2

Created as an exercise in learning C and SDL.

Releases

Please see the releases page for a statically-compiled Linux binary and a Windows binary with included SDL2.dll.

Compiling

Linux

If you're using any Linux distro, all you should need is a C compiler and SDL2's development packages:

make
sudo make install

Static Linux binaries can be compiled using:

make STATIC=1

Static binaries can only be compiled on Linux.

FreeBSD

If you're on FreeBSD, GNU Make is also required. Once it's installed, you can still run a simple make:

make
sudo make install

Compilation has not been tested on any of the other BSDs. Maybe you can try it and let me know?

Windows (cross-compiling)

You can also cross-compile a Windows binary using mingw32-gcc. Bear in mind you'll need a copy of SDL2.dll (not included here) to run the Windows binary:

make WINDOWS_CROSSCOMPILE=1

Windows binaries can only be easily built on Linux at the moment, but that may change if I decide I'm ready to dig into more Makefile shenanigans.

MacOS

If you'd like to experiment with compiling on MacOS, I'm sure it's possible but I don't own any Apple products to try that with! Of course, donations for the sake of 'easing development' are appreciated...