From fec505240f22065aaea2ee80c1082cad136559bb Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Mon, 26 Feb 2024 00:46:09 -0600 Subject: Initial commit --- Example01/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Example01/Makefile (limited to 'Example01/Makefile') 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 $< $@ -- cgit v1.2.3