summaryrefslogtreecommitdiff
path: root/core/makefile
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-08 00:33:03 +0800
committerruki <[email protected]>2020-05-07 21:18:23 +0800
commit223124202f2a7f619f9e55afa7b1571c64f7de54 (patch)
tree3b4946ead8331f5a0934190043fbafd5db8b26f1 /core/makefile
parent0c0867e019801e38504b34efa607b6de11677b5c (diff)
add bsd platform for makefile
Diffstat (limited to 'core/makefile')
-rw-r--r--core/makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/core/makefile b/core/makefile
index 657ecaa14..d5acc252d 100644
--- a/core/makefile
+++ b/core/makefile
@@ -145,15 +145,9 @@ HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i cygwin},cygwin,))
HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i msys},msys,))
HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i mingw},msys,))
HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i windows},msys,))
-HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i freebsd},freebsd,))
+HOST :=$(if $(HOST),$(HOST),$(if ${shell uname | egrep -i bsd},bsd,))
HOST :=$(if $(HOST),$(HOST),linux)
-# is *bsd host?
-isbsd =
-ifeq ($(HOST),freebsd)
- isbsd = yes
-endif
-
# platform
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i linux},linux,))
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i darwin},macosx,))
@@ -161,6 +155,7 @@ PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i cygwin},cygwin,))
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i msys},msys,))
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i mingw},msys,))
PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i windows},windows,))
+PLAT :=$(if $(PLAT),$(PLAT),$(if ${shell uname | egrep -i bsd},bsd,))
PLAT :=$(if $(PLAT),$(PLAT),linux)
# architecture
@@ -252,7 +247,7 @@ ifeq ($(HOST),macosx)
SED := perl -pi -e
SEDX := perl -p -e
else
-ifdef isbsd
+ifeq ($(HOST),bsd)
SED := perl -pi -e
SEDX := perl -p -e
else
@@ -268,6 +263,9 @@ endif
ifeq ($(HOST),linux)
SHELL = bash
endif
+ifeq ($(HOST),bsd)
+SHELL = bash
+endif
ECHO := echo -e
# make upper