Makefile 480 B

123456789101112131415161718192021222324252627282930
  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.odc ${DEFS}
  11. LibW.odc: LibW.txt
  12. ./txt2odc.py LibW.txt LibW.odc
  13. LibW.txt: LibW.txt.templ ${DEFS} libver osname machine
  14. ${PY} ./untempl.py LibW.txt.templ $@
  15. defs-basictypes: sizeofs
  16. ./sizeofs > $@
  17. defs-lc: mklc
  18. ./mklc > $@
  19. clean:
  20. rm -f ${DEFS} LibW.txt LibW.odc sizeofs mklc