1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00
Christopher Felton 4af569adf9 Added a cosimulation directory for modelsim
--HG--
branch : 0.8-dev
2011-07-22 15:21:49 -05:00

31 lines
700 B
Makefile

# could add to CFLAGS to turn on warnings if you are using gcc
WARNS=-Wall
# change this path to point to the pli include files directory for cver
INCS=-I /opt/Altera/11.0/modelsim_ase/include
# maybe want -O<something> and/or -g
# 32bit for Altera ASE/PE on Ubuntu Natty Narwhal
CFLAGS= -fPIC -Wall -g -m32 $(INCS) -fno-stack-protector
LFLAGS= -G -shared -export-dynamic -melf_i386
# 64bit for SE
#CFLAGS= -fPIC -Wall -c -g $(INCS)
#LFLAGS= -shared -E
# change to your compiler
CC=gcc
all: myhdl_vpi.so
myhdl_vpi.o: myhdl_vpi.c
$(CC) $(CFLAGS) -c myhdl_vpi.c
# make rules for dynamic libaries
myhdl_vpi.so: myhdl_vpi.o
$(LD) $(LFLAGS) myhdl_vpi.o -o myhdl_vpi.so
clean:
-rm *.o *.so