Makefile gmake

Discussion in 'C' started by irdeto, Mar 18, 2010.

  1. irdeto

    irdeto New Member

    Joined:
    Mar 18, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Hi!
    Can someone tell me what this means in line makefile:
    include $ (DVD_MAKE) / generic.mak
    Thanks!
     
  2. irdeto

    irdeto New Member

    Joined:
    Mar 18, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    What means here sign of dollar $.
     
  3. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    It expands the symbol DVD_MAKE, so instead of trying to include the file DVD_MAKE/generic.mak, if DVD_MAKE is set to /usr/home/me/dvdstuff then it will include /usr/home/me/dvdstuff/generic.mak.
     
  4. irdeto

    irdeto New Member

    Joined:
    Mar 18, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Thank you.
    I tried to compile some file ,with gmake and compiler, when started gmake ,I get error cant't find generic.mak , generic.mak is in different branches in the SW tree.
    Do you know why I get error?
     
  5. irdeto

    irdeto New Member

    Joined:
    Mar 18, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    This is my SW tree:


    / xxxx\gamke > makefile
    Root
    \ yyyy\generic.mak

    See above post:
     
  6. irdeto

    irdeto New Member

    Joined:
    Mar 18, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Please what that means:

    set DVD_MAKE=%1/make

    what mean %1

    thanks!
     
  7. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    I don't think I can explain why you get the error. make itself has told you why you got the error ("can't find generic.mak") and I can't think of any way to explain "can't find generic.mak" without actually saying "can't find generic.mak".

    So either generic.mak isn't on your computer, or make is looking in the wrong place.

    %1 is the first parameter. So for the command "dir *.txt /s", dir would see *.txt as %1 and /s as %2.

    If generic.mak is in \yyyy then probably you need to set DVD_MAKE=\yyyy.
     
  8. irdeto

    irdeto New Member

    Joined:
    Mar 18, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    I found what is wrong ,think, batch file don't
    that is why what gmake and make file can't recognize generic.mak.
    Don't know why.
    Names of folder and file is OK.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice