15368db27SMaxim KonovalovPROG= unix_cmsg 20d49655fSMaxim SobolevSRCS= ${AUTOSRCS} unix_cmsg.c uc_common.h uc_common.c \ 30d49655fSMaxim Sobolev t_generic.h t_generic.c t_peercred.h t_peercred.c \ 40d49655fSMaxim Sobolev t_cmsgcred.h t_cmsgcred.c t_sockcred.h t_sockcred.c \ 579847968SMaxim Sobolev t_cmsgcred_sockcred.h t_cmsgcred_sockcred.c t_cmsg_len.h t_cmsg_len.c \ 679847968SMaxim Sobolev uc_check_time.h uc_check_time.c 70d49655fSMaxim SobolevCLEANFILES+= ${AUTOSRCS} 83bdf7758SWarner LoshMAN= 9*e310a67bSAlan SomersCFLAGS+= -I${.CURDIR} -I${.OBJDIR} 105368db27SMaxim KonovalovWARNS?= 3 115368db27SMaxim Konovalov 120d49655fSMaxim SobolevREXP_bintime= 's|%%TTYPE%%|bintime|g ; s|%%DTYPE%%|bintime|g ; \ 130d49655fSMaxim Sobolev s|%%SCM_TTYPE%%|SCM_BINTIME|g ; \ 140d49655fSMaxim Sobolev s|%%MAJ_MEMB%%|sec|g ; s|%%MIN_MEMB%%|frac|g' 150d49655fSMaxim SobolevREXP_timeval= 's|%%TTYPE%%|timeval|g ; s|%%DTYPE%%|timeval|g ; \ 160d49655fSMaxim Sobolev s|%%SCM_TTYPE%%|SCM_TIMESTAMP|g ; \ 170d49655fSMaxim Sobolev s|%%MAJ_MEMB%%|tv_sec|g ; s|%%MIN_MEMB%%|tv_usec|g' 18339efd75SMaxim SobolevREXP_timespec_real= 's|%%TTYPE%%|timespec_real|g ; s|%%DTYPE%%|timespec|g ; \ 19339efd75SMaxim Sobolev s|%%SCM_TTYPE%%|SCM_REALTIME|g ; \ 20339efd75SMaxim Sobolev s|%%MAJ_MEMB%%|tv_sec|g ; s|%%MIN_MEMB%%|tv_nsec|g' 21339efd75SMaxim SobolevREXP_timespec_mono= 's|%%TTYPE%%|timespec_mono|g ; s|%%DTYPE%%|timespec|g ; \ 22339efd75SMaxim Sobolev s|%%SCM_TTYPE%%|SCM_MONOTONIC|g ; \ 23339efd75SMaxim Sobolev s|%%MAJ_MEMB%%|tv_sec|g ; s|%%MIN_MEMB%%|tv_nsec|g' 240d49655fSMaxim Sobolev 25339efd75SMaxim Sobolev.for ttype in bintime timeval timespec_real timespec_mono 260d49655fSMaxim SobolevAUTOSRCS+= t_${ttype}.h t_${ttype}.c 270d49655fSMaxim Sobolev 280d49655fSMaxim Sobolevt_${ttype}.o: t_${ttype}.c t_${ttype}.h 290d49655fSMaxim Sobolev 300d49655fSMaxim Sobolevt_${ttype}.c: t_xxxtime.c.in 310d49655fSMaxim Sobolev sed ${REXP_${ttype}} < ${.ALLSRC} > ${.TARGET} 320d49655fSMaxim Sobolev 330d49655fSMaxim Sobolevt_${ttype}.h: t_xxxtime.h.in 340d49655fSMaxim Sobolev sed ${REXP_${ttype}} < ${.ALLSRC} > ${.TARGET} 350d49655fSMaxim Sobolev.endfor 360d49655fSMaxim Sobolev 375368db27SMaxim Konovalov.include <bsd.prog.mk> 38