Results 1 to 4 of 4

Thread: A way to transfer info from .pro to Makefile

  1. #1
    Join Date
    Jan 2006
    Location
    Florida
    Posts
    24
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy A way to transfer info from .pro to Makefile

    I want to get the following line into a Makefile generated by a project file:

    MYARCH = $(shell arch)

    Any way to specify this in a project file so there is a direct transfer into the Makefile?

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: A way to transfer info from .pro to Makefile

    It depends on the meaning of your variable. Check out qmake manual, there are plenty of low-level variables that can modify compiler/linker/... behaviour.
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    Feb 2006
    Location
    Boulder, Colorado, USA
    Posts
    63
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: A way to transfer info from .pro to Makefile

    How would you use the variable in the Makefile?

  4. #4
    Join Date
    Jan 2006
    Location
    Florida
    Posts
    24
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: A way to transfer info from .pro to Makefile

    Thanks, I figured it out. Basically had to analyze how the variable was used in the original makefile and I was pretty much on track to the solution, just needed to use $$(my_arch) instead of $(my_arch).

Similar Threads

  1. pass code from .pro file through to Makefile in qmake?
    By rholsen in forum Qt Programming
    Replies: 2
    Last Post: 16th October 2008, 18:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.