Makefile 419 B

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