1PROG= unix_cmsg 2SRCS= ${AUTOSRCS} unix_cmsg.c uc_common.h uc_common.c \ 3 t_generic.h t_generic.c t_peercred.h t_peercred.c \ 4 t_cmsgcred.h t_cmsgcred.c t_sockcred.h t_sockcred.c \ 5 t_cmsgcred_sockcred.h t_cmsgcred_sockcred.c t_cmsg_len.h t_cmsg_len.c \ 6 uc_check_time.h uc_check_time.c 7CLEANFILES+= ${AUTOSRCS} 8MAN= 9CFLAGS+= -I${.CURDIR} -I${.OBJDIR} 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' 18REXP_timespec_real= 's|%%TTYPE%%|timespec_real|g ; s|%%DTYPE%%|timespec|g ; \ 19 s|%%SCM_TTYPE%%|SCM_REALTIME|g ; \ 20 s|%%MAJ_MEMB%%|tv_sec|g ; s|%%MIN_MEMB%%|tv_nsec|g' 21REXP_timespec_mono= 's|%%TTYPE%%|timespec_mono|g ; s|%%DTYPE%%|timespec|g ; \ 22 s|%%SCM_TTYPE%%|SCM_MONOTONIC|g ; \ 23 s|%%MAJ_MEMB%%|tv_sec|g ; s|%%MIN_MEMB%%|tv_nsec|g' 24 25.for ttype in bintime timeval timespec_real timespec_mono 26AUTOSRCS+= t_${ttype}.h t_${ttype}.c 27 28t_${ttype}.o: t_${ttype}.c t_${ttype}.h 29 30t_${ttype}.c: t_xxxtime.c.in 31 sed ${REXP_${ttype}} < ${.ALLSRC} > ${.TARGET} 32 33t_${ttype}.h: t_xxxtime.h.in 34 sed ${REXP_${ttype}} < ${.ALLSRC} > ${.TARGET} 35.endfor 36 37.include <bsd.prog.mk> 38