Makefile for Sky tools
This commit is contained in:
parent
d40b1116f8
commit
b7c28a48b0
1 changed files with 25 additions and 0 deletions
25
tools/sky/Makefile
Normal file
25
tools/sky/Makefile
Normal file
|
@ -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 $@ $<
|
Loading…
Reference in a new issue