Makefile 450 B

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