Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding a Makefile to QMake process
Forum Updated to NodeBB v4.3 + New Features

Adding a Makefile to QMake process

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 679 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HunterMetcalfeH Offline
    HunterMetcalfeH Offline
    HunterMetcalfe
    wrote on last edited by
    #1

    Good morning,

    I have a quick question. Is there a way to add an external Makefile used by multiple applications (not just QT) to the .pro file of a project? This Makefile has definitions for common directories used for building. For example, SRCDIR = $(TOPDIR)/src. Some of these variables would be nice to use in the .pro file instead of redefining them in a .pri file. It should be noted you cannot invoke Make from this Makefile. It just stores common variables as mentioned above, which are then utilized in other Makefiles.

    Thanks!

    raven-worxR 1 Reply Last reply
    0
    • HunterMetcalfeH HunterMetcalfe

      Good morning,

      I have a quick question. Is there a way to add an external Makefile used by multiple applications (not just QT) to the .pro file of a project? This Makefile has definitions for common directories used for building. For example, SRCDIR = $(TOPDIR)/src. Some of these variables would be nice to use in the .pro file instead of redefining them in a .pri file. It should be noted you cannot invoke Make from this Makefile. It just stores common variables as mentioned above, which are then utilized in other Makefiles.

      Thanks!

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @HunterMetcalfe
      not the way you intend to use it.

      QMake is defined to be target independent and as a source to create target-dependant makefiles.
      Only you could execute a makefile execution., but not read the values in a .pro file.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      HunterMetcalfeH 1 Reply Last reply
      2
      • raven-worxR raven-worx

        @HunterMetcalfe
        not the way you intend to use it.

        QMake is defined to be target independent and as a source to create target-dependant makefiles.
        Only you could execute a makefile execution., but not read the values in a .pro file.

        HunterMetcalfeH Offline
        HunterMetcalfeH Offline
        HunterMetcalfe
        wrote on last edited by
        #3

        @raven-worx Thanks for the reply. I had assumed as much. Technically the Makefile is not entirely a Makefile. It is actually more of a textfile. One solution could be to read in the textfile variables before the QMake process.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved