From b7c28a48b0f6b707526fead0bfeae0f4f68ca0d2 Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Mon, 7 May 2012 22:55:27 +0200 Subject: [PATCH] Makefile for Sky tools --- tools/sky/Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tools/sky/Makefile diff --git a/tools/sky/Makefile b/tools/sky/Makefile new file mode 100644 index 000000000..0b1fa08db --- /dev/null +++ b/tools/sky/Makefile @@ -0,0 +1,25 @@ +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 $@ $<