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

Subversion Repositories wb2axip

[/] [wb2axip/] [trunk/] [rtl/] [Makefile] - Blame information for rev 4

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

Line No. Rev Author Line
1 3 dgisselq
################################################################################
2
##
3
## Filename:    Makefile
4
##
5
## Project:     Pipelined Wishbone to AXI converter
6
##
7
## Purpose:     To describe how to build the Verilator libraries from the
8
##              RTL, for the purposes of trying to discover if they work.
9
##      Any actual testing will be done from the code within the bench/cpp
10
##      directory.
11
##
12
## Targets:     The default target, all, builds the target test, which includes
13
##              the libraries necessary for Verilator testing.
14
##
15
## Creator:     Dan Gisselquist, Ph.D.
16
##              Gisselquist Technology, LLC
17
##
18
################################################################################
19
##
20
## Copyright (C) 2016, Gisselquist Technology, LLC
21
##
22
## This program is free software (firmware): you can redistribute it and/or
23
## modify it under the terms of  the GNU General Public License as published
24
## by the Free Software Foundation, either version 3 of the License, or (at
25
## your option) any later version.
26
##
27
## This program is distributed in the hope that it will be useful, but WITHOUT
28
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
29
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
30
## for more details.
31
##
32
## You should have received a copy of the GNU General Public License along
33
## with this program.  (It's in the $(ROOT)/doc directory, run make with no
34
## target there if the PDF file isn't present.)  If not, see
35
##  for a copy.
36
##
37
## License:     GPL, v3, as defined and found on www.gnu.org,
38
##              http://www.gnu.org/licenses/gpl.html
39
##
40
################################################################################
41
##
42
##
43
all:    test
44
YYMMDD=`date +%Y%m%d`
45
CXX   := g++
46
FBDIR := .
47
VDIRFB:= $(FBDIR)/obj_dir
48
 
49
.PHONY: test
50
test: $(VDIRFB)/Vwbm2axisp__ALL.a
51
# test: $(VDIRFB)/Vaxim2wbsp__ALL.a
52
 
53
$(VDIRFB)/Vwbm2axisp__ALL.a: $(VDIRFB)/Vwbm2axisp.h $(VDIRFB)/Vwbm2axisp.cpp
54
$(VDIRFB)/Vwbm2axisp__ALL.a: $(VDIRFB)/Vwbm2axisp.mk
55
$(VDIRFB)/Vwbm2axisp.h $(VDIRFB)/Vwbm2axisp.cpp $(VDIRFB)/Vwbm2axisp.mk: wbm2axisp.v
56
 
57
$(VDIRFB)/V%.cpp $(VDIRFB)/V%.h $(VDIRFB)/V%.mk: $(FBDIR)/%.v
58
        verilator -cc $*.v
59
 
60
$(VDIRFB)/V%__ALL.a: $(VDIRFB)/V%.mk
61
        cd $(VDIRFB); make -f V$*.mk
62
 
63
.PHONY: clean
64
clean:
65
        rm -rf $(VDIRFB)/*.mk
66
        rm -rf $(VDIRFB)/*.cpp
67
        rm -rf $(VDIRFB)/*.h
68
        rm -rf $(VDIRFB)/
69
 

powered by: WebSVN 2.1.0

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