Mail Archives: djgpp-workers/2003/07/18/21:53:57
[snip]
> Since you've generated gpp.opt, why not use it? How about:
>
> XNOPGGPP = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed
> $(TOP)/../gpp.opt) -I. -I- -isystem $(TOP)/../../include $(CFLAGS)
I have done this.
> Incidentally, what causes gpp.opt to be built? Does the
> default rule built it? I couldn't see anything in the patch,
> to force it to be built.
I added the following rule to built it:-
*************** $(HOSTBIN)/%.exe : %
*** 155,160 ****
--- 160,168 ----
all :: $(OBJS) $(EXTRA_OBJS) $(EXTRA_FILES)
$(NOP)
+ $(TOP)/../gpp.opt : $(TOP)/../gcc.opt
+ sed -f $(TOP)/../gpp_opt.sed $< > $@
+
ifneq ($(MAKEFILE_LIB),1)
all :: makefile.oh
makefile.oh : makefile
I spotted a problem with the patch and I don't know how to get arround it
with my limited make knowledge. The problem is that make clean does not
remove gpp.opt . I have tried the following:-
clean ::
-$(MISC) rm *.o *.d *.i makefile.oh gpp.opt
and also the following, but this gives and error
clean ::
rm gpp.opt
-$(MISC) rm *.o *.d *.i makefile.oh
Any ideas on this one?
Thanks,
Andrew
- Raw text -