-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 759 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#These 2 lines were necessary on my debian derivative, to find glibc
INCLIBC = -I/usr/include/i386-linux-gnu
export LIBRARY_PATH := /usr/lib/i386-linux-gnu
INCLUDE = $(INCLIBC) -I/usr/include/python2.7 -I$(MTI_HOME)/include
CFLAGS = -gstabs -Wall -fpic -shared
COMPILER = $(MTI_GCC)/bin/gcc
LIBS = -lc -lssl -lpthread -lm -ldl -lutil -lpython2.7
sim: pythonEmbedded.h pythonEmbedded.so
vsim top -c -sv_lib pythonEmbedded -do "run -all; quit -f"
pythonEmbedded.h: pythonEmbedded.sv
vlib work
vlog -sv -dpiheader pythonEmbedded.h pythonEmbedded.sv
pythonEmbedded.sv:
pythonEmbedded.so: pythonEmbedded.c
$(COMPILER) $< $(CFLAGS) $(INCLUDE) $(LIBS) -o $@
clean:
rm -f pythonEmbedded.h pythonEmbedded.so
rm -f transcript *.wlf
rm -rf work