summaryrefslogtreecommitdiff
path: root/lib/libevent/Makefile
blob: e69d90a3b637d906b20bc4f1a56f51a8d092602c (plain)
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
30
31
32
33
34
35
36
37
38
#	$OpenBSD: Makefile,v 1.9 2004/05/02 18:12:36 miod Exp $

LIB=	event
SRCS=	buffer.c evbuffer.c event.c kqueue.c poll.c select.c signal.c
HDRS=	event.h
MAN=	event.3
MLINKS=	event.3 event_init.3 event.3 event_dispatch.3 event.3 event_loop.3 \
	event.3 event_loopexit.3 event.3 event_set.3 event.3 event_add.3 event.3 \
	event_del.3 event.3 event_once.3 event.3 event_pending.3 event.3 \
	event_initialized.3 event.3 evtimer_set.3 event.3 evtimer_add.3 event.3 \
	evtimer_del.3 event.3 evtimer_pending.3 event.3 evtimer_initialized.3 \
	event.3 signal_set.3 event.3 signal_add.3 event.3 signal_del.3 \
	event.3 signal_pending.3 event.3 signal_initialized.3 event.3 \
	bufferevent_new.3 event.3 bufferevent_free.3 event.3 bufferevent_write.3 \
	event.3 bufferevent_write_buffer.3 event.3 bufferevent_read.3 event.3 \
	bufferevent_enable.3 event.3 bufferevent_disable.3 event.3 \
	bufferevent_settimeout.3 event.3 evbuffer_new.3 event.3 evbuffer_free.3 \
	event.3 evbuffer_add.3 event.3 evbuffer_add_buffer.3 event.3 \
	evbuffer_add_printf.3 event.3 evbuffer_drain.3 event.3 evbuffer_write.3 \
	event.3 evbuffer_read.3 event.3 evbuffer_find.3 

CFLAGS+= -I${.CURDIR} \
	-DHAVE_WORKING_KQUEUE \
	-DHAVE_SELECT \
	-DHAVE_POLL \
	-DHAVE_SYS_TIME_H \
	-DHAVE_STDARG_H \
	-DHAVE_UNISTD_H

NOPIC=

includes:
	@cd ${.CURDIR}; for i in ${HDRS}; do \
	  cmp -s $$i ${DESTDIR}/usr/include/$$i || \
	  ${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) $$i \
	  ${DESTDIR}/usr/include; done

.include <bsd.lib.mk>