Makefile 524 B

12345678910111213141516171819202122232425262728
  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.odc ${DEFS}
  10. LibW.odc: LibW.txt
  11. ./txt2odc.py LibW.txt LibW.odc
  12. LibW.txt: LibW.txt.templ ${DEFS} libver osname machine
  13. ${PY} ./untempl.py LibW.txt.templ ${.TARGET}
  14. defs-basictypes: sizeofs
  15. ./sizeofs > ${.TARGET}
  16. defs-lc:
  17. ./dumpdefs.py 2 1 i ${INCDIR}/locale.h | grep " LC_" > ${.TARGET}
  18. clean:
  19. rm -f ${DEFS} LibW.txt LibW.odc sizeofs