DEADSOFTWARE

9fe82db863599881635ad2cf47f5161094fd1c32
[bbcp.git] / BlackBox / _OpenBSD_ / Lin / Mod / gen-Net / Makefile
1 # This is BSD 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-in defs-netdb
14 Net.txt: Net.txt.templ ${DEFS}
15 ${PY} ./untempl.py Net.txt.templ ${.TARGET}
17 defs-socket:
18 ./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep " SOCK_" > ${.TARGET}
19 ./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep " AF_" >> ${.TARGET}
20 ./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep " SHUT_" >> ${.TARGET}
21 ./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep " SOMAXCONN" >> ${.TARGET}
22 ./dumpdefs.py 3 1 s ${INCDIR}/sys/socket.h | grep " SO_" >> ${.TARGET}
23 ./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep " SOL_" >> ${.TARGET}
24 ./dumpdefs.py 3 1 s ${INCDIR}/sys/socket.h | grep " MSG_" >> ${.TARGET}
26 defs-in:
27 ./dumpdefs.py 3 1 i ${INCDIR}/netinet/in.h | grep " IPPROTO_" > ${.TARGET}
29 defs-netdb:
30 ./dumpdefs.py 3 2 i ${INCDIR}/netdb.h > ${.TARGET}
32 clean:
33 rm -f Net.txt ${DEFS} dumphstrerrno