2005-04-27 00:02:40 +08:00
|
|
|
#
|
2016-01-13 05:25:30 +08:00
|
|
|
# OpenSSL/crypto/bio/Makefile
|
2005-04-27 00:02:40 +08:00
|
|
|
#
|
|
|
|
|
2016-01-13 05:25:30 +08:00
|
|
|
DIR= bio
|
2005-04-27 00:02:40 +08:00
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
2016-01-13 05:25:30 +08:00
|
|
|
INCLUDES= -I.. -I$(TOP) -I../../include
|
2005-04-27 00:02:40 +08:00
|
|
|
CFLAG=-g
|
|
|
|
MAKEFILE= Makefile
|
|
|
|
AR= ar r
|
|
|
|
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2016-01-13 05:25:30 +08:00
|
|
|
LIBSRC= bio_lib.c bio_cb.c bio_err.c \
|
|
|
|
bss_mem.c bss_null.c bss_fd.c \
|
|
|
|
bss_file.c bss_sock.c bss_conn.c \
|
Refactoring BIO: add wrappers around sockaddr et al
Because different platforms have different levels of support for IPv6,
different kinds of sockaddr variants, and some have getaddrinfo et al
while others don't, we could end up with a mess if ifdefs, duplicate
code and other maintainance nightmares.
Instead, we're introducing wrappers around the common form for socket
communication:
BIO_ADDR, closely related to struct sockaddr and some of its variants.
BIO_ADDRINFO, closely related to struct addrinfo.
With that comes support routines, both convenient creators and
accessors, plus a few utility functions:
BIO_parse_hostserv, takes a string of the form host:service and
splits it into host and service. It checks for * in both parts, and
converts any [ipv6-address] syntax to ust the IPv6 address.
BIO_lookup, looks up information on a host.
All routines handle IPv4 (AF_INET) and IPv6 (AF_INET6) addresses, and
there is support for local sockets (AF_UNIX) as well.
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2016-02-02 22:54:57 +08:00
|
|
|
bf_null.c bf_buff.c b_print.c b_dump.c b_addr.c \
|
2016-02-03 04:04:54 +08:00
|
|
|
b_sock.c b_sock2.c bss_acpt.c bf_nbio.c bss_log.c bss_bio.c \
|
2016-01-13 05:25:30 +08:00
|
|
|
bss_dgram.c
|
|
|
|
# bf_lbuf.c
|
|
|
|
LIBOBJ= bio_lib.o bio_cb.o bio_err.o \
|
|
|
|
bss_mem.o bss_null.o bss_fd.o \
|
|
|
|
bss_file.o bss_sock.o bss_conn.o \
|
Refactoring BIO: add wrappers around sockaddr et al
Because different platforms have different levels of support for IPv6,
different kinds of sockaddr variants, and some have getaddrinfo et al
while others don't, we could end up with a mess if ifdefs, duplicate
code and other maintainance nightmares.
Instead, we're introducing wrappers around the common form for socket
communication:
BIO_ADDR, closely related to struct sockaddr and some of its variants.
BIO_ADDRINFO, closely related to struct addrinfo.
With that comes support routines, both convenient creators and
accessors, plus a few utility functions:
BIO_parse_hostserv, takes a string of the form host:service and
splits it into host and service. It checks for * in both parts, and
converts any [ipv6-address] syntax to ust the IPv6 address.
BIO_lookup, looks up information on a host.
All routines handle IPv4 (AF_INET) and IPv6 (AF_INET6) addresses, and
there is support for local sockets (AF_UNIX) as well.
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2016-02-02 22:54:57 +08:00
|
|
|
bf_null.o bf_buff.o b_print.o b_dump.o b_addr.o \
|
2016-02-03 04:04:54 +08:00
|
|
|
b_sock.o b_sock2.o bss_acpt.o bf_nbio.o bss_log.o bss_bio.o \
|
2016-01-13 05:25:30 +08:00
|
|
|
bss_dgram.o
|
|
|
|
# bf_lbuf.o
|
2005-04-27 00:02:40 +08:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
2016-01-13 05:25:30 +08:00
|
|
|
HEADER= bio_lcl.h
|
2005-04-27 00:02:40 +08:00
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
|
|
|
all: lib
|
|
|
|
|
|
|
|
lib: $(LIBOBJ)
|
2014-10-19 06:47:03 +08:00
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
2005-04-27 00:02:40 +08:00
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
|
|
|
@touch lib
|
|
|
|
|
|
|
|
files:
|
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
|
|
|
|
depend:
|
2016-01-30 02:29:45 +08:00
|
|
|
$(TOP)/util/domd $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
2005-04-27 00:02:40 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|