From 132683d4b5ce0902468b666cba63baea36e97f0c Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Sat, 22 Jun 2019 14:17:44 +0200 Subject: [PATCH] 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 --- software/Makefile.linux | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/software/Makefile.linux b/software/Makefile.linux index 85320c7..db48aa5 100644 --- a/software/Makefile.linux +++ b/software/Makefile.linux @@ -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