From 034b64f4153550cbe5849bcbfc27e187377cc512 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 29 Jun 2023 00:06:20 +0200 Subject: EMV keyfile support: Overall code improvements and bug fixes --- src/Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 53e460b6..f6ec5041 100644 --- a/src/Makefile +++ b/src/Makefile @@ -190,9 +190,9 @@ ifeq "$(shell uname -s)" "Linux" PLATFORM := Linux C_CXX_FLAGS += -DTC_UNIX -DTC_LINUX - # TODO: Prpoper implementation in the makefile - C_CXX_FLAGS += -I/usr/include/PCSC/ -lpcsclite - LFLAGS += -I/usr/include/PCSC/ -lpcsclite + + # PCSC + C_CXX_FLAGS += $(shell pkg-config --cflags libpcsclite) # GNU GCC version 11 and higher compile with -std=gnu++17 by default @@ -367,6 +367,9 @@ ifeq "$(shell uname -s)" "FreeBSD" PLATFORM := FreeBSD PLATFORM_UNSUPPORTED := 1 C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_FREEBSD + + # PCSC + C_CXX_FLAGS += $(shell pkg-config --cflags libpcsclite) CC := cc CXX := c++ @@ -424,6 +427,9 @@ ifeq "$(shell uname -s)" "OpenBSD" PLATFORM_UNSUPPORTED := 1 C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_OPENBSD + # PCSC + C_CXX_FLAGS += $(shell pkg-config --cflags libpcsclite) + CC := cc CXX := c++ @@ -446,6 +452,9 @@ ifeq "$(shell uname -s)" "SunOS" C_CXX_FLAGS += -DTC_UNIX -DTC_SOLARIS WX_CONFIGURE_FLAGS += --with-gtk + # PCSC + C_CXX_FLAGS += $(shell pkg-config --cflags libpcsclite) + endif -- cgit v1.2.3