sigflup / Mega-Happy-Sprite

A sega genesis /megdrive sprite/scrollplane editor
http://theadesilva.com/mega
BSD 3-Clause "New" or "Revised" License
15 stars 3 forks source link

Adds Linux support #2

Closed ExtraordinaryBen closed 1 year ago

ExtraordinaryBen commented 6 years ago

Mega Happy Sprite wasn't able to compile under Linux unless the Math Library was added to LIBS in the Makefile.

This adds a little checker to the Makefile.in file that automatically adds -lm to LIBS if the return value from the command uname -s contains Linux.

Also adds some environment variables for packaging conventions. (DESTDIR and PREFIX)

Tested under Arch Linux with Linux Kernel 4.15.1 and GCC 7.3.0.