forked from darrenjs/openssl_examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
29 lines (19 loc) · 701 Bytes
/
makefile
File metadata and controls
29 lines (19 loc) · 701 Bytes
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
29
#
# Copyright (c) 2017 Darren Smith
#
# ssl_examples is free software; you can redistribute it and/or modify it under
# the terms of the MIT license. See LICENSE for details.
#
CFLAGS += -MMD -MP -Wall -Wextra -O0 -g3 -ggdb
LDLIBS += -lcrypto -lssl
all_srcs := $(shell find . -name \*.c)
all : apps
apps : $(all_srcs:%.c=%)
test : obj/test/main ; @$<
clean : ; rm -f $(all_srcs:%.c=%) $(all_srcs:%.c=%.d)
.PRECIOUS : %.o
ssl_server_nonblock: ssl_server_nonblock.c common.h
$(CC) $(CFLAGS) ssl_server_nonblock.c $(OUTPUT_OPTION) $(LDLIBS)
ssl_client_nonblock: ssl_client_nonblock.c common.h
$(CC) $(CFLAGS) ssl_client_nonblock.c $(OUTPUT_OPTION) $(LDLIBS)
#-include $(all_srcs:%.c=%.d)