diff options
-rw-r--r-- | CMakeLists.txt | 12 | ||||
-rw-r--r-- | kbd.c (renamed from ardkbd.c) | 0 |
2 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f11ae9..99c56ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,16 +20,16 @@ project(ARDKBD C) set(CMAKE_MODULE_PATH ${ARDKDB_SOURCE_DIR}) -add_executable(ardkbd.elf - ardkbd.c +add_executable(kbd.elf + kbd.c ) -set_target_properties(ardkbd.elf PROPERTIES +set_target_properties(kbd.elf PROPERTIES COMPILE_FLAGS "-Wall -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Os -mmcu=${BOARD}" LINK_FLAGS "-Wall -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Os -mmcu=${BOARD}" COMPILE_DEFINITIONS "F_CPU=${CLOCK}" ) -add_custom_command(OUTPUT ardkbd.hex COMMAND ${CMAKE_OBJCOPY} -O ihex -R .eeprom ardkbd.elf ardkbd.hex DEPENDS ardkbd.elf) -add_custom_target(ardkbd ALL DEPENDS ardkbd.hex) +add_custom_command(OUTPUT kbd.hex COMMAND ${CMAKE_OBJCOPY} -O ihex -R .eeprom kbd.elf kbd.hex DEPENDS kbd.elf) +add_custom_target(kbd ALL DEPENDS kbd.hex) -add_custom_target(flash COMMAND ${AVRDUDE} ${FLASH_FLAGS} -D -Uflash:w:ardkbd.hex:i DEPENDS ardkbd) +add_custom_target(flash COMMAND ${AVRDUDE} ${FLASH_FLAGS} -D -Uflash:w:kbd.hex:i DEPENDS kbd) |