Link against printf that allows floating point. Link against math library.

This commit is contained in:
Marco 2022-05-24 18:59:55 +02:00
parent 17eae752de
commit 76e89af042

View File

@ -12,7 +12,7 @@ all: $(TARGET)
$(TARGET): $(SRC) $(TARGET): $(SRC)
mkdir -p build mkdir -p build
avr-gcc -o $@.elf $^ $(CPPFLAGS) $(CFLAGS) $(INC) avr-gcc -o $@.elf $^ $(CPPFLAGS) $(CFLAGS) $(INC) -Wl,-u,vfprintf -lprintf_flt -lm
avr-objcopy -j .text -j .data -O ihex $@.elf $@.hex avr-objcopy -j .text -j .data -O ihex $@.elf $@.hex
rm $@.elf rm $@.elf