Home | History | Annotate | Line # | Download | only in net
      1 # $NetBSD: Makefile,v 1.14 2020/06/01 01:03:21 kamil Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 MKMAN=	no
      6 
      7 TESTS_SUBDIRS+=	getaddrinfo
      8 FILES+=hosts resolv.conf
      9 
     10 TESTSDIR=	${TESTSBASE}/lib/libc/net
     11 
     12 TESTS_C+=	t_getprotoent
     13 TESTS_C+=	t_ether_aton
     14 TESTS_C+=	t_if_nametoindex
     15 
     16 SRCS.t_ether_aton=	aton_ether_subr.c t_ether_aton.c
     17 
     18 aton_ether_subr.c: gen_ether_subr ${NETBSDSRCDIR}/sys/net/if_ethersubr.c
     19 	${HOST_SH} ${.ALLSRC} ${.TARGET}
     20 
     21 TESTS_SH+=	t_nsdispatch
     22 TESTS_SH+=	t_protoent
     23 TESTS_SH+=	t_servent
     24 TESTS_SH+=	t_hostent
     25 
     26 BINDIR=		${TESTSDIR}
     27 
     28 PROGS+=		h_nsd_recurse
     29 PROGS+=		h_protoent
     30 PROGS+=		h_servent
     31 PROGS+=		h_hostent
     32 PROGS+=		h_dns_server
     33 CPPFLAGS.h_hostent.c += -I${NETBSDSRCDIR}/lib/libc/net
     34 
     35 # For easy debugging, without installing libc
     36 #.PATH.c:${NETBSDSRCDIR}/lib/libc/net
     37 #SRCS.h_hostent = h_hostent.c gethnamaddr.c
     38 #DBG=-g3
     39 
     40 LDADD.h_nsd_recurse+=	-lpthread
     41 
     42 CLEANFILES+=	aton_ether_subr.c
     43 
     44 .include <bsd.test.mk>
     45