Skip to content

Commit 2e1b5f9

Browse files
committed
Makefiles can set custom simavr path
1 parent 2637583 commit 2e1b5f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile.common

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@
2727
# along with simavr. If not, see <http://www.gnu.org/licenses/>.
2828

2929
# simavr directory
30+
ifndef SIMAVR
3031
SIMAVR := ${shell for p in . .. ../.. ../../..;do test -d $$p/simavr/sim && echo $$p/simavr; done}
32+
endif
33+
34+
# check if it is found
35+
ifeq ("$(wildcard $(SIMAVR)/sim/)","")
36+
$(warning Simavr path not found. SIMAVR=$(SIMAVR))
37+
endif
3138

3239
# You can override the build settings with local changes in this file
3340
# for example:

0 commit comments

Comments
 (0)