DEADSOFTWARE

Port, TODO
[bbcp.git] / Trurl-based / _OpenBSD_ / Lin / Mod / gen-Net / Makefile
1 # This is BSD Makefile
2 # BSD GNU
3 # ${.TARGET} $@
4 # ${.ALLSRC} $^
5 # ${.IMPSRC} $<
7 all: Net.txt dumphstrerrno
9 PY = python2.7
10 DEFS = defs-socket defs-in defs-netdb
12 Net.txt: Net.txt.templ ${DEFS}
13 ${PY} ./untempl.py Net.txt.templ ${.TARGET}
15 defs-socket:
16 ./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep " SOCK_" > ${.TARGET}
17 ./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep " AF_" >> ${.TARGET}
18 ./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep " SHUT_" >> ${.TARGET}
19 ./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep " SOMAXCONN" >> ${.TARGET}
20 ./dumpdefs.py 3 1 s /usr/include/sys/socket.h | grep " SO_" >> ${.TARGET}
21 ./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep " SOL_" >> ${.TARGET}
22 ./dumpdefs.py 3 1 s /usr/include/sys/socket.h | grep " MSG_" >> ${.TARGET}
24 defs-in:
25 ./dumpdefs.py 3 1 i /usr/include/netinet/in.h | grep " IPPROTO_" > ${.TARGET}
27 defs-netdb:
28 ./dumpdefs.py 3 2 i /usr/include/netdb.h > ${.TARGET}
30 clean:
31 rm -f Net.txt ${DEFS} dumphstrerrno