Respect MK_INET6_SUPPORT.

This commit is contained in:
Yaroslav Tykhiy 2006-07-27 04:54:03 +00:00
parent b8f9774731
commit ad82a90b81
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160737
2 changed files with 10 additions and 2 deletions

View File

@ -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}

View File

@ -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}