DEADSOFTWARE

Port, TODO
[bbcp.git] / Trurl-based / _Linux_ / Lin / Mod / gen-Net / Makefile
1 # This is GNU Makefile
2 # BSD GNU
3 # $@ $@
4 # ${.ALLSRC} $^
5 # ${.IMPSRC} $<
7 all: Net.txt dumphstrerrno
9 PY = python2.7
10 DEFS = defs-socket defs-so
12 Net.txt: Net.txt.templ ${DEFS} defs-netdb defs-in defs-sock
13 ${PY} ./untempl.py Net.txt.templ $@
15 defs-socket:
16 ./dumpdefs.py 3 1 i /usr/include/i386-linux-gnu/bits/socket.h | grep " PF_" > $@
17 ./dumpdefs.py 3 1 i /usr/include/i386-linux-gnu/bits/socket.h | grep " SOMAXCONN" >> $@
19 defs-so:
20 ./dumpdefs.py 3 1 s /usr/include/asm-generic/socket.h | grep " SO_" > $@
22 clean:
23 rm -f Net.txt ${DEFS} dumphstrerrno