Simplified host OS platform detection in Makefiles
This commit is contained in:
parent
745f071c98
commit
9c99d46e24
17 changed files with 66 additions and 134 deletions
|
@ -24,25 +24,17 @@ endif
|
|||
|
||||
### System dependent Makefile
|
||||
|
||||
ifndef WINDIR
|
||||
ifdef OS
|
||||
ifneq (,$(findstring Windows,$(OS)))
|
||||
WINDIR := Windows
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (${HOSTTYPE},FreeBSD)
|
||||
ifeq ($(HOST_OS),FreeBSD)
|
||||
# settings for FreeBSD
|
||||
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.freebsd
|
||||
else
|
||||
ifndef WINDIR
|
||||
# settings for unix
|
||||
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.unix
|
||||
else
|
||||
# settings for windows
|
||||
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.win
|
||||
endif
|
||||
ifeq ($(HOST_OS),Windows)
|
||||
# settings for Windows
|
||||
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.win
|
||||
else
|
||||
# settings for an arbitary unix-like platform
|
||||
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.unix
|
||||
endif
|
||||
endif
|
||||
|
||||
# If we are not running under Windows, we assume Linux
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue