NetBSD/usr.sbin/isdn/isdnd/Makefile

40 lines
909 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.6 2006/05/11 08:55:10 mrg Exp $
PROG = isdnd
SRCS = rc_parse.y rc_scan.l main.c rc_config.c log.c curses.c \
process.c rates.c msghdl.c fsm.c support.c timer.c \
exec.c dial.c monitor.c pcause.c controller.c alias.c \
holiday.c
2001-12-31 22:41:37 +03:00
CPPFLAGS+= -I${.CURDIR}/../isdnmonitor -I${.CURDIR}/../isdntel
CPPFLAGS+= -I${.CURDIR} -I${.OBJDIR}
# compile debug support
2001-01-10 21:11:05 +03:00
CPPFLAGS+= -DDEBUG
MAN = isdnd.8 isdnd.rc.5 isdnd.rates.5 isdnd.acct.5
LDADD+=-ly -ll
YHEADER=1
.include <bsd.prog.mk>
.if !defined(I4B_WITHOUT_CURSES)
2001-01-10 21:11:05 +03:00
CPPFLAGS+= -DUSE_CURSES
LDADD += -lcurses
LDADD += -ltermlib
.endif
.if defined(I4B_EXTERNAL_MONITOR)
2001-01-10 21:11:05 +03:00
CPPFLAGS+= -DI4B_EXTERNAL_MONITOR
.if defined(I4B_NOTCPIP_MONITOR)
2001-01-10 21:11:05 +03:00
CPPFLAGS+= -DI4B_NOTCPIP_MONITOR
.endif
.endif
.if ${HAVE_GCC} == 4
COPTS.alias.c+= -Wno-pointer-sign
COPTS.holiday.c+= -Wno-pointer-sign
COPTS.monitor.c+= -Wno-pointer-sign
.endif