mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-29 13:29:09 +00:00
26 lines
385 B
Makefile
26 lines
385 B
Makefile
ifndef HOST_OS
|
|
ifeq ($(OS),Windows_NT)
|
|
HOST_OS := Windows
|
|
else
|
|
HOST_OS := $(shell uname)
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(HOST_OS),Windows)
|
|
SERIALDUMP = serialdump-windows
|
|
endif
|
|
|
|
ifeq ($(HOST_OS),Darwin)
|
|
SERIALDUMP = serialdump-macos
|
|
endif
|
|
|
|
ifndef SERIALDUMP
|
|
# Assume Linux
|
|
SERIALDUMP = serialdump-linux
|
|
endif
|
|
|
|
all: $(SERIALDUMP)
|
|
|
|
$(SERIALDUMP): serialdump.c
|
|
$(CC) -o $@ $<
|