summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2013-12-22 19:07:27 +0100
committerWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2013-12-22 19:07:27 +0100
commite9b41c8d6bf9f28a2146652d5ed3b1cd0bc478c7 (patch)
tree717b6344d9c527aaf19759a69d56cc873c712c60 /Makefile
parent217ddb1e32dcb4cde11ecca88418be428895f2dc (diff)
downloadvgaedidinjector-e9b41c8d6bf9f28a2146652d5ed3b1cd0bc478c7.tar.gz
vgaedidinjector-e9b41c8d6bf9f28a2146652d5ed3b1cd0bc478c7.tar.bz2
build system works
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 3 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index fc74b31..d335ef0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
## HWREV:
## 0 -> initial revision
MMCU = atxmega16a4
-DEFINES = -DF_CPU=32000000 -DHWREV=0
+DEFINES = -DF_CPU=2000000 -DHWREV=0
# -b baudrate
AVRDUDE = avrdude -P usb -c jtag3pdi -p $(MMCU)
@@ -21,7 +21,7 @@ VPATH = .
CC = avr-gcc
CFLAGS = -W -Wall -Os -std=gnu99 -Werror-implicit-function-declaration
-all: firmware.bin firmware.hex firmware-eeprom.bin
+all: firmware.bin firmware.hex
run: all prg
@@ -66,20 +66,13 @@ program_fuses:
prg: firmware.hex
$(AVRDUDE) -Uflash:w:firmware.hex:i
-program_bootloader:
- $(AVRDUDE) -e -Uflash:w:bootload.hex:i
-
dump: firmware.elf
avr-objdump -D firmware.elf
clean:
- -rm -f firmware.bin firmware.elf firmware-eeprom.bin firmware.hex
+ -rm -f firmware.bin firmware.elf firmware.hex
-rm -f *.o
-firmware-eeprom.bin: firmware.elf
- avr-objcopy -j .eeprom -O binary firmware.elf firmware-eeprom.bin
- @ls -l firmware-eeprom.bin
-
firmware.hex: firmware.elf
avr-objcopy -j .text -j .data -O ihex firmware.elf firmware.hex
@@ -87,6 +80,3 @@ firmware.bin: firmware.elf
avr-objcopy -j .text -j .data -O binary firmware.elf firmware.bin
@ls -l firmware.bin
-asm:
- $(CC) -W -Wall -O2 -mmcu=$(MMCU) -S main.c -o main.asm
-