2 # qmake configuration for linux-icc
5 MAKEFILE_GENERATOR = UNIX
6 CONFIG += gdb_dwarf_index
8 QMAKE_COMPILER = gcc intel_icc # icc pretends to be gcc
15 QMAKE_CFLAGS = -falign-stack=maintain-16-byte
16 QMAKE_CFLAGS_DEPS = -M
17 QMAKE_CFLAGS_WARN_ON = -w1 -Wcheck -wd654,1572,411,873,1125,2259,2261
18 QMAKE_CFLAGS_WARN_OFF = -w
19 QMAKE_CFLAGS_RELEASE = -O2 -falign-functions=16 -ansi-alias -fstrict-aliasing
20 QMAKE_CFLAGS_DEBUG = -O0 -g
21 QMAKE_CFLAGS_SHLIB = -fPIC -fno-jump-tables
22 QMAKE_CFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_SHLIB
24 QMAKE_CFLAGS_THREAD = -D_REENTRANT
26 QMAKE_CFLAGS_SSE2 += -xSSE2
27 QMAKE_CFLAGS_SSE3 += -xSSE3
28 QMAKE_CFLAGS_SSSE3 += -xSSSE3
29 QMAKE_CFLAGS_SSE4_1 += -xSSE4.1
30 QMAKE_CFLAGS_SSE4_2 += -xSSE4.2
31 QMAKE_CFLAGS_AVX += -xAVX
32 QMAKE_CFLAGS_AVX2 += -xCORE-AVX2
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 QMAKE_CXXFLAGS_CXX11 = -std=c++0x
55 QMAKE_LINK_SHLIB = icpc
57 QMAKE_LFLAGS_RELEASE =
59 QMAKE_LFLAGS_SHLIB = -shared -shared-intel
60 QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
61 QMAKE_LFLAGS_SONAME = -Wl,-soname,
63 QMAKE_LFLAGS_NOUNDEF = -Wl,-z,defs
64 QMAKE_LFLAGS_RPATH = -Wl,-rpath,
68 QMAKE_LIBS_DYNLOAD = -ldl
69 QMAKE_LIBS_X11 = -lXext -lX11 -lm
70 QMAKE_LIBS_NIS = -lnsl
71 QMAKE_LIBS_OPENGL = -lGL
72 QMAKE_LIBS_OPENGL_QT = -lGL
73 QMAKE_LIBS_THREAD = -lpthread
76 QMAKE_OBJCOPY = objcopy
79 QMAKE_CLEAN = -r $(OBJECTS_DIR)/ti_files
82 CONFIG += icc_pch_style
83 QMAKE_PCH_OUTPUT_EXT = .pchi
84 QMAKE_CXXFLAGS_USE_PRECOMPILE = -pch-use ${QMAKE_PCH_OUTPUT} -include ${QMAKE_PCH_INPUT}
85 QMAKE_CXXFLAGS_PRECOMPILE = -c -pch-create ${QMAKE_PCH_OUTPUT} -include ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_TEMP_OBJECT} ${QMAKE_PCH_TEMP_SOURCE}
87 # -Bsymbolic-functions (ld) support
88 QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions
89 QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list,
91 # Symbol visibility control
92 QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
93 QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
95 include(../common/linux.conf)