2004-02-26 23:41:15 +00:00
|
|
|
# could add to CFLAGS to turn on warnings if you are using gcc
|
|
|
|
WARNS=-Wall
|
|
|
|
|
2004-02-27 20:47:30 +00:00
|
|
|
# change this path to point to the pli include files directory for cver
|
2008-07-21 23:21:18 +02:00
|
|
|
INCS=-I$(HOME)/Tools/gplcver-2.12a.src/pli_incs
|
|
|
|
|
2004-02-26 23:41:15 +00:00
|
|
|
# maybe want -O<something> and/or -g
|
2010-06-20 13:25:14 +02:00
|
|
|
# -fno-stack-protector apparently needed with newer gcc's
|
|
|
|
CFLAGS= -fPIC -fno-stack-protector -Wall -g $(INCS)
|
2004-02-26 23:41:15 +00:00
|
|
|
LFLAGS= -G -shared -export-dynamic
|
|
|
|
|
|
|
|
# change to your compiler
|
|
|
|
CC=gcc
|
|
|
|
|
2004-03-19 12:15:36 +00:00
|
|
|
all: myhdl_vpi.so
|
2004-02-26 23:41:15 +00:00
|
|
|
|
2004-03-19 12:15:36 +00:00
|
|
|
myhdl_vpi.o: myhdl_vpi.c
|
|
|
|
$(CC) $(CFLAGS) -c myhdl_vpi.c
|
2004-02-26 23:41:15 +00:00
|
|
|
|
|
|
|
# make rules for dynamic libaries
|
2004-03-19 12:15:36 +00:00
|
|
|
myhdl_vpi.so: myhdl_vpi.o
|
|
|
|
$(LD) $(LFLAGS) myhdl_vpi.o -o myhdl_vpi.so
|
2004-02-26 23:41:15 +00:00
|
|
|
|
2005-10-03 16:07:46 +00:00
|
|
|
clean:
|
|
|
|
-rm *.o *.so
|