]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix OS detection of darkplaces' makefile to not think it's on BSD on GNU/kFreeBSD
authorCyril Brulebois <kibi@debian.org>
Tue, 26 Dec 2006 11:24:24 +0000 (12:24 +0100)
committernyov <nyov@nexnode.net>
Thu, 27 Nov 2014 09:57:56 +0000 (09:57 +0000)
[The DarkPlaces build system mostly cares about userland, not the kernel,
and GNU/kFreeBSD is equivalent to GNU/Linux in that respect. -smcv]

makefile

index e74cce2a791658d952dc1af9ba535615fe002f51..565dae620f8bbf53ac016182bdebe65be57138fa 100644 (file)
--- a/makefile
+++ b/makefile
@@ -9,6 +9,10 @@ else
 
 # UNIXes
 DP_ARCH:=$(shell uname)
+ifeq ($(DP_ARCH), GNU/kFreeBSD)
+       # same userspace as Linux, not a BSDish one
+       DP_MAKE_TARGET=linux
+else
 ifneq ($(filter %BSD,$(DP_ARCH)),)
        DP_MAKE_TARGET=bsd
 else
@@ -23,6 +27,7 @@ else
 endif  # ifeq ($(DP_ARCH), SunOS)
 endif  # ifeq ($(DP_ARCH), Darwin)
 endif  # ifneq ($(filter %BSD,$(DP_ARCH)),)
+endif  # ifeq ($(DP_ARCH), GNU/kFreeBSD)
 endif  # ifdef windir
 endif  # ifndef DP_MAKE_TARGET