0
|
1 |
#
|
|
2 |
# qmake configuration for linux-icc
|
|
3 |
#
|
|
4 |
# Written for Intel C++ Compiler versions 10.x for GNU/Linux
|
|
5 |
#
|
|
6 |
# Note: Some of the remarks from the Intel compiler are disabled (even
|
|
7 |
# with 'warn_on' specified):
|
|
8 |
#
|
|
9 |
# warning #654: overloaded virtual function "T::f" is only partially overridden in class "U"
|
|
10 |
# warning #1572: floating-point equality and inequality comparisons are unreliable
|
|
11 |
#
|
|
12 |
|
|
13 |
MAKEFILE_GENERATOR = UNIX
|
|
14 |
TEMPLATE = app
|
|
15 |
CONFIG += qt warn_on release link_prl
|
|
16 |
QT += core gui
|
|
17 |
|
|
18 |
QMAKE_CC = icc
|
|
19 |
QMAKE_LEX = flex
|
|
20 |
QMAKE_LEXFLAGS =
|
|
21 |
QMAKE_YACC = yacc
|
|
22 |
QMAKE_YACCFLAGS = -d
|
|
23 |
QMAKE_CFLAGS = -wd654,1572
|
|
24 |
QMAKE_CFLAGS_DEPS = -M
|
|
25 |
QMAKE_CFLAGS_WARN_ON =
|
|
26 |
QMAKE_CFLAGS_WARN_OFF = -w
|
|
27 |
QMAKE_CFLAGS_RELEASE = -O2
|
|
28 |
QMAKE_CFLAGS_DEBUG = -g
|
|
29 |
QMAKE_CFLAGS_SHLIB = -fPIC
|
|
30 |
QMAKE_CFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_SHLIB
|
|
31 |
QMAKE_CFLAGS_YACC =
|
|
32 |
QMAKE_CFLAGS_THREAD = -D_REENTRANT
|
|
33 |
|
|
34 |
QMAKE_CXX = icpc
|
|
35 |
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
|
|
36 |
QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS
|
|
37 |
QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
|
|
38 |
QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
|
|
39 |
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
|
|
40 |
QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
|
|
41 |
QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB
|
|
42 |
QMAKE_CXXFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_STATIC_LIB
|
|
43 |
QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC
|
|
44 |
QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
|
|
45 |
|
|
46 |
QMAKE_INCDIR =
|
|
47 |
QMAKE_LIBDIR =
|
|
48 |
QMAKE_INCDIR_X11 = /usr/X11R6/include
|
|
49 |
QMAKE_LIBDIR_X11 = /usr/X11R6/lib
|
|
50 |
QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS]
|
|
51 |
QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS]
|
|
52 |
QMAKE_INCDIR_OPENGL = /usr/X11R6/include
|
|
53 |
QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib
|
|
54 |
|
|
55 |
QMAKE_LINK = icpc
|
|
56 |
QMAKE_LINK_SHLIB = icpc
|
|
57 |
QMAKE_LFLAGS =
|
|
58 |
QMAKE_LFLAGS_RELEASE =
|
|
59 |
QMAKE_LFLAGS_DEBUG =
|
|
60 |
QMAKE_LFLAGS_SHLIB = -shared
|
|
61 |
QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
|
|
62 |
QMAKE_LFLAGS_SONAME = -Qoption,ld,-soname,
|
|
63 |
QMAKE_LFLAGS_THREAD =
|
|
64 |
QMAKE_RPATH = -Qoption,ld,-rpath,
|
|
65 |
|
|
66 |
QMAKE_LIBS =
|
|
67 |
QMAKE_LIBS_DYNLOAD = -ldl
|
|
68 |
QMAKE_LIBS_X11 = -lXext -lX11 -lm
|
|
69 |
QMAKE_LIBS_X11SM = -lSM -lICE
|
|
70 |
QMAKE_LIBS_NIS = -lnsl
|
|
71 |
QMAKE_LIBS_OPENGL = -lGLU -lGL
|
|
72 |
QMAKE_LIBS_OPENGL_QT = -lGL
|
|
73 |
QMAKE_LIBS_THREAD = -lpthread
|
|
74 |
|
|
75 |
QMAKE_MOC = $$[QT_INSTALL_BINS]/moc
|
|
76 |
QMAKE_UIC = $$[QT_INSTALL_BINS]/uic
|
|
77 |
|
|
78 |
QMAKE_AR = ar cqs
|
|
79 |
QMAKE_OBJCOPY = objcopy
|
|
80 |
QMAKE_RANLIB =
|
|
81 |
|
|
82 |
QMAKE_CLEAN = -r $(OBJECTS_DIR)/ti_files
|
|
83 |
|
|
84 |
QMAKE_TAR = tar -cf
|
|
85 |
QMAKE_GZIP = gzip -9f
|
|
86 |
|
|
87 |
QMAKE_COPY = cp -f
|
|
88 |
QMAKE_MOVE = mv -f
|
|
89 |
QMAKE_DEL_FILE = rm -f
|
|
90 |
QMAKE_DEL_DIR = rmdir
|
|
91 |
QMAKE_CHK_DIR_EXISTS = test -d
|
|
92 |
QMAKE_MKDIR = mkdir -p
|
|
93 |
|
|
94 |
# pch support
|
|
95 |
CONFIG += icc_pch_style
|
|
96 |
QMAKE_PCH_OUTPUT_EXT = .pchi
|
|
97 |
QMAKE_CXXFLAGS_USE_PRECOMPILE = -pch-use ${QMAKE_PCH_OUTPUT} -include ${QMAKE_PCH_INPUT}
|
|
98 |
QMAKE_CXXFLAGS_PRECOMPILE = -c -pch-create ${QMAKE_PCH_OUTPUT} -include ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_TEMP_OBJECT} ${QMAKE_PCH_TEMP_SOURCE}
|
|
99 |
|
|
100 |
# -Bsymbolic-functions (ld) support
|
|
101 |
QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Qoption,ld,-Bsymbolic-functions
|
|
102 |
QMAKE_LFLAGS_DYNAMIC_LIST = -Qoption,ld,--dynamic-list,
|
|
103 |
|
|
104 |
# Symbol visibility control
|
|
105 |
QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
|
|
106 |
QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
|
|
107 |
|
|
108 |
include(../common/unix.conf)
|
|
109 |
load(qt_config)
|