diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2021-01-18 17:04:55 +0100 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2021-01-18 17:04:55 +0100 |
commit | b1034a4590637d87aee7e047c57248fe9e14d05b (patch) | |
tree | a96901bf2e55c60e7bc90bab5e933d61bb716206 /Makefile | |
parent | 930b8f18e604ab9b4b358c147676bfb3c8e7c503 (diff) |
Help find headers and libs on FreeBSD
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,10 +1,13 @@ | |||
1 | all: sender receiver | 1 | all: sender receiver |
2 | 2 | ||
3 | INCLUDES=/usr/local/include | ||
4 | LIBS=/usr/local/lib | ||
5 | |||
3 | sender: sender.c | 6 | sender: sender.c |
4 | $(CC) -o sender sender.c -lmbedtls -lmbedcrypto | 7 | $(CC) -o sender sender.c -lmbedtls -lmbedcrypto -I$(INCLUDES) -L$(LIBS) |
5 | 8 | ||
6 | receiver: receiver.cpp | 9 | receiver: receiver.cpp |
7 | $(CXX) -std=c++17 -o receiver receiver.cpp -lmbedtls -lmbedcrypto | 10 | $(CXX) -std=c++17 -o receiver receiver.cpp -lmbedtls -lmbedcrypto -I$(INCLUDES) -L$(LIBS) |
8 | 11 | ||
9 | clean: | 12 | clean: |
10 | rm -f sender receiver | 13 | rm -f sender receiver |