Line 2... |
Line 2... |
VERILATOR_ROOT = /opt/verilator/share/verilator
|
VERILATOR_ROOT = /opt/verilator/share/verilator
|
VERIDIR=../obj_dir
|
VERIDIR=../obj_dir
|
INCLUDES=-I$(SYSTEMC)/include -I$(VERIDIR) -I$(VERILATOR_ROOT)/include -I$(SYSTEMPERL)
|
INCLUDES=-I$(SYSTEMC)/include -I$(VERIDIR) -I$(VERILATOR_ROOT)/include -I$(SYSTEMPERL)
|
LINKOPT=-L$(SYSTEMC)/lib-linux64 -lsystemc -lm
|
LINKOPT=-L$(SYSTEMC)/lib-linux64 -lsystemc -lm
|
DEFINES=-DDEBUG
|
DEFINES=-DDEBUG
|
OBJFILES=sc_env_top.o env_memory.o tv_responder.o z80_decoder.o \
|
OBJFILES=sc_env_top.o env_memory.o tv_responder.o z80_decoder.o di_mux.o \
|
$(VERIDIR)/Vtv80s.o $(VERIDIR)/Vtv80s__Syms.o \
|
$(VERIDIR)/Vtv80s.o $(VERIDIR)/Vtv80s__Syms.o \
|
$(VERIDIR)/Vtv80s__Trace.o \
|
$(VERIDIR)/Vtv80s__Trace.o \
|
$(VERIDIR)/Vtv80s__Trace__Slow.o \
|
$(VERIDIR)/Vtv80s__Trace__Slow.o \
|
verilated.o Sp.o
|
$(VERIDIR)/VT16450.o $(VERIDIR)/VT16450__Syms.o verilated.o Sp.o
|
OPT_FAST=-O2
|
OPT_FAST=-O2
|
|
|
CXX=g++ -g $(OPT_FAST) $(INCLUDES) $(DEFINES)
|
CXX=g++ -g $(OPT_FAST) $(INCLUDES) $(DEFINES)
|
|
|
all: sc_env_top
|
all: sc_env_top
|
Line 36... |
Line 36... |
(cd $(VERIDIR); make -f Vtv80s.mk Vtv80s__Trace.o)
|
(cd $(VERIDIR); make -f Vtv80s.mk Vtv80s__Trace.o)
|
|
|
$(VERIDIR)/Vtv80s__Trace__Slow.o:
|
$(VERIDIR)/Vtv80s__Trace__Slow.o:
|
(cd $(VERIDIR); make -f Vtv80s.mk Vtv80s__Trace__Slow.o)
|
(cd $(VERIDIR); make -f Vtv80s.mk Vtv80s__Trace__Slow.o)
|
|
|
|
$(VERIDIR)/VT16450.o:
|
|
make -C$(VERIDIR) -f VT16450.mk $(@F)
|
|
|
|
$(VERIDIR)/VT16450__Syms.o:
|
|
make -C$(VERIDIR) -f VT16450.mk $(@F)
|
|
|
Sp.o: $(SYSTEMPERL)/Sp.cpp
|
Sp.o: $(SYSTEMPERL)/Sp.cpp
|
$(CXX) -I$(SYSTEMPERL) -c $^
|
$(CXX) -I$(SYSTEMPERL) -c $^
|
|
|
clean:
|
clean:
|
rm -f *.o
|
rm -f *.o
|