b4f375ebbcc7c412aaf017671f300ba64f87890f
[riscv-isa-sim.git] / hwacha / hwacha.mk.in
1 hwacha_subproject_deps = \
2 riscv \
3 softfloat \
4
5 hwacha_install_prog_srcs = \
6
7 hwacha_hdrs = \
8 hwacha.h \
9 hwacha_xcpt.h \
10 decode_hwacha.h \
11 decode_hwacha_ut.h \
12 opcodes_hwacha.h \
13 opcodes_hwacha_ut.h \
14 insn_template_hwacha.h \
15 insn_template_hwacha_ut.h \
16
17 hwacha_precompiled_hdrs = \
18 insn_template_hwacha.h \
19 insn_template_hwacha_ut.h \
20
21 hwacha_srcs = \
22 hwacha.cc \
23 hwacha_disasm.cc \
24 cvt16.cc \
25 $(hwacha_gen_srcs) \
26 $(hwacha_ut_gen_srcs) \
27
28 hwacha_test_srcs =
29
30 hwacha_gen_srcs = \
31 $(addsuffix .cc, $(call get_insn_list,$(src_dir)/hwacha/opcodes_hwacha.h))
32
33 $(hwacha_gen_srcs): %.cc: insns/%.h insn_template_hwacha.cc
34 sed 's/NAME/$(subst .cc,,$@)/' $(src_dir)/hwacha/insn_template_hwacha.cc | sed 's/OPCODE/$(call get_opcode,$(src_dir)/hwacha/opcodes_hwacha.h,$(subst .cc,,$@))/' > $@
35
36 hwacha_ut_gen_srcs = \
37 $(addsuffix .cc, $(call get_insn_list,$(src_dir)/hwacha/opcodes_hwacha_ut.h))
38
39 $(hwacha_ut_gen_srcs): %.cc: insns_ut/%.h insn_template_hwacha_ut.cc
40 sed 's/NAME/$(subst .cc,,$@)/' $(src_dir)/hwacha/insn_template_hwacha_ut.cc | sed 's/OPCODE/$(call get_opcode,$(src_dir)/hwacha/opcodes_hwacha_ut.h,$(subst .cc,,$@))/' > $@
41