DEADSOFTWARE

"/usr/include" -> INCDIR
[bbcp.git] / new / _OpenBSD_ / Lin / Mod / gen-Termios / Makefile
1 # This is BSD Makefile
2 # BSD GNU
3 # ${.TARGET} $@
4 # ${.ALLSRC} $^
5 # ${.IMPSRC} $<
7 INCDIR ?= /usr/include
9 all: Termios.txt
11 PY = python2.7
12 DEFS = defs-termios
14 Termios.txt: Termios.txt.templ ${DEFS}
15 ${PY} ./untempl.py Termios.txt.templ ${.TARGET}
17 defs-termios:
18 ./dumpdefs.py 2 0 i ${INCDIR}/termios.h > ${.TARGET}
19 ./dumpdefs.py 2 1 i ${INCDIR}/termios.h | grep -v compat >> ${.TARGET}
20 ./dumpdefs.py 2 2 i ${INCDIR}/termios.h | grep -v compat | grep -v CHWFLOW >> ${.TARGET}
22 clean:
23 rm -f Termios.txt ${DEFS}