Mac OS X seems to have some difficulties with brk/sbrk (maybe with the 4MB heap limit), and replace all the allocation logic will be prone to errors, I'll add a new define and lib to emulate brk/sbrk using more standard allocation methods. By default the heap is 64MB, it should be enough.
40 lines
887 B
Plaintext
40 lines
887 B
Plaintext
-- $Source$
|
|
-- $State$
|
|
|
|
local d = ROOTDIR.."util/led/"
|
|
|
|
tool_led = cprogram {
|
|
cfile (d.."archive.c"),
|
|
cfile (d.."error.c"),
|
|
cfile (d.."extract.c"),
|
|
cfile (d.."finish.c"),
|
|
cfile (d.."main.c"),
|
|
cfile (d.."memory.c"),
|
|
cfile (d.."output.c"),
|
|
cfile (d.."read.c"),
|
|
cfile (d.."relocate.c"),
|
|
cfile (d.."save.c"),
|
|
cfile (d.."scan.c"),
|
|
cfile (d.."sym.c"),
|
|
cfile (d.."write.c"),
|
|
|
|
lib_string,
|
|
lib_object,
|
|
lib_sbrk,
|
|
|
|
outputs = {"%U%/led"},
|
|
install = {
|
|
-- FIXME lib.bin in next line needs removing --- pm bug?
|
|
pm.install("%BINDIR%%PLATDEP%/em_led"),
|
|
pm.install(d.."ack.out.5", "%BINDIR%man/man5/ack.out.5"),
|
|
pm.install(d.."led.6", "%BINDIR%man/man6/em_led.6"),
|
|
}
|
|
}
|
|
|
|
-- Revision history
|
|
-- $Log$
|
|
-- Revision 1.2 2006-07-22 20:52:44 dtrg
|
|
-- led now gets installed into the right place.
|
|
--
|
|
-- Revision 1.1 2006/07/22 20:04:41 dtrg
|
|
-- Added support for the led link editor. |