DEADSOFTWARE

"/usr/include" -> INCDIR
[bbcp.git] / new / _OpenBSD_ / Lin / Mod / gen-Net / Makefile
index a44c64e77c431bf013fefa803571723704ac1227..9fe82db863599881635ad2cf47f5161094fd1c32 100644 (file)
@@ -4,6 +4,8 @@
 # ${.ALLSRC}    $^
 # ${.IMPSRC}    $<
 
+INCDIR ?= /usr/include
+
 all: Net.txt dumphstrerrno
 
 PY = python2.7
@@ -13,19 +15,19 @@ Net.txt: Net.txt.templ ${DEFS}
        ${PY} ./untempl.py Net.txt.templ ${.TARGET}
 
 defs-socket:
-       ./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep "  SOCK_" > ${.TARGET}
-       ./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep "  AF_" >> ${.TARGET}
-       ./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep "  SHUT_" >> ${.TARGET}
-       ./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep "  SOMAXCONN" >> ${.TARGET}
-       ./dumpdefs.py 3 1 s /usr/include/sys/socket.h | grep "  SO_" >> ${.TARGET}
-       ./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep "  SOL_" >> ${.TARGET}
-       ./dumpdefs.py 3 1 s /usr/include/sys/socket.h | grep "  MSG_" >> ${.TARGET}
+       ./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep "     SOCK_" > ${.TARGET}
+       ./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep "     AF_" >> ${.TARGET}
+       ./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep "     SHUT_" >> ${.TARGET}
+       ./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep "     SOMAXCONN" >> ${.TARGET}
+       ./dumpdefs.py 3 1 s ${INCDIR}/sys/socket.h | grep "     SO_" >> ${.TARGET}
+       ./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep "     SOL_" >> ${.TARGET}
+       ./dumpdefs.py 3 1 s ${INCDIR}/sys/socket.h | grep "     MSG_" >> ${.TARGET}
 
 defs-in:
-       ./dumpdefs.py 3 1 i /usr/include/netinet/in.h | grep "  IPPROTO_" > ${.TARGET}
+       ./dumpdefs.py 3 1 i ${INCDIR}/netinet/in.h | grep "     IPPROTO_" > ${.TARGET}
 
 defs-netdb:
-       ./dumpdefs.py 3 2 i /usr/include/netdb.h > ${.TARGET}
+       ./dumpdefs.py 3 2 i ${INCDIR}/netdb.h > ${.TARGET}
 
 clean:
        rm -f Net.txt ${DEFS} dumphstrerrno