Initial import from FreeBSD RELENG_4:
[dragonfly.git] / usr.sbin / i4b / isdnd / Makefile
1 # $FreeBSD: src/usr.sbin/i4b/isdnd/Makefile,v 1.3.2.3 2001/08/01 17:45:03 obrien Exp $
2
3 PROG=   isdnd
4 MAN=    isdnd.rc.5 isdnd.rates.5 isdnd.acct.5 isdnd.8
5 SRCS=   rc_parse.y rc_scan.l main.c rc_config.c log.c curses.c  \
6         process.c rates.c msghdl.c fsm.c support.c timer.c      \
7         exec.c dial.c monitor.c pcause.c controller.c alias.c   \
8         y.tab.h holiday.c
9
10 COPTS+= -I. -I${.CURDIR}/../isdnmonitor -I${.CURDIR}/../isdntel -I${.CURDIR}
11
12 # compile debug support
13 COPTS+= -DDEBUG
14
15 # enable rtprio usage
16 COPTS+= -DUSE_RTPRIO
17
18 .include "${.CURDIR}/../Makefile.inc"
19
20 .if !defined(I4B_WITHOUT_CURSES)
21 COPTS+= -DUSE_CURSES
22 DPADD=  ${LIBCURSES}
23 LDADD=  -lcurses
24 .endif
25
26 .if defined(I4B_EXTERNAL_MONITOR)
27 COPTS+= -DI4B_EXTERNAL_MONITOR
28 .if defined(I4B_NOTCPIP_MONITOR)
29 COPTS+= -DI4B_NOTCPIP_MONITOR
30 .endif
31 .endif
32
33 .include <bsd.prog.mk>