summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8a7ed87bd4477ffd6a2971df112a1b56d49ec0a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
all: sender receiver

INCLUDES=/usr/local/include
LIBS=/usr/local/lib
CXXFLAGS=-Wall
LDFLAGS=-lmbedtls -lmbedcrypto

sender: sender.c
	$(CC) -o sender sender.c $(LDFLAGS) -I$(INCLUDES) -L$(LIBS)

receiver: receiver.cpp
	$(CXX) -std=c++17 -o receiver receiver.cpp $(LDFLAGS) -I$(INCLUDES) -L$(LIBS) $(CXXFLAGS)

test: receiver sender
	./test-all.sh

clean:
	rm -f sender receiver