47 lines
844 B
Makefile
47 lines
844 B
Makefile
|
# Name: Makefile
|
|||
|
# Project: USBaspLoader (updater)
|
|||
|
# Author: Stephan B<>rwolf
|
|||
|
# Creation Date: 2012-09-01
|
|||
|
# Tabsize: 4
|
|||
|
# License: GNU GPL v2 (see License.txt)
|
|||
|
|
|||
|
include Makefile.inc
|
|||
|
|
|||
|
|
|||
|
all: do_firmware do_updater
|
|||
|
|
|||
|
flash: firmware
|
|||
|
$(MAKE) -C firmware flash
|
|||
|
fuse: firmware
|
|||
|
$(MAKE) -C firmware fuse
|
|||
|
lock: firmware
|
|||
|
$(MAKE) -C firmware lock
|
|||
|
update: updater
|
|||
|
$(MAKE) -C updater flash
|
|||
|
|
|||
|
firmware: do_firmware
|
|||
|
updater: do_updater
|
|||
|
|
|||
|
do_firmware:
|
|||
|
$(ECHO) "."
|
|||
|
$(ECHO) "."
|
|||
|
$(ECHO) "======>BUILDING BOOTLOADER FIRMWARE"
|
|||
|
$(ECHO) "."
|
|||
|
$(MAKE) -C firmware all
|
|||
|
|
|||
|
do_updater: firmware
|
|||
|
$(ECHO) "."
|
|||
|
$(ECHO) "."
|
|||
|
$(ECHO) "======>BUILDING BOOTLOADER UPDATER (EXPERIMENTAL)"
|
|||
|
$(ECHO) "."
|
|||
|
$(MAKE) -C updater all
|
|||
|
|
|||
|
deepclean: clean
|
|||
|
$(RM) *~
|
|||
|
$(MAKE) -C updater deepclean
|
|||
|
$(MAKE) -C firmware deepclean
|
|||
|
|
|||
|
clean:
|
|||
|
$(MAKE) -C updater clean
|
|||
|
$(MAKE) -C firmware clean
|