aboutsummaryrefslogblamecommitdiff
path: root/lib/libftpio/Makefile
blob: a06a75e9f060084848edb917c044c2488f4571df (plain) (tree)
1
2
3
4
5
6
7
8
9
           
 
                     
                 

                 
                                
                       
                                  
                       
                       
                        
 













                                                                       
                     
# $FreeBSD$

LIB=		ftpio
SHLIB_MAJOR=	5
SHLIB_MINOR=	0

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>