Support GNU/kFreeBSD, patch by Cyril Brulebois. Thanks.
This commit is contained in:
parent
c61ad8a074
commit
d2f8b9f4bb
2 changed files with 8 additions and 3 deletions
4
Makefile
4
Makefile
|
@ -4,7 +4,7 @@
|
||||||
# GNU Make required
|
# GNU Make required
|
||||||
#
|
#
|
||||||
|
|
||||||
COMPILE_PLATFORM=$(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]')
|
COMPILE_PLATFORM=$(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'|sed -e 's/\//_/g')
|
||||||
|
|
||||||
COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/i386/)
|
COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/i386/)
|
||||||
|
|
||||||
|
@ -239,7 +239,7 @@ LIB=lib
|
||||||
INSTALL=install
|
INSTALL=install
|
||||||
MKDIR=mkdir
|
MKDIR=mkdir
|
||||||
|
|
||||||
ifeq ($(PLATFORM),linux)
|
ifneq (,findstring($(PLATFORM),linux gnu_kfreebsd kfreebsd-gnu))
|
||||||
|
|
||||||
ifeq ($(ARCH),alpha)
|
ifeq ($(ARCH),alpha)
|
||||||
ARCH=axp
|
ARCH=axp
|
||||||
|
|
|
@ -154,11 +154,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
//================================================================= LINUX ===
|
//================================================================= LINUX ===
|
||||||
|
|
||||||
#ifdef __linux__
|
#if defined(__linux__) || defined(__FreeBSD_kernel__)
|
||||||
|
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
|
|
||||||
|
#if defined(__linux__)
|
||||||
#define OS_STRING "linux"
|
#define OS_STRING "linux"
|
||||||
|
#else
|
||||||
|
#define OS_STRING "kFreeBSD"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ID_INLINE inline
|
#define ID_INLINE inline
|
||||||
#define PATH_SEP '/'
|
#define PATH_SEP '/'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue