OpenCores
URL https://opencores.org/ocsvn/zipcpu/zipcpu/trunk

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [bench/] [cpp/] [Makefile] - Diff between revs 36 and 39

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 36 Rev 39
Line 37... Line 37...
all: zippy_tb
all: zippy_tb
 
 
CXX     := g++
CXX     := g++
FLAGS   := -Wall -Og -g
FLAGS   := -Wall -Og -g
ZASM    := ../../sw/zasm
ZASM    := ../../sw/zasm
INCS    := -I../../rtl/obj_dir/ -I/usr/share/verilator/include -I../../sw/zasm
RTLD    := ../../rtl
 
INCS    := -I$(RTLD)/obj_dir/ -I$(RTLD) -I/usr/share/verilator/include -I../../sw/zasm
SOURCES := zippy_tb.cpp memsim.cpp twoc.cpp $(ZASM)/zopcodes.cpp $(ZASM)/zparser.cpp
SOURCES := zippy_tb.cpp memsim.cpp twoc.cpp $(ZASM)/zopcodes.cpp $(ZASM)/zparser.cpp
RAWLIB  := /usr/share/verilator/include/verilated.cpp ../../rtl/obj_dir/Vzipsystem__ALL.a
RAWLIB  := /usr/share/verilator/include/verilated.cpp ../../rtl/obj_dir/Vzipsystem__ALL.a
LIBS    := $(RAWLIB) -lncurses
LIBS    := $(RAWLIB) -lncurses
TESTF   := ../../sw/zasm/z.out
TESTF   := ../../sw/zasm/z.out
 
 
zippy_tb: $(SOURCES) $(RAWLIB) $(ZASM)/zopcodes.h $(ZASM)/zparser.h testb.h
zippy_tb: $(SOURCES) $(RAWLIB) $(ZASM)/zopcodes.h $(ZASM)/zparser.h testb.h
 
zippy_tb: $(RTLD)/cpudefs.h
        $(CXX) $(FLAGS) $(INCS) $(SOURCES) $(LIBS) -o $@
        $(CXX) $(FLAGS) $(INCS) $(SOURCES) $(LIBS) -o $@
 
 
.PHONY: stest
.PHONY: stest
stest: zippy_tb
stest: zippy_tb
        ./zippy_tb -s $(TESTF)
        ./zippy_tb -s $(TESTF)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.