DEADSOFTWARE

synchronized with https://github.com/aixp/BlackBox
[bbcp.git] / BlackBox / _Linux_ / Lin / Mod / gen-Ioctl / Makefile
1 # This is GNU Makefile
2 # BSD GNU
3 # ${.TARGET} $@
4 # ${.ALLSRC} $^
5 # ${.IMPSRC} $<
7 INCDIR ?= /usr/include
9 all: mkioctl Ioctl.txt
11 PY = python2.7
12 DEFS = defs-tiocm defs-ioctl
14 defs-ioctl: mkioctl
15 ./mkioctl > $@
17 Ioctl.txt: Ioctl.txt.templ ${DEFS} libver osname machine
18 ${PY} ./untempl.py Ioctl.txt.templ $@
20 defs-tiocm:
21 ./dumpdefs.py 2 0 s ${INCDIR}/i386-linux-gnu/bits/ioctl-types.h | grep TIOCM_ > $@
23 clean:
24 rm -f mkioctl Ioctl.txt ${DEFS}