osd-contiki/tools/sky/Makefile

26 lines
389 B
Makefile
Raw Normal View History

2012-05-07 22:55:27 +02:00
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
2015-05-08 09:21:19 +02:00
$(CC) -O2 -o $@ $<