Mail Archives: djgpp/2003/04/23/06:18:58
> From: "Gisle Vanem" <giva AT bgnett DOT no>
> Date: Tue, 22 Apr 2003 22:02:10 +0200
>
> I have a Makefile that generates dependencies to
> a 'depend.dj' file in two steps. Here's the relevant section:
An important piece of info that I miss: what does your environment
and/or Makefile specify as the SHELL? Is it 4DOS, Bash, COMMAND.COM,
or something else?
> depend:
> $(CC) -MM $(CFLAGS) $(SOURCE) | \
> sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/'$(OBJ_DIR)'\/\1/' > depend.dj
>
> $(CC) -MM $(CFLAGS) $(SPECIAL_SRC) -Dheader=\"fesupp.h\" | \
> sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/'$(OBJ_DIR)'\/\1/' >> depend.dj
>
> (the empty line is intentional; makes it more readable)
>
> I wonder why make creates *two* temp files at the same time;
> i.e $(TMP)/DJ100000 and $(TMP)/DJ200000 before the 2nd $(CC)
> command is run.
One is for the pipe emulation, the other I don't know. If you remove
the empty line, does that change anything?
> And a '$(TMP)/vdm1a7a.tmp' file is also present.
This one is not ours; I'm guessing it comes from 4DOS or from Windows.
- Raw text -