Makefile 608 B

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