Skip to content

Commit f808600

Browse files
committed
Peer review feedback.
1 parent 1c6e1c4 commit f808600

7 files changed

Lines changed: 512 additions & 874 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@ android/wolfssljni-ndk-sample/proguard-project.txt
7373
/psk/server-psk
7474
/psk/server-tcp
7575

76+
/tls/client-async
7677
/tls/client-tcp
7778
/tls/client-tls
7879
/tls/client-tls13
7980
/tls/client-tls13-resume
8081
/tls/client-tls-bio
8182
/tls/client-tls-cacb
8283
/tls/client-tls-callback
84+
/tls/client-tls-cryptocb
8385
/tls/client-tls-ecdhe
8486
/tls/client-tls-nonblocking
8587
/tls/client-tls-perf
@@ -89,10 +91,12 @@ android/wolfssljni-ndk-sample/proguard-project.txt
8991

9092
/tls/memory-tls
9193

94+
/tls/server-async
9295
/tls/server-tcp
9396
/tls/server-tls
9497
/tls/server-tls13
9598
/tls/server-tls-callback
99+
/tls/server-tls-cryptocb
96100
/tls/server-tls-ecdhe
97101
/tls/server-tls-epoll-perf
98102
/tls/server-tls-epoll-threaded

tls/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ STATIC_LIB = $(LIB_PATH)/lib/libwolfssl.a
1010
DEBUG_FLAGS = -g -DDEBUG
1111
DEBUG_INC_PATHS = -MD
1212
OPTIMIZE = -Os
13+
DEPS =
1314

1415
# Options
1516
#CFLAGS+=$(DEBUG_FLAGS)
@@ -25,7 +26,8 @@ LIBS+=$(DYN_LIB)
2526

2627
# build targets
2728
SRC=$(wildcard *.c)
28-
TARGETS=$(patsubst %.c, %, $(SRC))
29+
IGNORE_FILES=cryptocb-common
30+
TARGETS=$(filter-out $(IGNORE_FILES), $(patsubst %.c, %, $(SRC)))
2931
LINUX_SPECIFIC=client-tls-perf \
3032
server-tls-poll-perf \
3133
server-tls-epoll-perf \
@@ -101,9 +103,11 @@ memory-tls: CFLAGS+=-pthread
101103
# compile tcp examples without the LIBS variable
102104
%-tcp: LIBS=
103105

106+
%-cryptocb: DEPS+=cryptocb-common.c
107+
104108
# build template
105109
%: %.c
106-
$(CC) -o $@ $< $(CFLAGS) $(LIBS)
110+
$(CC) -o $@ $(DEPS) $< $(CFLAGS) $(LIBS)
107111

108112
clean:
109113
rm -f $(TARGETS)

0 commit comments

Comments
 (0)