diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-02-26 00:46:09 -0600 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-02-26 00:46:09 -0600 |
commit | fec505240f22065aaea2ee80c1082cad136559bb (patch) | |
tree | c5154ef52e8792b9470957332caeedb925604012 /Example01/Makefile |
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 $< $@ |