Skip to content

Commit d628db3

Browse files
committed
Check OS and set the ISE_BIN variable accordingly.
1 parent 43dc816 commit d628db3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ SHELL=bash
1212
#-------------------------------------------------------------------------------
1313
# XILINX ISE
1414
#-------------------------------------------------------------------------------
15-
.ISE_BIN=/opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64
16-
#.ISE_BIN=/cygdrive/c/Xilinx/14.7/ISE_DS/ISE/bin/nt
15+
.OS:=$(shell uname)
16+
ifeq ($(.OS), Linux)
17+
.ISE_BIN=/opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64
18+
else
19+
.ISE_BIN=/cygdrive/c/Xilinx/14.7/ISE_DS/ISE/bin/nt
20+
endif
1721
.PROJECT_NAME=Uname
1822
.TOPE_V=tope
1923
.FPGA=xc3s200-ft256-4

0 commit comments

Comments
 (0)