summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2014-04-04 19:21:41 +0200
committerFlorian Jung <flo@windfisch.org>2014-04-04 19:21:41 +0200
commit98a2467be3647894e348ff2f646dd34edbc04d05 (patch)
treecd1ff24cb3f3c40229dcd2443bb007930e122b95 /Makefile
parent7c8a6d56f9f1f16250272dca698085b71f7cad39 (diff)
license and fixes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5f0a6db..40f457a 100644
--- a/Makefile
+++ b/Makefile
@@ -368,7 +368,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
# Default target.
all: begin directories gccversion sizebefore build sizeafter end
-directories: .dep obj
+directories: .dep obj obj/usbdrv
.dep:
mkdir .dep
@@ -376,6 +376,9 @@ directories: .dep obj
obj:
mkdir obj
+obj/usbdrv: obj
+ mkdir obj/usbdrv
+
# Change the build target to build a HEX file or a library.
build: elf hex eep lss sym
#build: lib
@@ -426,6 +429,7 @@ gccversion :
# Program the device.
+flash: program
program: $(TARGET).hex $(TARGET).eep
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
$(AVRDUDE_WRITE_EEPROM)
@@ -594,4 +598,4 @@ clean_list :
# Listing of phony targets.
.PHONY : all begin finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff \
-clean clean_list program debug gdb-config
+clean clean_list flash program debug gdb-config