diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-03-16 20:28:55 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-03-16 20:28:55 -0400 |
commit | f045e25ac5290c97e89a1ebf25512ac642d25f17 (patch) | |
tree | 233b0d869ca33d4032bf618ed020de0081a06d7e /Makefile | |
parent | 8be3c78e0ad7a36ce6beaffcf3ec755861f23ca0 (diff) | |
download | librambutan-f045e25ac5290c97e89a1ebf25512ac642d25f17.tar.gz librambutan-f045e25ac5290c97e89a1ebf25512ac642d25f17.zip |
building instructions and added OS forking to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |