Update makefile
This commit is contained in:
parent
1931fb96dd
commit
6a4344ccc7
|
@ -52,7 +52,7 @@ else
|
||||||
DUMMY := $(error "Can't detect host os")
|
DUMMY := $(error "Can't detect host os")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
UNAME_M = $(shell uname -m)
|
UNAME_M := $(shell uname -m)
|
||||||
ifneq ($(findstring x86_64,$(UNAME_M)),)
|
ifneq ($(findstring x86_64,$(UNAME_M)),)
|
||||||
HOST_ARCH := x64
|
HOST_ARCH := x64
|
||||||
else ifneq ($(findstring x86,$(UNAME_M)),)
|
else ifneq ($(findstring x86,$(UNAME_M)),)
|
||||||
|
@ -73,7 +73,7 @@ endif
|
||||||
|
|
||||||
HOST_NAME := $(HOST_OS)
|
HOST_NAME := $(HOST_OS)
|
||||||
ifeq ($(HOST_OS),Linux)
|
ifeq ($(HOST_OS),Linux)
|
||||||
UNAME_A = $(shell uname -a)
|
UNAME_A := $(shell uname -a)
|
||||||
ifneq ($(findstring tegra,$(UNAME_A)),)
|
ifneq ($(findstring tegra,$(UNAME_A)),)
|
||||||
HOST_NAME := Tegra
|
HOST_NAME := Tegra
|
||||||
else ifneq ($(findstring jetsonbot,$(UNAME_A)),)
|
else ifneq ($(findstring jetsonbot,$(UNAME_A)),)
|
||||||
|
@ -147,7 +147,7 @@ endif
|
||||||
|
|
||||||
ifeq ($(HOST_OS),Win)
|
ifeq ($(HOST_OS),Win)
|
||||||
ifeq ($(HOST_ARCH),x64)
|
ifeq ($(HOST_ARCH),x64)
|
||||||
VS_VERSION = $(shell echo "$(shell which cl)" | sed -e "s/.*Visual\sStudio\s\([0-9]\+\).*/\1/g")
|
VS_VERSION := $(shell echo "$(shell which cl)" | sed "s/.*Visual\sStudio\s\([0-9]\+\).*/\1/g")
|
||||||
ifeq (15,$(VS_VERSION))
|
ifeq (15,$(VS_VERSION))
|
||||||
CMAKE += -G "Visual Studio 15 2017 Win64"
|
CMAKE += -G "Visual Studio 15 2017 Win64"
|
||||||
else ifeq (14,$(VS_VERSION))
|
else ifeq (14,$(VS_VERSION))
|
||||||
|
|
14
Makefile
14
Makefile
|
@ -21,3 +21,17 @@ opendoc: apidoc
|
||||||
html=./doc/output/$$lang/html/index.html; \
|
html=./doc/output/$$lang/html/index.html; \
|
||||||
[ -f "$$html" ] && sh ./scripts/open.sh $$html; \
|
[ -f "$$html" ] && sh ./scripts/open.sh $$html; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
host:
|
||||||
|
@$(call echo,Make $@)
|
||||||
|
@echo HOST_OS: $(HOST_OS)
|
||||||
|
@echo HOST_ARCH: $(HOST_ARCH)
|
||||||
|
@echo ECHO: $(ECHO)
|
||||||
|
@echo CC: $(CC)
|
||||||
|
@echo CXX: $(CXX)
|
||||||
|
@echo MAKE: $(MAKE)
|
||||||
|
@echo BUILD: $(BUILD)
|
||||||
|
@echo FIND: $(FIND)
|
||||||
|
@echo LDD: $(LDD)
|
||||||
|
@echo CMAKE: $(CMAKE)
|
||||||
|
@#$(FIND) . -name READ*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user