Makefile 574 B

1234567891011121314151617181920212223
  1. # This is GNU Makefile
  2. # BSD GNU
  3. # $@ $@
  4. # ${.ALLSRC} $^
  5. # ${.IMPSRC} $<
  6. all: Net.txt dumphstrerrno
  7. PY = python2.7
  8. DEFS = defs-socket defs-so
  9. Net.txt: Net.txt.templ ${DEFS} defs-netdb defs-in defs-sock
  10. ${PY} ./untempl.py Net.txt.templ $@
  11. defs-socket:
  12. ./dumpdefs.py 3 1 i /usr/include/i386-linux-gnu/bits/socket.h | grep " PF_" > $@
  13. ./dumpdefs.py 3 1 i /usr/include/i386-linux-gnu/bits/socket.h | grep " SOMAXCONN" >> $@
  14. defs-so:
  15. ./dumpdefs.py 3 1 s /usr/include/asm-generic/socket.h | grep " SO_" > $@
  16. clean:
  17. rm -f Net.txt ${DEFS} dumphstrerrno