aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2006-07-27 04:54:03 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2006-07-27 04:54:03 +0000
commitad82a90b810fb3613cf56103f61eb7fb5fcc8f1f (patch)
tree67ccfcc51ac0b6df8cc93122d53a5a9563361570 /lib
parentb8f97747317ca65f926f9fea8dbe358a7e7c3a4a (diff)
downloadsrc-ad82a90b810fb3613cf56103f61eb7fb5fcc8f1f.tar.gz
src-ad82a90b810fb3613cf56103f61eb7fb5fcc8f1f.zip
Respect MK_INET6_SUPPORT.
Notes
Notes: svn path=/head/; revision=160737
Diffstat (limited to 'lib')
-rw-r--r--lib/libfetch/Makefile5
-rw-r--r--lib/libftpio/Makefile7
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/libfetch/Makefile b/lib/libfetch/Makefile
index bcd521409dd2..84eb6e4435fb 100644
--- a/lib/libfetch/Makefile
+++ b/lib/libfetch/Makefile
@@ -4,13 +4,16 @@
LIB= fetch
CFLAGS+= -I.
-CFLAGS+= -DINET6
SRCS= fetch.c common.c ftp.c http.c file.c \
ftperr.h httperr.h
INCS= fetch.h
MAN= fetch.3
CLEANFILES= ftperr.h httperr.h
+.if ${MK_INET6_SUPPORT} != "no"
+CFLAGS+= -DINET6
+.endif
+
.if ${MK_OPENSSL} != "no"
CFLAGS+= -DWITH_SSL
DPADD= ${LIBSSL} ${LIBCRYPTO}
diff --git a/lib/libftpio/Makefile b/lib/libftpio/Makefile
index b803db8519b8..17b412c0c1b7 100644
--- a/lib/libftpio/Makefile
+++ b/lib/libftpio/Makefile
@@ -1,15 +1,20 @@
# $FreeBSD$
+.include <bsd.own.mk>
+
LIB= ftpio
SHLIB_MAJOR= 6
SRCS= ftpio.c ftperr.c
INCS= ftpio.h
CFLAGS+= -I${.CURDIR} -Wall
-CFLAGS+= -DINET6
MAN= ftpio.3
CLEANFILES= ftperr.c
+.if ${MK_INET6_SUPPORT} != "no"
+CFLAGS+= -DINET6
+.endif
+
ftperr.c: ftp.errors
@echo '#include <stdio.h>' > ${.TARGET}
@echo '#include "ftpio.h"' >> ${.TARGET}