diff options
-rw-r--r-- | lib/libfetch/Makefile | 5 | ||||
-rw-r--r-- | lib/libftpio/Makefile | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/libfetch/Makefile b/lib/libfetch/Makefile index bcd5214..84eb6e4 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 b803db8..17b412c 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} |