Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qmake: Makefiles for different platforms with the same name
Qt 6.11 is out! See what's new in the release blog

Qmake: Makefiles for different platforms with the same name

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 838 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    I have a large subdirs project, which I need to build both for desktop linux as well as embedded linux (via a cross compiler).

    I use the same source tree, and choose the platform to build for by setting different environment variables as well as QMAKESPEC and QTDIR. In my project files, I then direct the various outputs (DESTDIR, OBJECTS_DIR,...) to different folders to keep the builds separate. This part works well.

    However, both builds use the same makefile names. When I completed a desktop build, a build for embedded only says "nothing to be done" for all projects. Only when I manually delete all makefiles does the embedded build actually run.

    I have fooled around with the MAKEFILE variable, hoping to change the makefile name that way. However, it seems that even if an additional makefile by that name is created, the makefile actually used is still the default one, so no improvement.

    How do I correctly specify a makefile name in a .pro file, so I can then call "make -f makefile_embedded" or "make -f makefile_desktop" and keep my build cleanly separated?

    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