build.lua 624 B

123456789101112131415161718192021222324252627282930313233
  1. normalrule {
  2. name = "em_path",
  3. ins = {},
  4. outleaves = { "em_path.h" },
  5. commands = {
  6. "echo '#define TMP_DIR \"/tmp\"' > %{outs}",
  7. "echo '#define EM_DIR \"$(PREFIX)\"' >> %{outs}",
  8. "echo '#define ACK_PATH \"share/ack/descr\"' >> %{outs}",
  9. }
  10. }
  11. normalrule {
  12. name = "local",
  13. ins = {},
  14. outleaves = { "local.h" },
  15. commands = {
  16. "echo '#define VERSION 3' > %{outs}",
  17. "echo '#define ACKM \"$(DEFAULT_PLATFORM)\"' >> %{outs}",
  18. "echo '#define BIGMACHINE 1' >> %{outs}",
  19. "echo '#define SYS_5' >> %{outs}",
  20. }
  21. }
  22. clibrary {
  23. name = "emheaders",
  24. hdrs = {
  25. "./*.h",
  26. "./con_float",
  27. "+em_path",
  28. "+local",
  29. }
  30. }