2006-07-30 23:44:57 +00:00
|
|
|
-- $Source$
|
|
|
|
-- $State$
|
|
|
|
|
|
|
|
-- Provides rules for building things with the half-built ACK itself.
|
|
|
|
|
2007-02-20 00:46:10 +00:00
|
|
|
ACKBUILDFLAGS = {"-m%PLATFORM%", "%OPTIMISATION%"}
|
2006-07-30 23:44:57 +00:00
|
|
|
ACKDEFINES = EMPTY
|
|
|
|
ACKINCLUDES = EMPTY
|
|
|
|
|
|
|
|
ackfile = simple_with_clike_dependencies {
|
|
|
|
class = "ackfile",
|
|
|
|
CINCLUDES = {REDIRECT, "ACKINCLUDES"},
|
|
|
|
command = {
|
2006-10-15 00:28:12 +00:00
|
|
|
"%BINDIR%bin/ack %ACKBUILDFLAGS% %ACKINCLUDES:cincludes% %ACKDEFINES:cdefines% -c -o %out% %in%"
|
2006-07-30 23:44:57 +00:00
|
|
|
},
|
|
|
|
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"},
|
|
|
|
}
|