Merge the FTDI construction

Since there's already a conditional in the shell invocation, it might
as well be used to determine the value of FTDI directly.

Signed-off-by: Stephen Kitt <steve@sk2.org>
This commit is contained in:
Stephen Kitt
2019-06-22 14:17:44 +02:00
parent 4a9cc66d1e
commit 132683d4b5

View File

@@ -10,12 +10,7 @@ CFLAGS = -Wall -Wextra -Werror -std=c99 -O3 -fPIC -I Keccak -I /usr/include/libf
-DGIT_DATE=\"$(GIT_DATE)\"\
-DLINUX
FOUND = $(shell $(CC) -o /dev/null -x c /dev/null -shared -lftdi 2>/dev/null && echo found)
ifeq ($(FOUND), found)
FTDI= -lftdi
else
FTDI= -lftdi1
endif
FTDI = $(shell $(CC) -o /dev/null -x c /dev/null -shared -lftdi 2>/dev/null && echo -lftdi || echo -lftdi1)
all: libinfnoise.a libinfnoise.so infnoise