define IPv6 unless not building INET6.

This commit is contained in:
mrg 2019-01-03 23:39:47 +00:00
parent f7b24ba1bb
commit 478d07119d
4 changed files with 20 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2008/10/14 23:37:19 cube Exp $
# $NetBSD: Makefile,v 1.3 2019/01/03 23:39:47 mrg Exp $
.include <bsd.own.mk>
@ -23,6 +23,10 @@ FILESDIR= ${PROXYMANAGERDIR}
LDADD+= -lXt -lSM -lICE -lXext -lX11
DPADD+= ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11}
.if (${USE_INET6} != "no")
CPPFLAGS+= -DIPv6
.endif
.PATH: ${X11SRCDIR.${PROG}}
.include <bsd.x11.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2017/03/04 23:23:21 mrg Exp $
# $NetBSD: Makefile,v 1.7 2019/01/03 23:39:47 mrg Exp $
.include <bsd.own.mk>
@ -10,6 +10,10 @@ CPPFLAGS+= -DHAVE_STRLCPY
CPPFLAGS.gethost.c= ${X11FLAGS.CONNECTION}
CPPFLAGS.parsedpy.c= ${X11FLAGS.CONNECTION}
.if (${USE_INET6} != "no")
CPPFLAGS+= -DIPv6
.endif
CWARNFLAGS.clang= -Wno-empty-body
LDADD+= -lXau -lXmuu -lXt -lSM -lICE -lXext -lX11

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2013/05/31 07:22:21 mrg Exp $
# $NetBSD: Makefile,v 1.3 2019/01/03 23:39:47 mrg Exp $
.include <bsd.own.mk>
@ -6,6 +6,10 @@ PROG= xhost
CPPFLAGS+=${X11FLAGS.CONNECTION} -DBSD44SOCKETS
.if (${USE_INET6} != "no")
CPPFLAGS+= -DIPv6
.endif
LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11
DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2008/09/13 04:32:30 cube Exp $
# $NetBSD: Makefile,v 1.4 2019/01/03 23:39:47 mrg Exp $
.include <bsd.own.mk>
@ -19,6 +19,10 @@ CONN_DEFINES= ${X11FLAGS.CONNECTION} -DICE_t
CPPFLAGS.sm_manager.c= $(CONN_DEFINES)
CPPFLAGS.sm_genid.c= $(CONN_DEFINES)
.if (${USE_INET6} != "no")
CPPFLAGS+= -DIPv6
.endif
LIBDPLIBS=ICE ${.CURDIR}/../libICE
# XXXMRG