Makefile 374 B

123456789101112131415161718192021
  1. # This is GNU 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 $@
  12. defs-termios:
  13. ./dumpdefs.py 2 0 i ${INCDIR}/i386-linux-gnu/bits/termios.h > $@
  14. clean:
  15. rm -f Termios.txt ${DEFS}