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