From b1034a4590637d87aee7e047c57248fe9e14d05b Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 18 Jan 2021 17:04:55 +0100 Subject: Help find headers and libs on FreeBSD --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0794737..6189df4 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ all: sender receiver +INCLUDES=/usr/local/include +LIBS=/usr/local/lib + sender: sender.c - $(CC) -o sender sender.c -lmbedtls -lmbedcrypto + $(CC) -o sender sender.c -lmbedtls -lmbedcrypto -I$(INCLUDES) -L$(LIBS) receiver: receiver.cpp - $(CXX) -std=c++17 -o receiver receiver.cpp -lmbedtls -lmbedcrypto + $(CXX) -std=c++17 -o receiver receiver.cpp -lmbedtls -lmbedcrypto -I$(INCLUDES) -L$(LIBS) clean: rm -f sender receiver -- cgit v1.2.3