1# $FreeBSD$ 2 3PROG= unix_cmsg 4SRCS= ${AUTOSRCS} unix_cmsg.c uc_common.h uc_common.c \ 5 t_generic.h t_generic.c t_peercred.h t_peercred.c \ 6 t_cmsgcred.h t_cmsgcred.c t_sockcred.h t_sockcred.c \ 7 t_cmsgcred_sockcred.h t_cmsgcred_sockcred.c t_cmsg_len.h t_cmsg_len.c 8CLEANFILES+= ${AUTOSRCS} 9MAN= 10WARNS?= 3 11 12REXP_bintime= 's|%%TTYPE%%|bintime|g ; s|%%DTYPE%%|bintime|g ; \ 13 s|%%SCM_TTYPE%%|SCM_BINTIME|g ; \ 14 s|%%MAJ_MEMB%%|sec|g ; s|%%MIN_MEMB%%|frac|g' 15REXP_timeval= 's|%%TTYPE%%|timeval|g ; s|%%DTYPE%%|timeval|g ; \ 16 s|%%SCM_TTYPE%%|SCM_TIMESTAMP|g ; \ 17 s|%%MAJ_MEMB%%|tv_sec|g ; s|%%MIN_MEMB%%|tv_usec|g' 18 19.for ttype in bintime timeval 20AUTOSRCS+= t_${ttype}.h t_${ttype}.c 21 22t_${ttype}.o: t_${ttype}.c t_${ttype}.h 23 24t_${ttype}.c: t_xxxtime.c.in 25 sed ${REXP_${ttype}} < ${.ALLSRC} > ${.TARGET} 26 27t_${ttype}.h: t_xxxtime.h.in 28 sed ${REXP_${ttype}} < ${.ALLSRC} > ${.TARGET} 29.endfor 30 31.include <bsd.prog.mk> 32