Mail Archives: djgpp/1998/07/06/12:30:50
On 6 Jul 1998, Blake McCurdy wrote:
> I have an incredibly big project ( 40, 45 object files ), and my dos
> command line balks. It will take the first 125 chars or so, and then
> complains that it cannot find the file that it created truncting my cmd
> line. IE hand.o truncated into ha, linker complains cannot find "ha" no
> such file or directoryEnonet. How do I get around this. I'm actually
> making it into a libray, not linking.
Use a response file. e.g:
ar rvs @file.rsp
where file.rsp contains a list of all the .o files.
file.rsp can be generated automatically by make. OTOH, do something
like:
libfile.a: file.rsp
ar rvs @file.rsp
file.rsp: makefile
echo $(OBJS) > $<
BTW. Borland's make has the inline file-operator which AFAIK lacks
in GNU make:
libfile.a:
ar rvs @&&|
$(OBJS)
|
Anybody know how to accomplish the same with GNU-make?
Gisle V.
- Raw text -