Mail Archives: djgpp/1998/07/07/20:48:14
On 7 Jul 98 at 9:22, Gisle Vanem wrote:
> The rule should of course be:
>
> libfile.a:
> ar rvs libfile.a @&&|
> $(OBJS)
> |
>
> Borland's Make would then create a temporary response file with all
> $(OBJS) listed. Like `ar rvs libfile.a @make0001.@@@'.
>
> Now, does GNU make have anything similar?
Something like:
libfile.a:
@echo $(OBJS) > $(TEMPFILE)
ar rvs $@ @$(TEMPFILE)
@rm -f $(TEMPFILE)
but with the filename assured to be writable, and assured not to
clash with another file? It doesn't seem very useful; you could use
it to call old djgpp programs, or non-djgpp programs. It would be
pretty trivial to make a djgpp v2.01 program capable of calling other
programs in this way of course.
In general I don't think it's a good idea to call non-djgpp programs
from djgpp programs though; sometimes it doesn't work properly (e.g.
if the other program tries to use 16-bit DPMI).
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -