diff options
author | Nico Geyso <nico@gsmk.de> | 2021-01-18 17:37:17 +0100 |
---|---|---|
committer | Nico Geyso <nico@gsmk.de> | 2021-01-18 17:37:17 +0100 |
commit | 91d0858509039014d9baef20a22341957628f678 (patch) | |
tree | 1655d9a4c1823657b51e822163616565953c49df /Makefile | |
parent | b1034a4590637d87aee7e047c57248fe9e14d05b (diff) |
Makefile - enable warnings
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2,12 +2,14 @@ all: sender receiver | |||
2 | 2 | ||
3 | INCLUDES=/usr/local/include | 3 | INCLUDES=/usr/local/include |
4 | LIBS=/usr/local/lib | 4 | LIBS=/usr/local/lib |
5 | CXXFLAGS=-Wall | ||
6 | LDFLAGS=-lmbedtls -lmbedcrypto | ||
5 | 7 | ||
6 | sender: sender.c | 8 | sender: sender.c |
7 | $(CC) -o sender sender.c -lmbedtls -lmbedcrypto -I$(INCLUDES) -L$(LIBS) | 9 | $(CC) -o sender sender.c $(LDFLAGS) -I$(INCLUDES) -L$(LIBS) |
8 | 10 | ||
9 | receiver: receiver.cpp | 11 | receiver: receiver.cpp |
10 | $(CXX) -std=c++17 -o receiver receiver.cpp -lmbedtls -lmbedcrypto -I$(INCLUDES) -L$(LIBS) | 12 | $(CXX) -std=c++17 -o receiver receiver.cpp $(LDFLAGS) -I$(INCLUDES) -L$(LIBS) $(CXXFLAGS) |
11 | 13 | ||
12 | clean: | 14 | clean: |
13 | rm -f sender receiver | 15 | rm -f sender receiver |