xref: /minix3/tests/lib/libc/net/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc# $NetBSD: Makefile,v 1.10 2014/01/09 02:18:10 christos Exp $
211be35a1SLionel Sambuc
311be35a1SLionel Sambuc.include <bsd.own.mk>
411be35a1SLionel Sambuc
511be35a1SLionel SambucMKMAN=	no
611be35a1SLionel Sambuc
711be35a1SLionel Sambuc#LSC: Unsupported on MINIX
811be35a1SLionel Sambuc#TESTS_SUBDIRS+=	getaddrinfo
9*0a6a1f1dSLionel SambucFILES+=hosts resolv.conf
1011be35a1SLionel Sambuc
1111be35a1SLionel SambucTESTSDIR=	${TESTSBASE}/lib/libc/net
1211be35a1SLionel Sambuc
1311be35a1SLionel SambucTESTS_C+=	t_getprotoent
1411be35a1SLionel Sambuc#LSC: Unsupported on MINIX
1511be35a1SLionel Sambuc#TESTS_C+=	t_ether_aton
1611be35a1SLionel Sambuc
1711be35a1SLionel Sambuc#SRCS.t_ether_aton=	aton_ether_subr.c t_ether_aton.c
1811be35a1SLionel Sambuc
1911be35a1SLionel Sambucaton_ether_subr.c: gen_ether_subr ${NETBSDSRCDIR}/sys/net/if_ethersubr.c
2011be35a1SLionel Sambuc	${HOST_SH} ${.ALLSRC} ${.TARGET}
2111be35a1SLionel Sambuc
2211be35a1SLionel SambucTESTS_SH+=	t_nsdispatch
2311be35a1SLionel SambucTESTS_SH+=	t_protoent
2411be35a1SLionel SambucTESTS_SH+=	t_servent
2584d9c625SLionel SambucTESTS_SH+=	t_hostent
2611be35a1SLionel Sambuc
2711be35a1SLionel SambucBINDIR=		${TESTSDIR}
2811be35a1SLionel Sambuc
2911be35a1SLionel Sambuc#LSC: Unsupported on MINIX
3011be35a1SLionel Sambuc#PROGS+=		h_nsd_recurse
3111be35a1SLionel SambucPROGS+=		h_protoent
3211be35a1SLionel SambucPROGS+=		h_servent
3384d9c625SLionel SambucPROGS+=		h_hostent
34*0a6a1f1dSLionel SambucPROGS+=		h_dns_server
3584d9c625SLionel SambucCPPFLAGS.h_hostent.c += -I${NETBSDSRCDIR}/lib/libc/net
3684d9c625SLionel Sambuc
3784d9c625SLionel Sambuc# For easy debugging, without installing libc
3884d9c625SLionel Sambuc#.PATH.c:${NETBSDSRCDIR}/lib/libc/net
3984d9c625SLionel Sambuc#SRCS.h_hostent = h_hostent.c gethnamaddr.c
4084d9c625SLionel Sambuc#DBG=-g3
4111be35a1SLionel Sambuc
4211be35a1SLionel SambucLDADD.h_nsd_recurse+=	-lpthread
4311be35a1SLionel Sambuc
4411be35a1SLionel SambucCLEANFILES+=	aton_ether_subr.c
4511be35a1SLionel Sambuc
4611be35a1SLionel Sambuc.include <bsd.test.mk>
47