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

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [bench/] [cpp/] [Makefile] - Blame information for rev 9

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dgisselq
################################################################################
2
#
3
# Filename:     Makefile
4
#
5
# Project:      Zip CPU -- a small, lightweight, RISC CPU soft core
6
#
7
# Purpose:      This makefile builds the final verilator simulation of the
8
#               zipsystem.  Specifically, it builds the final C++ portion
9
#               of the simulator, and thus the final simulator executable.
10
#
11
#
12
# Creator:      Dan Gisselquist, Ph.D.
13
#               Gisselquist Technology, LLC
14
#
15
################################################################################
16
#
17
# Copyright (C) 2015, Gisselquist Technology, LLC
18
#
19
# This program is free software (firmware): you can redistribute it and/or
20
# modify it under the terms of  the GNU General Public License as published
21
# by the Free Software Foundation, either version 3 of the License, or (at
22
# your option) any later version.
23
#
24
# This program is distributed in the hope that it will be useful, but WITHOUT
25
# ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
26
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
27
# for more details.
28
#
29
# License:      GPL, v3, as defined and found on www.gnu.org,
30
#               http://www.gnu.org/licenses/gpl.html
31
#
32
#
33
################################################################################
34
#
35
all: zip_sim
36
 
37
CXX     := g++
38
FLAGS   := -Wall -Og -g
39
ZASM    := ../../sw/zasm
40
RTLD    := ../../rtl
41
INCS    := -I$(RTLD)/obj_dir/ -I$(RTLD) -I/usr/share/verilator/include -I$(ZASM)
42
SOURCES := zip_sim.cpp twoc.cpp qspiflashsim.cpp uartsim.cpp
43
VLIB    := /usr/share/verilator/include/verilated.cpp
44
RAWLIB  := $(VLIB) $(RTLD)/obj_dir/Vbusmaster__ALL.a
45
LIBS    := $(RAWLIB)
46
TESTF   := $(ZASM)/z.out
47
DHRYSTONEF := ../asm/zipdhry.z
48
 
49
zip_sim: $(SOURCES) $(RAWLIB) testb.h
50
        $(CXX) $(FLAGS) $(INCS) $(SOURCES) $(LIBS) -o $@
51
 
52
# .PHONY: stest
53
# stest: zippy_tb
54
        # ./zippy_tb -s $(TESTF)
55
 
56
# .PHONY: itest
57
# itest: zippy_tb
58
        # ./zippy_tb $(TESTF)
59
 
60
# .PHONY: test
61
# test: zippy_tb stest
62
        # ./zippy_tb -a $(TESTF)
63
 
64
# .PHONY: dhrystone
65
# dhrystone: zippy_tb
66
        # ./zippy_tb -a $(DHRYSTONEF)
67
 
68
.PHONY: clean
69
clean:
70
        rm ./zip_sim

powered by: WebSVN 2.1.0

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