Makefile 467 B

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