ack.pm 711 B

123456789101112131415161718192021222324252627282930313233
  1. -- $Source$
  2. -- $State$
  3. -- Provides rules for building things with the half-built ACK itself.
  4. ACKBUILDFLAGS = {"-m%PLATFORM%", "%OPTIMISATION%"}
  5. ACKDEFINES = EMPTY
  6. ACKINCLUDES = EMPTY
  7. ackfile = simple_with_clike_dependencies {
  8. class = "ackfile",
  9. CINCLUDES = {REDIRECT, "ACKINCLUDES"},
  10. command = {
  11. "%BINDIR%bin/ack %ACKBUILDFLAGS% %ACKINCLUDES:cincludes% %ACKDEFINES:cdefines% -c -o %out% %in%"
  12. },
  13. outputs = {"%U%-%I%.o"},
  14. }
  15. ackprogram = simple {
  16. class = "ackprogram",
  17. command = {
  18. "%BINDIR%bin/ack %ACKBUILDFLAGS% -o %out% %in%"
  19. },
  20. outputs = {"%U%-%I%"},
  21. }
  22. acklibrary = simple {
  23. class = "acklibrary",
  24. command = {
  25. "%RM% %out% && %BINDIR%bin/aal cr %out% %in%"
  26. },
  27. outputs = {"%U%-%I%.a"},
  28. }