blob: e9c0241b029f0dd6ad2430aabc743f95f7621849 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
# $OpenBSD: Makefile,v 1.30 2010/04/21 21:02:46 nicm Exp $
LIB= event
WANTLINT=
SRCS= buffer.c evbuffer.c event.c event_tagging.c evutil.c kqueue.c \
log.c poll.c select.c signal.c
HDRS= event.h evutil.h
MAN= event.3
MLINKS= event.3 bufferevent_base_set.3 \
event.3 bufferevent_disable.3 \
event.3 bufferevent_enable.3 \
event.3 bufferevent_free.3 \
event.3 bufferevent_new.3 \
event.3 bufferevent_read.3 \
event.3 bufferevent_settimeout.3 \
event.3 bufferevent_write.3 \
event.3 bufferevent_write_buffer.3 \
event.3 evbuffer_add.3 \
event.3 evbuffer_add_buffer.3 \
event.3 evbuffer_add_printf.3 \
event.3 evbuffer_add_vprintf.3 \
event.3 evbuffer_drain.3 \
event.3 evbuffer_find.3 \
event.3 evbuffer_free.3 \
event.3 evbuffer_new.3 \
event.3 evbuffer_read.3 \
event.3 evbuffer_readline.3 \
event.3 evbuffer_write.3 \
event.3 event_add.3 \
event.3 event_base_dispatch.3 \
event.3 event_base_free.3 \
event.3 event_base_loop.3 \
event.3 event_base_loopbreak.3 \
event.3 event_base_loopexit.3 \
event.3 event_base_once.3 \
event.3 event_base_set.3 \
event.3 event_del.3 \
event.3 event_dispatch.3 \
event.3 event_init.3 \
event.3 event_initialized.3 \
event.3 event_loop.3 \
event.3 event_loopbreak.3 \
event.3 event_loopexit.3 \
event.3 event_once.3 \
event.3 event_pending.3 \
event.3 event_priority_init.3 \
event.3 event_priority_set.3 \
event.3 event_set.3 \
event.3 evtimer_add.3 \
event.3 evtimer_del.3 \
event.3 evtimer_initialized.3 \
event.3 evtimer_pending.3 \
event.3 evtimer_set.3 \
event.3 signal_add.3 \
event.3 signal_del.3 \
event.3 signal_initialized.3 \
event.3 signal_pending.3 \
event.3 signal_set.3
CFLAGS+= -I${.CURDIR} -DNDEBUG \
-DHAVE_CLOCK_GETTIME \
-DHAVE_CLOCK_MONOTONIC \
-DHAVE_FCNTL_H \
-DHAVE_FD_MASK \
-DHAVE_GETADDRINFO \
-DHAVE_GETEGID \
-DHAVE_GETEUID \
-DHAVE_GETNAMEINFO \
-DHAVE_GETTIMEOFDAY \
-DHAVE_INTTYPES_H \
-DHAVE_ISSETUGID \
-DHAVE_POLL \
-DHAVE_SELECT \
-DHAVE_SETFD \
-DHAVE_SIGACTION \
-DHAVE_STDARG_H \
-DHAVE_STDINT_H \
-DHAVE_STDLIB_H \
-DHAVE_STRLCPY \
-DHAVE_STRSEP \
-DHAVE_STRTOK_R \
-DHAVE_STRTOLL \
-DHAVE_STRUCT_IN6_ADDR \
-DHAVE_SYS_IOCTL_H \
-DHAVE_SYS_PARAM_H \
-DHAVE_SYS_QUEUE_H \
-DHAVE_SYS_SELECT_H \
-DHAVE_SYS_SOCKET_H \
-DHAVE_SYS_STAT_H \
-DHAVE_SYS_TIME_H \
-DHAVE_SYS_TYPES_H \
-DHAVE_TAILQFOREACH \
-DHAVE_UNISTD_H \
-DHAVE_VASPRINTF \
-DHAVE_WORKING_KQUEUE
CDIAGFLAGS= -Wall
#CDIAGFLAGS+= -Werror
CDIAGFLAGS+= -Wstrict-prototypes
CDIAGFLAGS+= -Wmissing-prototypes
CDIAGFLAGS+= -Wmissing-declarations
CDIAGFLAGS+= -Wshadow
CDIAGFLAGS+= -Wpointer-arith
CDIAGFLAGS+= -Wcast-qual
CDIAGFLAGS+= -Wsign-compare
CDIAGFLAGS+= -Wcast-align
CDIAGFLAGS+= -Wbad-function-cast
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>
|