isEmpty(DEPTH):DEPTH = . os2:PLATFORM = os2 else:win32:PLATFORM = win else:x11:PLATFORM = x11 else:PLATFORM = unknown # in debug_and_release, we need a -debug or -release suffix to get separate # output paths (it will be replaced with the correct one at runtime) debug_and_release:OUTPATH_SUFFIX = -debug else:OUTPATH_SUFFIX = OBJECTS_DIR = $$DEPTH/obj/$${PLATFORM}$${OUTPATH_SUFFIX} MOC_DIR = $$OBJECTS_DIR DESTDIR = $$OBJECTS_DIR # target.path isn't there by default QMAKE_DIR_REPLACE = OBJECTS_DIR MOC_DIR RCC_DIR target.path target.path = $$DEPTH/bin/$${PLATFORM}$${OUTPATH_SUFFIX} INSTALLS += target !build_pass { debug-run.target = debug-run debug-run.commands = $(MAKE) -f $(MAKEFILE).Debug run release-run.target = release-run release-run.commands = $(MAKE) -f $(MAKEFILE).Release run QMAKE_EXTRA_TARGETS += debug-run release-run } else { isEmpty(RUN_SHELL):RUN_SHELL = $(RUN_SHELL) isEmpty(RUN_ARGS):RUN_ARGS = $(RUN_ARGS) run.target = run run.commands = $$RUN_SHELL $(DESTDIR_TARGET) $$RUN_ARGS run.depends = $(DESTDIR_TARGET) QMAKE_EXTRA_TARGETS += run } win32 { CONFIG(release, debug|release):CONFIG(qt):contains(QT, gui) { CONFIG -= console CONFIG *= windows } else { CONFIG -= windows CONFIG *= console } }