4 # Copyright (c) 2016-2020 Michael Rolnik
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, see
18 # <http://www.gnu.org/licenses/lgpl-2.1.html>
21 DECODETREE = $(SRC_PATH)/scripts/decodetree.py
22 decode-y = $(SRC_PATH)/target/avr/insn.decode
24 target/avr/decode_insn.c.inc: $(decode-y) $(DECODETREE)
25 $(call quiet-command, \
26 $(PYTHON) $(DECODETREE) -o $@ --decode decode_insn --insnwidth 16 $<, \
27 "GEN", $(TARGET_DIR)$@)
29 target/avr/translate.o: target/avr/decode_insn.c.inc
31 obj-y += translate.o cpu.o helper.o
34 obj-$(CONFIG_SOFTMMU) += machine.o