Skip to content

Commit

Permalink
Build simulation code only on "make check"
Browse files Browse the repository at this point in the history
  • Loading branch information
msinger committed Feb 21, 2021
1 parent 0d59062 commit c2dce35
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sim/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
noinst_PROGRAMS = \
check_PROGRAMS = \
sm83_sim

sm83_sim_SOURCES = \
Expand All @@ -7,9 +7,6 @@ sm83_sim.cc
nodist_sm83_sim_SOURCES = \
sm83_sim_design.cc

BUILT_SOURCES = \
$(nodist_sm83_sim_SOURCES)

CLEANFILES = \
$(nodist_sm83_sim_SOURCES) \
sm83_sim_design.h \
Expand Down Expand Up @@ -49,5 +46,9 @@ AM_CPPFLAGS = -I@YOSYS_INCLUDEDIR@

YOSYS_CXXRTL_ARGS = -q -p "write_cxxrtl -header -namespace $(patsubst %.cc,%,$1) $1"

sm83_sim_design.$(OBJEXT): sm83_sim_design.h
sm83_sim.$(OBJEXT): sm83_sim_design.h

sm83_sim_design.cc: Makefile $(addprefix $(top_srcdir)/src/,$(SM83_UUT))
$(YOSYS) $(YOSYSFLAGS) $(call YOSYS_CXXRTL_ARGS,$@) $(addprefix $(top_srcdir)/src/,$(SM83_UUT))
sm83_sim_design.h: sm83_sim_design.cc

0 comments on commit c2dce35

Please sign in to comment.