1 |
40 |
julius |
######################################################################
|
2 |
|
|
#### ####
|
3 |
|
|
#### VPI Makefile ####
|
4 |
|
|
#### ####
|
5 |
|
|
#### Description ####
|
6 |
|
|
#### Makefile for VPI libraries ####
|
7 |
|
|
#### ####
|
8 |
|
|
#### To Do: ####
|
9 |
|
|
#### Add compatability for other simulators (Cadence, etc.) ####
|
10 |
|
|
#### ####
|
11 |
|
|
#### Author(s): ####
|
12 |
|
|
#### - jb, jb@orsoc.se ####
|
13 |
|
|
#### ####
|
14 |
|
|
#### ####
|
15 |
|
|
######################################################################
|
16 |
|
|
#### ####
|
17 |
|
|
#### Copyright (C) 2009 Authors and OPENCORES.ORG ####
|
18 |
|
|
#### ####
|
19 |
|
|
#### This source file may be used and distributed without ####
|
20 |
|
|
#### restriction provided that this copyright statement is not ####
|
21 |
|
|
#### removed from the file and that any derivative work contains ####
|
22 |
|
|
#### the original copyright notice and the associated disclaimer. ####
|
23 |
|
|
#### ####
|
24 |
|
|
#### This source file is free software; you can redistribute it ####
|
25 |
|
|
#### and/or modify it under the terms of the GNU Lesser General ####
|
26 |
|
|
#### Public License as published by the Free Software Foundation; ####
|
27 |
|
|
#### either version 2.1 of the License, or (at your option) any ####
|
28 |
|
|
#### later version. ####
|
29 |
|
|
#### ####
|
30 |
|
|
#### This source is distributed in the hope that it will be ####
|
31 |
|
|
#### useful, but WITHOUT ANY WARRANTY; without even the implied ####
|
32 |
|
|
#### warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ####
|
33 |
|
|
#### PURPOSE. See the GNU Lesser General Public License for more ####
|
34 |
|
|
#### details. ####
|
35 |
|
|
#### ####
|
36 |
|
|
#### You should have received a copy of the GNU Lesser General ####
|
37 |
|
|
#### Public License along with this source; if not, download it ####
|
38 |
|
|
#### from http://www.opencores.org/lgpl.shtml ####
|
39 |
|
|
#### ####
|
40 |
|
|
######################################################################
|
41 |
|
|
|
42 |
|
|
SOURCE_FILES= jp_vpi.c rsp-rtl_sim.c gdb.c
|
43 |
|
|
|
44 |
|
|
# Uncomment this line to enable debugging of all VPI code
|
45 |
|
|
|
46 |
|
|
#DEBUG_DEFINES=-DDEBUG -DDEBUG2 -DDEBUG_ON=1 -DDEBUG_GDB=1 -DDEBUG_CMDS=1
|
47 |
|
|
|
48 |
|
|
all: jp_vpi
|
49 |
|
|
|
50 |
|
|
jp_vpi: $(SOURCE_FILES)
|
51 |
|
|
iverilog-vpi $(SOURCE_FILES) $(DEBUG_DEFINES)
|
52 |
|
|
|
53 |
|
|
clean:
|
54 |
|
|
rm -f *.o *~ jp_vpi.vpi
|