Makefile 403 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 $@
  12. defs-basictypes: sizeofs
  13. ./sizeofs > $@
  14. defs-lc: mklc
  15. ./mklc > $@
  16. clean:
  17. rm -f ${DEFS} LibW.txt sizeofs mklc