diff options
Diffstat (limited to 'software/hhd70dongle/Makefile')
-rw-r--r-- | software/hhd70dongle/Makefile | 64 |
1 files changed, 36 insertions, 28 deletions
diff --git a/software/hhd70dongle/Makefile b/software/hhd70dongle/Makefile index 80c92b8..c12e4c6 100644 --- a/software/hhd70dongle/Makefile +++ b/software/hhd70dongle/Makefile @@ -1,28 +1,36 @@ -##
-## spreadspace teensy utils
-##
-##
-## Copyright (C) 2011 Christian Pointner <equinox@spreadspace.org>
-##
-## This file is part of spreadspace teensy utils.
-##
-## spreadspace teensy utils is free software: you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation, either version 3 of the License, or
-## any later version.
-##
-## spreadspace teensy utils is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with spreadspace teensy utils. If not, see <http://www.gnu.org/licenses/>.
-##
-
-NAME := hhd70dongle
-OBJ := hhd70dongle.o led.o spi.o usb_rawhid.o c1101lib.o
-BOARD_TYPE := teensy2
-
-include ../teensy.include.mk
-CFLAGS += -std=gnu99
+## +## spreadspace teensy utils +## +## +## Copyright (C) 2011 Christian Pointner <equinox@spreadspace.org> +## +## This file is part of spreadspace teensy utils. +## +## spreadspace teensy utils is free software: you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation, either version 3 of the License, or +## any later version. +## +## spreadspace teensy utils is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with spreadspace teensy utils. If not, see <http://www.gnu.org/licenses/>. +## + +NAME := hhd70dongle +OBJ := hhd70dongle.o led.o spi.o usb_rawhid.o c1101lib.o util.o +BOARD_TYPE := teensy2 + +include ../teensy.include.mk +CFLAGS += -std=gnu99 + +DFU_PRO_TARGET := atmega32u4 + +.phony: flash +flash: $(NAME).hex + sudo dfu-programmer $(DFU_PRO_TARGET) erase + sudo dfu-programmer $(DFU_PRO_TARGET) flash $< + sudo dfu-programmer $(DFU_PRO_TARGET) start |