1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

Added an additional cver makefile for OS X. Also changed the _extracHierachy._isListOfSigs test to "obj is not None" from "obj != None".

This commit is contained in:
cfelton@localhost 2008-07-24 06:29:08 -05:00
parent bc7b8fc44c
commit 045349965f
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,21 @@
# 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/opt/local/share/gplcver/pli_incs
# you must use exactly these flags for OSX
CFLAGS= -fPIC -Wall $(INCS) -dynamic -fno-common
LFLAGS= -flat_namespace -bundle -undefined suppress
# change to your compiler
CC=gcc
all: myhdl_vpi.dylib
myhdl_vpi.o: myhdl_vpi.c
$(CC) $(CFLAGS) -c myhdl_vpi.c
# make rules for dynamic libaries
myhdl_vpi.dylib: myhdl_vpi.o
$(CC) $(LFLAGS) myhdl_vpi.o -o myhdl_vpi.dylib
clean:
-rm *.o *.so

View File

@ -126,7 +126,7 @@ def _addUserCode(hdl, arg, code, namespace, sourcefile, funcname, sourceline):
def _isListOfSigs(obj):
if obj != None and isinstance(obj, list):
if obj is not None and isinstance(obj, list):
for e in obj:
if not isinstance(e, Signal):
return False