mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
23 lines
478 B
Plaintext
23 lines
478 B
Plaintext
|
# could add to CFLAGS to turn on warnings if you are using gcc
|
||
|
WARNS=-Wall
|
||
|
|
||
|
# change path if not running test from installed directory location
|
||
|
INCS=-I$(HOME)/gplcver-1.10f.src/pli_incs
|
||
|
# maybe want -O<something> and/or -g
|
||
|
CFLAGS= -fPIC -Wall -g $(INCS)
|
||
|
LFLAGS= -G -shared -export-dynamic
|
||
|
|
||
|
# change to your compiler
|
||
|
CC=gcc
|
||
|
|
||
|
all: myhdl.so
|
||
|
|
||
|
myhdl.o: myhdl.c
|
||
|
$(CC) $(CFLAGS) -c myhdl.c
|
||
|
|
||
|
|
||
|
# make rules for dynamic libaries
|
||
|
myhdl.so: myhdl.o
|
||
|
$(LD) $(LFLAGS) myhdl.o -o myhdl.so
|
||
|
|