Makefile 532 B

1234567891011121314151617181920212223
  1. # This is BSD Makefile
  2. # BSD GNU
  3. # ${.TARGET} $@
  4. # ${.ALLSRC} $^
  5. # ${.IMPSRC} $<
  6. INCDIR ?= /usr/include
  7. all: Termios.txt
  8. PY = python2.7
  9. DEFS = defs-termios
  10. Termios.txt: Termios.txt.templ ${DEFS}
  11. ${PY} ./untempl.py Termios.txt.templ ${.TARGET}
  12. defs-termios:
  13. ./dumpdefs.py 2 0 i ${INCDIR}/termios.h > ${.TARGET}
  14. ./dumpdefs.py 2 1 i ${INCDIR}/termios.h | grep -v compat >> ${.TARGET}
  15. ./dumpdefs.py 2 2 i ${INCDIR}/termios.h | grep -v compat | grep -v CHWFLOW >> ${.TARGET}
  16. clean:
  17. rm -f Termios.txt ${DEFS}