summaryrefslogtreecommitdiffstats
path: root/lib/libftpio/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libftpio/Makefile')
-rw-r--r--lib/libftpio/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/libftpio/Makefile b/lib/libftpio/Makefile
new file mode 100644
index 0000000..4cce5d8
--- /dev/null
+++ b/lib/libftpio/Makefile
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+LIB= ftpio
+SHLIB_MAJOR= 5
+
+SRCS= ftpio.c ftperr.c
+INCS= ftpio.h
+CFLAGS+= -I${.CURDIR} -Wall
+CFLAGS+= -DINET6
+MAN= ftpio.3
+CLEANFILES= ftperr.c
+
+ftperr.c: ftp.errors
+ @echo '#include <stdio.h>' > ${.TARGET}
+ @echo '#include "ftpio.h"' >> ${.TARGET}
+ @echo "struct ftperr ftpErrList[] = {" \ >> ${.TARGET}
+ @cat ${.ALLSRC} \
+ | grep -v ^# \
+ | sort \
+ | while read NUM STRING; do \
+ echo " { $${NUM}, \"$${STRING}\" },"; \
+ done >> ${.TARGET}
+ @echo "};" >> ${.TARGET}
+ @echo -n "int const ftpErrListLength = " >> ${.TARGET}
+ @echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET}
+
+.include <bsd.lib.mk>
OpenPOWER on IntegriCloud