Hi,
The latest OPenGL subversion source (available from http://graphcomp.com/opengl/index.cgi?v=0111s5m1&r=s1m1) builds straight out of the box using nmake and Visual Studio. To have it build straight out of the box on Strawberry Perl (ie using dmake and MinGW), it's necessary to replace nmake syntax with dmake syntax in a small makefile (utils/makefile.mak). I'm nearly there, but there's one section of the makefile.mak that I haven't been able to successfully rewrite. In its current (nmake syntax) form that section is:
clean: if exist glversion.txt del glversion.txt if exist glversion.exe del glversion.exe if exist glversion.txt del glversion.obj
Looking at the Win32/makefile.mk that comes with the perl source, I thought the following would work (but it doesn't):
clean: -if exist glversion.txt del glversion.txt -if exist glversion.exe del glversion.exe -if exist glversion.txt del glversion.o
With one version of dmake that produces the following warnings (which don't prevent the build from completing successfully, but probably *do* mean that 'dmake clean' doesn't work correctly):
dmake: Error executing 'if': No such file or directory (Ignored) dmake: Error executing 'if': No such file or directory (Ignored) dmake: Error executing 'if': No such file or directory (Ignored)
With another version of dmake, however, the same section produces a fatal error which *does* prevent the build from completing successfully.

Any advice on how that section needs to be rewritten for dmake would be appreciated. In the meantime, I'll keep digging.

Cheers,
Rob

In reply to [OT] Makefiles - nmake syntax v dmake syntax by syphilis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.