Makefile 353 B

12345678910111213141516171819
  1. # This is GNU Makefile
  2. # BSD GNU
  3. # ${.TARGET} $@
  4. # ${.ALLSRC} $^
  5. # ${.IMPSRC} $<
  6. all: Termios.txt
  7. PY = python2.7
  8. DEFS = defs-termios
  9. Termios.txt: Termios.txt.templ ${DEFS}
  10. ${PY} ./untempl.py Termios.txt.templ $@
  11. defs-termios:
  12. ./dumpdefs.py 2 0 i /usr/include/i386-linux-gnu/bits/termios.h > $@
  13. clean:
  14. rm -f Termios.txt ${DEFS}