3 HN := $(shell hostname)
4 TILABHOSTS := $(shell echo ti{1..41}) apps1
6 ifeq ($(findstring $(HN), $(TILABHOSTS)), $(HN))
7 DPROGFLAGS := -d /dev/ttyS0 -b 9600
9 # TODO: passt das fuern stefan auch?
10 DPROGFLAGS := -d /dev/ttyUSB0 -b 115200
17 gcc -x c -E -C -P $< > $@
21 ../3a_asm/dtas < $< > $@
27 ../tools/dtprog.py $< $(DPROGFLAGS)
29 %.s_pre_sim: %.s dt_inc.s
31 gcc -x c -E -C -P -DDTSIM $< > $@
33 %.dthex_sim: %.s_pre_sim
35 ../3a_asm/dtas < $< > $@
40 cd ../3b_sim/; ./sim -f ../progs/$<
44 rm -rf *.dthex *.s_pre *.dthex_sim *.s_pre_sim