1# 2# qmake configuration for win32-g++ 3# 4# Written for MinGW 5# 6 7MAKEFILE_GENERATOR = MINGW 8TEMPLATE = app 9CONFIG += qt warn_on release link_prl copy_dir_files debug_and_release debug_and_release_target precompile_header cross-win32 10QT += core gui 11DEFINES += UNICODE 12QMAKE_COMPILER_DEFINES += __GNUC__ WIN32 13QMAKE_COMPILER = gcc 14 15 16QMAKE_COMPILER = gcc 17QMAKE_EXT_OBJ = .o 18QMAKE_EXT_RES = _res.o 19 20QMAKE_LEX = flex 21QMAKE_LEXFLAGS = 22QMAKE_YACC = byacc 23QMAKE_YACCFLAGS = -d 24QMAKE_CFLAGS = -DHAVE_MINGW -DHAVE_WIN32 -DHAVE_MINGW_W64 25QMAKE_CFLAGS_DEPS = -M 26QMAKE_CFLAGS_WARN_ON = -Wall 27QMAKE_CFLAGS_WARN_OFF = -w 28QMAKE_CFLAGS_RELEASE = -O2 29QMAKE_CFLAGS_DEBUG = -g -O2 30QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses 31 32QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DHAVE_MINGW -DHAVE_WIN32 -DHAVE_ZLIB_H -DHAVE_LIBZ -DHAVE_CRYPTO -DHAVE_OPENSSL -DHAVE_TLS -DHAVE_MINGW_W64 33QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS 34QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON 35QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF 36QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE 37QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG 38QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC 39QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD 40QMAKE_CXXFLAGS_RTTI_ON = -frtti 41QMAKE_CXXFLAGS_RTTI_OFF = -fno-rtti 42QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions -mthreads 43QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -fno-exceptions 44 45QMAKE_INCDIR_QT = $(DEPKGS)/depkgs-mingw32/include/qt/QtGui $(DEPKGS)/depkgs-mingw32/include/qt/QtCore $(DEPKGS)/depkgs-mingw32/include/qt/QtWidgets 46QMAKE_LIBDIR_QT = $(DEPKGS)/depkgs-mingw32/lib/qt 47 48QMAKE_RUN_CC = $(CXX) -c $(CFLAGS) $(INCPATH) -o $obj $src 49QMAKE_RUN_CC_IMP = $(CXX) -c $(CFLAGS) $(INCPATH) -o $@ $< 50QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src 51QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< 52 53QMAKE_LINK = i686-w64-mingw32-g++ 54QMAKE_LFLAGS = -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -m32 -fno-strict-aliasing -Wl,-enable-runtime-pseudo-reloc 55 56QMAKE_LFLAGS_EXCEPTIONS_ON = -mthreads -Wl 57QMAKE_LFLAGS_EXCEPTIONS_OFF = 58QMAKE_LFLAGS_RELEASE = -Wl,-s 59QMAKE_LFLAGS_DEBUG = 60QMAKE_LFLAGS_CONSOLE = -Wl,-subsystem,console 61QMAKE_LFLAGS_WINDOWS = -Wl,-subsystem,windows 62QMAKE_LFLAGS_DLL = -shared 63QMAKE_LINK_OBJECT_MAX = 10 64QMAKE_LINK_OBJECT_SCRIPT= object_script 65 66 67QMAKE_LIBS = -lwsock32 -lstdc++ 68QMAKE_LIBS_CORE = -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 69QMAKE_LIBS_GUI = -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32 -luuid -luser32 -ladvapi32 70QMAKE_LIBS_NETWORK = -lws2_32 71QMAKE_LIBS_OPENGL = -lopengl32 -lglu32 -lgdi32 -luser32 72QMAKE_LIBS_COMPAT = -ladvapi32 -lshell32 -lcomdlg32 -luser32 -lgdi32 -lws2_32 73QMAKE_LIBS_QT_ENTRY = -lmingw32 -lqtmain 74 75MINGW_IN_SHELL = 1 76QMAKE_DIR_SEP = / 77QMAKE_COPY = cp 78QMAKE_COPY_DIR = cp -r 79QMAKE_MOVE = mv 80QMAKE_DEL_FILE = rm -f 81QMAKE_MKDIR = mkdir -p 82QMAKE_DEL_DIR = rm -rf 83QMAKE_RCC = rcc 84QMAKE_CHK_DIR_EXISTS = test -d 85 86QMAKE_MOC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}moc 87QMAKE_UIC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}uic 88QMAKE_IDC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}idc 89 90QMAKE_IDL = midl 91QMAKE_ZIP = zip -r -9 92 93QMAKE_STRIP = i686-w64-mingw32-strip 94QMAKE_STRIPFLAGS_LIB += --strip-unneeded 95load(qt_config) 96