Added rules for building things with the ack itself.
authordtrg <none@none>
Sun, 30 Jul 2006 23:44:57 +0000 (23:44 +0000)
committerdtrg <none@none>
Sun, 30 Jul 2006 23:44:57 +0000 (23:44 +0000)
first/ack.pm [new file with mode: 0644]

diff --git a/first/ack.pm b/first/ack.pm
new file mode 100644 (file)
index 0000000..9cfe4ac
--- /dev/null
@@ -0,0 +1,33 @@
+-- $Source$
+-- $State$
+
+-- Provides rules for building things with the half-built ACK itself.
+
+ACKBUILDFLAGS = {"-m%ARCH%", "%OPTIMISATION%"}
+ACKDEFINES = EMPTY
+ACKINCLUDES = EMPTY
+
+ackfile = simple_with_clike_dependencies {
+       class = "ackfile",
+       CINCLUDES = {REDIRECT, "ACKINCLUDES"},
+       command = {
+               "%BINDIR%bin/ack %ACKBUILDFLAGS% %ACKINCLUDES% %ACKDEFINES% -c -o %out% %in%"
+       },
+       outputs = {"%U%-%I%.o"},
+}
+
+ackprogram = simple {
+       class = "ackprogram",
+       command = {
+               "%BINDIR%bin/ack %ACKBUILDFLAGS% -o %out% %in%"
+       },
+       outputs = {"%U%-%I%"},
+}
+
+acklibrary = simple {
+       class = "acklibrary",
+       command = {
+               "%RM% %out% && %BINDIR%bin/aal cr %out% %in%"
+       },
+       outputs = {"%U%-%I%.a"},
+}