diff options
Diffstat (limited to 'Example01/Makefile')
-rw-r--r-- | Example01/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Example01/Makefile b/Example01/Makefile new file mode 100644 index 0000000..6ad5610 --- /dev/null +++ b/Example01/Makefile @@ -0,0 +1,10 @@ +all: main.hex + +%.hex: %.elf + avr-objcopy -O ihex $< $@ +%.elf: %.o crtatmega3208.o + avr-gcc -mmcu=atmega3208 -L../toolchain/lib -o $@ $< +%.o: %.c + avr-gcc -c -D__AVR_DEV_LIB_NAME__=m3208 -I../toolchain/include -mmcu=atmega3208 -O3 -o $@ $< +crtatmega3208.o: ../toolchain/lib/crtatmega3208.o + cp --reflink=auto $< $@ |