Add regression-test for tools

This commit is contained in:
Moritz 'Morty' Strübe 2015-05-08 10:48:41 +02:00
parent 60a301ef9f
commit c4f8f0acfb
3 changed files with 99 additions and 2 deletions

View file

@ -1,4 +1,4 @@
all: codeprop tunslip
all: tunslip
gitclean:
@git clean -d -x -n ..
@ -20,4 +20,4 @@ cleantargets:
@rm -f -v ${addprefix ../examples/*/*., ${shell ls ../platform/}}
@rm -f -v ${addprefix ../examples/*/*/*., ${shell ls ../platform/}}
cleandone:
@echo ${info All done!}
@echo ${info All done!}

25
tools/stm32w/Makefile Normal file
View 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) -O2 -o $@ $<