Makefile 426 B

12345678910111213141516171819202122
  1. # This is BSD Makefile
  2. # BSD GNU
  3. # ${.TARGET} $@
  4. # ${.ALLSRC} $^
  5. # ${.IMPSRC} $<
  6. all: mkioctl Ioctl.txt
  7. PY = python2.7
  8. DEFS = defs-ttycom defs-ioctl
  9. defs-ioctl: mkioctl
  10. ./mkioctl > ${.TARGET}
  11. Ioctl.txt: Ioctl.txt.templ ${DEFS}
  12. ${PY} ./untempl.py Ioctl.txt.templ ${.TARGET}
  13. defs-ttycom:
  14. ./dumpdefs.py 3 1 s /usr/include/sys/ttycom.h | grep TIOCM_ > ${.TARGET}
  15. clean:
  16. rm -f mkioctl Ioctl.txt ${DEFS}