$(2)_c_objs := $$(patsubst %.c, %.o, $$($(2)_c_srcs))
$(2)_deps := $$(patsubst %.o, %.d, $$($(2)_objs))
$(2)_c_deps := $$(patsubst %.o, %.d, $$($(2)_c_objs))
-$$($(2)_objs) : %.o : %.cc $(2)_gen_hdrs
+$$($(2)_objs) : %.o : %.cc $$($(2)_gen_hdrs)
$(COMPILE) -c $$<
$$($(2)_c_objs) : %.o : %.c
$(COMPILE_C) -c $$<
libs += lib$(1).a
objs += $$($(2)_objs)
srcs += $$(addprefix $(src_dir)/$(1)/, $$($(2)_srcs))
-hdrs += $$(addprefix $(src_dir)/$(1)/, $$($(2)_hdrs) $$($(2)_gen_hdrs))
+hdrs += $$(addprefix $(src_dir)/$(1)/, $$($(2)_hdrs)) $$($(2)_gen_hdrs)
junk += $$($(2)_junk)
deps += $$($(2)_deps)
test_outs += $$($(2)_test_outs)
-install_hdrs += $$(addprefix $(src_dir)/$(1)/, $$($(2)_hdrs) $$($(2)_gen_hdrs))
+install_hdrs += $$(addprefix $(src_dir)/$(1)/, $$($(2)_hdrs)) $$($(2)_gen_hdrs)
install_libs += lib$(1).a
install_exes += $$($(2)_install_prog_exes)
riscv_install_prog_srcs = \
spike.cc \
-riscv_hdrs := \
+riscv_hdrs = \
htif.h \
common.h \
decode.h \
riscv_test_srcs =
-riscv_gen_hdrs: \
+riscv_gen_hdrs = \
dispatch.h \
-NDISPATCH := 9
+NDISPATCH = 9
DISPATCH_SRCS = $(addsuffix .cc,$(addprefix dispatch,$(call range,0,$(NDISPATCH))))
$(DISPATCH_SRCS): %.cc: dispatch $(wildcard insns/*.h) opcodes.h