From f045e25ac5290c97e89a1ebf25512ac642d25f17 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 16 Mar 2010 20:28:55 -0400 Subject: building instructions and added OS forking to Makefile --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4d3f54c..17b5730 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,15 @@ AS := arm-none-eabi-as CP := arm-none-eabi-objcopy OD := arm-none-eabi-objdump -#todo: use an OS switch here to grab a different bin -DFU = ../dfu-util/bin/linux/dfu-util +# Platform detection +ARCH = $(shell uname -m) +OS = $(shell uname) + +ifeq ($(OS),Linux) + DFU = dfu-util +else + DFU = ../dfu-util/bin/linux/dfu-util +endif BUILD_PATH = build LIB_PATH = lib -- cgit v1.2.3