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

Subversion Repositories s6soc

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

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 10 dgisselq
SWHOST  := ../../sw/host
40 2 dgisselq
RTLD    := ../../rtl
41 10 dgisselq
INCS    := -I$(RTLD)/obj_dir/ -I$(RTLD) -I/usr/share/verilator/include  \
42
        -I$(SWHOST)
43 2 dgisselq
SOURCES := zip_sim.cpp twoc.cpp qspiflashsim.cpp uartsim.cpp
44
VLIB    := /usr/share/verilator/include/verilated.cpp
45
RAWLIB  := $(VLIB) $(RTLD)/obj_dir/Vbusmaster__ALL.a
46 10 dgisselq
LIBS    := $(RAWLIB) -lelf
47 2 dgisselq
TESTF   := $(ZASM)/z.out
48
DHRYSTONEF := ../asm/zipdhry.z
49
 
50
zip_sim: $(SOURCES) $(RAWLIB) testb.h
51
        $(CXX) $(FLAGS) $(INCS) $(SOURCES) $(LIBS) -o $@
52
 
53
# .PHONY: stest
54
# stest: zippy_tb
55
        # ./zippy_tb -s $(TESTF)
56
 
57
# .PHONY: itest
58
# itest: zippy_tb
59
        # ./zippy_tb $(TESTF)
60
 
61
# .PHONY: test
62
# test: zippy_tb stest
63
        # ./zippy_tb -a $(TESTF)
64
 
65
# .PHONY: dhrystone
66
# dhrystone: zippy_tb
67
        # ./zippy_tb -a $(DHRYSTONEF)
68
 
69
.PHONY: clean
70
clean:
71
        rm ./zip_sim

powered by: WebSVN 2.1.0

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