-
Notifications
You must be signed in to change notification settings - Fork 3
/
altera.mk
29 lines (24 loc) · 897 Bytes
/
altera.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#================================================================================
# Altera environments
#================================================================================
QUARTUS_BIN := $(patsubst %/,%,$(dir $(shell which quartus 2> /dev/null)))
ALTERA_ROOT = $(QUARTUS_BIN)/../..
SOPC_ROOT = $(ALTERA_ROOT)/ip/altera/sopc_builder_ip
VS_LIBS += altera_mf_ver lpm_ver
vpath %.sv $(SOPC_ROOT)/verification/lib
vpath %.sv $(SOPC_ROOT)/verification/altera_avalon_mm_master_bfm
vpath %.sv $(SOPC_ROOT)/verification/altera_avalon_mm_slave_bfm
MODULES_V += verbosity_pkg avalon_mm_pkg
MODULES_V += altera_avalon_mm_master_bfm
MODULES_V += altera_avalon_mm_slave_bfm
.PHONY: env.altera
ifeq ($(QUARTUS_BIN),)
env.altera:
@echo "****"
@echo "**** Cannot find quartus!"
@echo "**** Add directory which Quartus installed to \$$PATH"
@echo "****"
@test
else
env.altera:
endif