Respect MK_INET6_SUPPORT.
This commit is contained in:
parent
2f036ab081
commit
59f55ad58c
@ -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}
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user