Makefile 463 B

12345678910111213141516171819202122232425
  1. # This is BSD Makefile
  2. # BSD GNU
  3. # ${.TARGET} $@
  4. # ${.ALLSRC} $^
  5. # ${.IMPSRC} $<
  6. INCDIR ?= /usr/include
  7. PY = python2.7
  8. DEFS = defs-basictypes defs-lc
  9. all: LibW.txt ${DEFS}
  10. LibW.txt: LibW.txt.templ ${DEFS} libver osname machine
  11. ${PY} ./untempl.py LibW.txt.templ ${.TARGET}
  12. defs-basictypes: sizeofs
  13. ./sizeofs > ${.TARGET}
  14. defs-lc:
  15. ./dumpdefs.py 2 1 i ${INCDIR}/locale.h | grep " LC_" > ${.TARGET}
  16. clean:
  17. rm -f ${DEFS} LibW.txt sizeofs