aboutsummaryrefslogtreecommitdiff
path: root/robot/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-26 22:03:36 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-26 22:03:36 +0200
commit0b50dfe730d87ff052ef08f0dd6df6071d50aef9 (patch)
treeb87ef18d3bad97483b573c2469c1e28c7359f0df /robot/makefile
parent2a0270f3ba6eb993fb39ed3564f626d724156654 (diff)
update sim, fix readme brainfarts & fix bomd command
Diffstat (limited to 'robot/makefile')
-rw-r--r--robot/makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/robot/makefile b/robot/makefile
index 5f05872..a35162a 100644
--- a/robot/makefile
+++ b/robot/makefile
@@ -9,7 +9,7 @@ PORT ?= /dev/ttyACM0
# SIM = true
CFLAGS=-g -Wall $(DEVICE_SPECIFIC_CFLAGS) -Os
-LDFLAGS=-Wl,-u,vfprintf -lprintf_flt -lm -Wl,-relax -Wl,-gc-sections
+LDFLAGS=-Wl,-u,vfprintf -lm -Wl,-relax -Wl,-gc-sections
include ../shared/os.mk
all: $(if $(SIM), $(TARGET), out.hex)
@@ -20,7 +20,7 @@ include ../shared/makefile
# simulation
CFLAGS += $(if $(SIM), -DW2_SIM -DDBG_ENABLE_COLOR, -mcall-prologues -mmcu=$(MCU))
-LDFLAGS += $(if $(SIM), , -lpololu_$(DEVICE))
+LDFLAGS += $(if $(SIM), , -lpololu_$(DEVICE) -lprintf_flt)
PREFIX := $(if $(SIM), , avr-)
SOURCES += $(if $(SIM), sim.c, )
HEADERS += $(if $(SIM), sim.h, )