0
|
1 |
#
|
|
2 |
# qmake configuration for vxworks-simpentium-g++
|
|
3 |
#
|
|
4 |
|
|
5 |
MAKEFILE_GENERATOR = UNIX
|
|
6 |
TEMPLATE = app
|
|
7 |
CONFIG += qt warn_on release incremental link_prl vxworks
|
|
8 |
QT += core gui network
|
|
9 |
QMAKE_INCREMENTAL_STYLE = sublib
|
|
10 |
DEFINES += VXWORKS
|
|
11 |
|
|
12 |
VXWORKS_ARCH = simlinux
|
|
13 |
VXWORKS_CPU = SIMLINUX
|
|
14 |
VXWORKS_ARCH_MUNCH = pentium
|
|
15 |
|
|
16 |
include(../../common/g++.conf)
|
|
17 |
include(../../common/linux.conf)
|
|
18 |
|
|
19 |
QMAKE_CC = cc$$VXWORKS_ARCH_MUNCH
|
|
20 |
QMAKE_CFLAGS = -fno-builtin -I$(WIND_BASE)/target/h -I$(WIND_BASE)/target/h/wrn/coreip -DCPU=$$upper($$VXWORKS_ARCH) -DVX_CPU_FAMILY=$$VXWORKS_ARCH -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL -D_VSB_CONFIG_FILE=\'<../lib/h/config/vsbConfig.h>\'
|
|
21 |
QMAKE_CFLAGS_SHLIB = # remove -fPIC
|
|
22 |
QMAKE_CFLAGS_STATIC_LIB = # remove -fPIC
|
|
23 |
QMAKE_CXX = c++$$VXWORKS_ARCH_MUNCH
|
|
24 |
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
|
|
25 |
QMAKE_CXXFLAGS_SHLIB= # remove -fPIC
|
|
26 |
QMAKE_CXXFLAGS_STATIC_LIB= # remove -fPIC
|
|
27 |
QMAKE_LINK = $$QMAKE_CXX
|
|
28 |
QMAKE_LINK_SHLIB = $$QMAKE_CXX
|
|
29 |
QMAKE_LFLAGS_SHLIB = -Wl,-Ur -L $(WIND_BASE)/target/lib/$$VXWORKS_ARCH/$$VXWORKS_CPU/common # remove -shared
|
|
30 |
QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
|
|
31 |
QMAKE_LFLAGS_APP += -Wl,-Ur -L $(WIND_BASE)/target/lib/$$VXWORKS_ARCH/$$VXWORKS_CPU/common
|
|
32 |
QMAKE_LIBS_NETWORK = # -lnetwrap # only needed if kernel is missing gethostbyname() and friends
|
|
33 |
QMAKE_LIBS_DYNLOAD =
|
|
34 |
QMAKE_LIBS_THREAD =
|
|
35 |
|
|
36 |
load(qt_config)
|
|
37 |
|