DEADSOFTWARE

"/usr/include" -> INCDIR
[bbcp.git] / new / _OpenBSD_ / Lin / Mod / gen-Termios / Makefile
index d1ec45b9835666d33a0da165ec1aabc632d339d9..346bb9a12b4287690304f1365c0d0d03077612f6 100644 (file)
@@ -4,6 +4,8 @@
 # ${.ALLSRC}    $^
 # ${.IMPSRC}    $<
 
+INCDIR ?= /usr/include
+
 all: Termios.txt
 
 PY = python2.7
@@ -13,9 +15,9 @@ Termios.txt: Termios.txt.templ ${DEFS}
        ${PY} ./untempl.py Termios.txt.templ ${.TARGET}
 
 defs-termios:
-       ./dumpdefs.py 2 0 i /usr/include/termios.h > ${.TARGET}
-       ./dumpdefs.py 2 1 i /usr/include/termios.h | grep -v compat >> ${.TARGET}
-       ./dumpdefs.py 2 2 i /usr/include/termios.h | grep -v compat | grep -v CHWFLOW >> ${.TARGET}
+       ./dumpdefs.py 2 0 i ${INCDIR}/termios.h > ${.TARGET}
+       ./dumpdefs.py 2 1 i ${INCDIR}/termios.h | grep -v compat >> ${.TARGET}
+       ./dumpdefs.py 2 2 i ${INCDIR}/termios.h | grep -v compat | grep -v CHWFLOW >> ${.TARGET}
 
 clean:
        rm -f Termios.txt ${DEFS}