1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
myhdl/cosimulation/cver/makefile.lnx64
Guenter Dannoritzer 3f7f2fe37c Added Cver Makefile for x86_64
The added Makefile will compile myhdl_vpi.so properly for Cver on a
x86_64 architecture. Cver is compiled as a 32-bit application on x86_64
architecture and the current makefile.lnx will compile the PLI
application as 64-bit library, which does not work together with Cver.
2008-08-22 16:07:58 +02:00

25 lines
538 B
Plaintext

# 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 /usr/include/pli_incs
# maybe want -O<something> and/or -g
CFLAGS= -fPIC -Wall -g -m32 $(INCS)
LFLAGS= -G -shared -export-dynamic -melf_i386
# 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