summaryrefslogtreecommitdiff
path: root/robot/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-29 13:15:58 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-29 13:15:58 +0200
commit529f067e65b0146c5afa150103809ba5e09869b7 (patch)
tree80fa7a44ce8f5d43b2cc04dc1d0fd1fb79eb254e /robot/makefile
parentdbd005573295293d35647dc0e9feb2beec48a31c (diff)
client/robot sim connected
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 f65552a..11e8509 100644
--- a/robot/makefile
+++ b/robot/makefile
@@ -6,7 +6,7 @@ MCU ?= atmega168
AVRDUDE_DEVICE ?= m168
PORT ?= /dev/ttyACM0
-# SIM = true
+SIM = true
CFLAGS=-g -Wall $(DEVICE_SPECIFIC_CFLAGS) -Os
LDFLAGS=-Wl,-gc-sections -Wl,-relax
@@ -19,7 +19,7 @@ HEADERS := $(filter-out sim.h, $(wildcard *.h))
include ../shared/makefile
# simulation
-CFLAGS += $(if $(SIM), -DW2_SIM, -mcall-prologues -mmcu=$(MCU))
+CFLAGS += $(if $(SIM), -DW2_SIM -DDBG_ENABLE_COLOR, -mcall-prologues -mmcu=$(MCU))
LDFLAGS += $(if $(SIM), , -lpololu_$(DEVICE))
PREFIX := $(if $(SIM), , avr-)
SOURCES += $(if $(SIM), sim.c, )