Loading ...
Sorry, an error occurred while loading the content.

Re: vim7: Make_mvc.mak

Expand Messages
  • Walter Briscoe
    In message of Tue, 5 Jul 2005 11:29:51 in , Bram Moolenaar writes ... There is no such rule.
    Message 1 of 9 , Jul 6, 2005
    • 0 Attachment
      In message <200507050929.j659TpvL065721@...> of Tue, 5 Jul
      2005 11:29:51 in , Bram Moolenaar <Bram@...> writes
      >
      >Walter Briscoe wrote:
      >
      >> Let me try again:
      >> The default rule for .c.obj uses CFLAGS
      >> The Make_mvc.mak rule for .c.obj uses CFLAGS
      >> The default rule for .cpp.obj uses CPPFLAGS
      >> The Make_mvc.mak rule for .cpp.obj uses CFLAGS rather than CPPFLAGS.
      >>
      >> So, I can get something sensible when I decide to do, for example,
      >> nmake -nologo -f Make_mvc.mak buffer.obj
      >>
      >> Unless we make some change, I do not get anything sensible when I try
      >> nmake -nologo -f Make_mvc.mak if_ole.obj
      >
      >Why? Is the rule for .cpp.obj in Make_mvc.mak not used? That sounds
      There is no such rule. There is a .cpp{$(OUTDIR)/}.obj rule. If that
      rule used $(CPPFLAGS) where it currently uses $(CFLAGS), I would be
      happy.

      >like a bug. But I find it hard to believe, since building if_ole.obj is
      >fine when it's being done as part of the dependencies. It should not be
      >different when it's build separately.
      $(OUTDIR)/if_ole.obj, not if_ole.obj is normally built.
      Using $(CFLAGS) in .c{$(OUTDIR)/}.obj affects .c.obj
      Using $(CFLAGS) in .cpp{$(OUTDIR)/}.obj does not affect .cpp.obj
      Using $(CPPFLAGS) in .cpp{$(OUTDIR)/}.obj would affect .cpp.obj
      That would be two one-line changes; I made one. I am lazy.

      >
      >> The difference is that our coding changes the effect of the .c.obj
      >> default rule but does not change the effect of the .cpp.obj rule.
      >
      >The default rules are not to be used. I don't see why they would be.
      Symmetry.
      .c{$(OUTDIR)/}.obj is a particular transformation of .c.obj
      .cpp{$(OUTDIR)/}.obj could be the same transformation of .cpp.obj
      It costs you little; it helps me more.

      Did you not see how I generate .i files?
      My technique does not work for files such as $(OUTDIR)/if_perl.obj which
      have a specialised rule. I have not needed to make such .i files.
      If I did, I would produce a technique to make OUTDIR equal "."

      I will retain this as a private change. Delivering it is too expensive.
      --
      Walter Briscoe
    Your message has been successfully submitted and would be delivered to recipients shortly.