-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (26 loc) · 854 Bytes
/
Makefile
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
#
# This is an OpenBSD-specific Makefile.
# To build oicb under other OSes, please use CMake or write your own Makefile.
#
PROG = oicb
SRCS = chat.c history.c oicb.c private.c utf8.c
DPADD += ${LIBREADLINE} ${LIBCURSES}
LDADD += -lreadline -lcurses
BINDIR ?= /usr/local/bin
MANDIR ?= /usr/local/man/man
CFLAGS += -DHAVE_PLEDGE -DHAVE_UNVEIL
CFLAGS += -Wall -Wextra -Wno-unused
CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
# debugging helpers
.PHONY: srv tcpdump client1 client2
client1: all
./${PROG} -d -t 3 tester@localhost:icb hall
client2: all
./${PROG} -d -d -t 0 tester2@localhost:icb hall
# relies on net/icbd being installed and set up
srv:
icbd -d -v -v -v -C
tcpdump:
$${SUDO:-doas} tcpdump -ni lo0 -Xs1500 port icb
.include <bsd.prog.mk>