Port of libevent (Ref #30)

This commit is contained in:
Stefan Kalkowski
2016-08-24 21:41:12 +02:00
committed by Norman Feske
parent 2c4cca899a
commit 709fbd7489
6 changed files with 514 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
INC_DIR += $(call select_from_ports,libevent)/src/lib/libevent/include
INC_DIR += $(call select_from_repositories,include/libevent)

33
lib/mk/libevent.mk Normal file
View File

@@ -0,0 +1,33 @@
LIBEVENT_DIR := $(call select_from_ports,libevent)/src/lib/libevent
SRC_C = buffer.c \
bufferevent.c \
bufferevent_filter.c \
bufferevent_openssl.c \
bufferevent_pair.c \
bufferevent_ratelim.c \
bufferevent_sock.c \
evdns.c \
event.c \
event_tagging.c \
evmap.c \
evrpc.c \
evthread.c \
evutil.c \
evutil_rand.c \
http.c \
listener.c \
log.c \
poll.c \
select.c \
signal.c \
strlcpy.c
INC_DIR += $(LIBEVENT_DIR) $(LIBEVENT_DIR)/include
INC_DIR += $(LIBEVENT_DIR)/include
INC_DIR += $(REP_DIR)/include/libevent
LIBS += libc libssl libcrypto
SHARED_LIB = yes
vpath %.c $(LIBEVENT_DIR)