DEADSOFTWARE

4f00e45d31a47438386c1b85f8ea535463699135
[bbcp.git] / BlackBox / _Linux_ / Lin / Mod / gen-Net / Makefile
1 # This is GNU Makefile
2 # BSD GNU
3 # ${.TARGET} $@
4 # ${.ALLSRC} $^
5 # ${.IMPSRC} $<
7 INCDIR ?= /usr/include
9 all: Net.txt dumphstrerrno
11 PY = python2.7
12 DEFS = defs-socket defs-so
14 Net.txt: Net.txt.templ ${DEFS} defs-netdb defs-in defs-sock
15 ${PY} ./untempl.py Net.txt.templ $@
17 defs-socket:
18 ./dumpdefs.py 3 1 i ${INCDIR}/i386-linux-gnu/bits/socket.h | grep " PF_" > $@
19 ./dumpdefs.py 3 1 i ${INCDIR}/i386-linux-gnu/bits/socket.h | grep " SOMAXCONN" >> $@
21 defs-so:
22 ./dumpdefs.py 3 1 s ${INCDIR}/asm-generic/socket.h | grep " SO_" > $@
24 clean:
25 rm -f Net.txt ${DEFS} dumphstrerrno