0
|
1 |
#
|
|
2 |
# qmake configuration for qnx-g++
|
|
3 |
#
|
|
4 |
# Written for QNX RTOS v6
|
|
5 |
#
|
|
6 |
|
|
7 |
MAKEFILE_GENERATOR = UNIX
|
|
8 |
TEMPLATE = app
|
|
9 |
CONFIG += qt warn_on release link_prl
|
|
10 |
QT += core gui
|
|
11 |
|
|
12 |
QMAKE_CC = ntoppc-gcc-4.3.3
|
|
13 |
QMAKE_CFLAGS += -pipe
|
|
14 |
QMAKE_CFLAGS_DEPS += -M
|
|
15 |
QMAKE_CFLAGS_WARN_ON += -Wall -W
|
|
16 |
QMAKE_CFLAGS_WARN_OFF += -w
|
|
17 |
QMAKE_CFLAGS_RELEASE += -O2
|
|
18 |
QMAKE_CFLAGS_DEBUG += -g
|
|
19 |
QMAKE_CFLAGS_SHLIB += -fPIC
|
|
20 |
QMAKE_CFLAGS_STATIC_LIB += -fPIC
|
|
21 |
QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
|
|
22 |
QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
|
|
23 |
QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
|
|
24 |
QMAKE_CFLAGS_USE_PRECOMPILE += -include ${QMAKE_PCH_OUTPUT_BASE}
|
|
25 |
QMAKE_COMPILER_DEFINES += __QNXNTO__
|
|
26 |
|
|
27 |
QMAKE_CXX = ntoppc-g++-4.3.3
|
|
28 |
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
|
|
29 |
QMAKE_CXXFLAGS_DEPS += $$QMAKE_CFLAGS_DEPS
|
|
30 |
QMAKE_CXXFLAGS_WARN_ON += $$QMAKE_CFLAGS_WARN_ON
|
|
31 |
QMAKE_CXXFLAGS_WARN_OFF += $$QMAKE_CFLAGS_WARN_OFF
|
|
32 |
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE
|
|
33 |
QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_DEBUG
|
|
34 |
QMAKE_CXXFLAGS_SHLIB += $$QMAKE_CFLAGS_SHLIB
|
|
35 |
QMAKE_CXXFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_STATIC_LIB
|
|
36 |
QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC
|
|
37 |
QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
|
|
38 |
QMAKE_CXXFLAGS_PRECOMPILE += -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
|
|
39 |
QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
|
|
40 |
|
|
41 |
QMAKE_LINK = ntoppc-g++-4.3.3
|
|
42 |
QMAKE_LINK_SHLIB = ntoppc-g++-4.3.3
|
|
43 |
QMAKE_LFLAGS += -Wl,--no-undefined
|
|
44 |
QMAKE_LFLAGS_RELEASE +=
|
|
45 |
QMAKE_LFLAGS_DEBUG +=
|
|
46 |
QMAKE_LFLAGS_APP +=
|
|
47 |
QMAKE_LFLAGS_SHLIB += -shared
|
|
48 |
QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB
|
|
49 |
QMAKE_LFLAGS_SONAME += -Wl,-soname,
|
|
50 |
QMAKE_LFLAGS_THREAD +=
|
|
51 |
QMAKE_RPATH = -Wl,-rpath,
|
|
52 |
|
|
53 |
QMAKE_PCH_OUTPUT_EXT = .gch
|
|
54 |
|
|
55 |
# -Bsymbolic-functions (ld) support
|
|
56 |
QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions
|
|
57 |
QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list,
|
|
58 |
|
|
59 |
include(../../common/unix.conf)
|
|
60 |
|
|
61 |
QMAKE_CFLAGS_THREAD = -D_REENTRANT
|
|
62 |
QMAKE_CXXFLAGS_THREAD = $$QMAKE_CLFAGS_THREAD
|
|
63 |
|
|
64 |
QMAKE_INCDIR =
|
|
65 |
QMAKE_LIBDIR =
|
|
66 |
QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS]
|
|
67 |
QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS]
|
|
68 |
|
|
69 |
#QMAKE_LIBS = -lunix
|
|
70 |
QMAKE_LIBS =
|
|
71 |
QMAKE_LIBS_DYNLOAD =
|
|
72 |
QMAKE_LIBS_THREAD =
|
|
73 |
QMAKE_LIBS_NETWORK += -lsocket
|
|
74 |
QMAKE_LIBS_GUI += -lsocket
|
|
75 |
|
|
76 |
QMAKE_MOC = $$[QT_INSTALL_BINS]/moc
|
|
77 |
QMAKE_UIC = $$[QT_INSTALL_BINS]/uic
|
|
78 |
|
|
79 |
QMAKE_AR = ar cqs
|
|
80 |
QMAKE_RANLIB =
|
|
81 |
|
|
82 |
QMAKE_TAR = tar -cf
|
|
83 |
QMAKE_GZIP = gzip -9f
|
|
84 |
|
|
85 |
QMAKE_COPY = cp -f
|
|
86 |
QMAKE_COPY_FILE = $(COPY)
|
|
87 |
QMAKE_COPY_DIR = $(COPY) -r
|
|
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 |
QMAKE_STRIP = strip
|
|
94 |
QMAKE_STRIPFLAGS_LIB += --strip-unneeded
|
|
95 |
QMAKE_CHK_DIR_EXISTS = test -d
|
|
96 |
QMAKE_MKDIR = mkdir -p
|
|
97 |
load(qt_config)
|