Home | History | Annotate | Line # | Download | only in net
Makefile revision 1.10
      1 # $NetBSD: Makefile,v 1.10 2014/01/09 02:18:10 christos 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 
     15 SRCS.t_ether_aton=	aton_ether_subr.c t_ether_aton.c
     16 
     17 aton_ether_subr.c: gen_ether_subr ${NETBSDSRCDIR}/sys/net/if_ethersubr.c
     18 	${HOST_SH} ${.ALLSRC} ${.TARGET}
     19 
     20 TESTS_SH+=	t_nsdispatch
     21 TESTS_SH+=	t_protoent
     22 TESTS_SH+=	t_servent
     23 TESTS_SH+=	t_hostent
     24 
     25 BINDIR=		${TESTSDIR}
     26 
     27 PROGS+=		h_nsd_recurse
     28 PROGS+=		h_protoent
     29 PROGS+=		h_servent
     30 PROGS+=		h_hostent
     31 PROGS+=		h_dns_server
     32 CPPFLAGS.h_hostent.c += -I${NETBSDSRCDIR}/lib/libc/net
     33 
     34 # For easy debugging, without installing libc
     35 #.PATH.c:${NETBSDSRCDIR}/lib/libc/net
     36 #SRCS.h_hostent = h_hostent.c gethnamaddr.c
     37 #DBG=-g3
     38 
     39 LDADD.h_nsd_recurse+=	-lpthread
     40 
     41 CLEANFILES+=	aton_ether_subr.c
     42 
     43 .include <bsd.test.mk>
     44