From 1efe7422d375a97917944b786a00da4d072c0218 Mon Sep 17 00:00:00 2001 From: dtrg Date: Sun, 30 Jul 2006 23:44:57 +0000 Subject: [PATCH] Added rules for building things with the ack itself. --- first/ack.pm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 first/ack.pm diff --git a/first/ack.pm b/first/ack.pm new file mode 100644 index 000000000..9cfe4ac86 --- /dev/null +++ b/first/ack.pm @@ -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"}, +} -- 2.34.1