-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
28 lines (22 loc) · 900 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
all: echo tls_client gen_cert
echo: test_tls.c
cd libuv && python gyp_uv.py
make -C ./libuv/out
#clang -fsanitize=address -g -Wall -o echo test_tls.c tls_engine.c uv_tls.c libuv/out/Debug/libuv.a -lpthread -lssl -lcrypto
clang -g -Wall -Wunused -o $@ tls_engine.c uv_tls.c test_tls.c \
libuv/out/Debug/libuv.a -ldl -lrt -lpthread -lssl -lcrypto
tls_client: test_tls_client.c
cd libuv && python gyp_uv.py
make -C ./libuv/out
clang -g -Wall -o $@ tls_engine.c uv_tls.c test_tls_client.c \
libuv/out/Debug/libuv.a -ldl -lrt -lpthread -lssl -lcrypto
new:
cd libuv && python gyp_uv.py
make -C ./libuv/out
clang -g -Wall -o $@ new.c evt_tls.c libuv/out/Debug/libuv.a -ldl -lrt -lpthread -lssl -lcrypto
gen_cert:
openssl req -x509 -newkey rsa:2048 -nodes -keyout server-key.pem -out server-cert.pem -config ssl_test.cnf
clean:
-rm echo
-rm tls_client
-rm new