forked from ipbus/ipbus-software
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ipbus#1 from ipbus/ipbb_integration
Added Makefile to simplify fli building
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This script designed for 64b QuestaSim/ModelSim | ||
# | ||
# Dave Newbold, February 2011 | ||
# Alessandro Thea, December 2016 | ||
|
||
SIMEXE:=vsim | ||
|
||
ifeq (, $(shell which ${SIMEXE})) | ||
$(error "No ModelSim/QuestaSim in $(PATH), have you added it to PATH?") | ||
endif | ||
|
||
TAP_DEV?="tap0" | ||
MODELSIM_ROOT:=$(shell cd $$(dirname $$(which ${SIMEXE}) )/.. && pwd) | ||
|
||
mac_fli.so: export MTI_VCO_MODE=64 | ||
mac_fli.so: mac_fli.c | ||
gcc -shared -fPIC -Wl,-Bsymbolic,--allow-shlib-undefined,--export-dynamic -D TAP_DEV=${TAP_DEV} -I${MODELSIM_ROOT}/include/ -o $@ $< | ||
|
||
clean: | ||
rm mac_fli.so |