-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | Vars.make | 3 | ||||
-rw-r--r-- | mkspecs/qws/linux-ramses-g++/qmake.conf | 76 | ||||
-rw-r--r-- | mkspecs/qws/linux-ramses-g++/qplatformdefs.h | 103 |
4 files changed, 185 insertions, 0 deletions
@@ -1,101 +1,104 @@ | |||
1 | #!/usr/bin/make -f | 1 | #!/usr/bin/make -f |
2 | 2 | ||
3 | export TOPDIR:=$(shell pwd) | 3 | export TOPDIR:=$(shell pwd) |
4 | 4 | ||
5 | include $(TOPDIR)/Vars.make | 5 | include $(TOPDIR)/Vars.make |
6 | ifneq ($(wildcard $(TOPDIR)/Vars.local),) | ||
7 | include $(TOPDIR)/Vars.local | ||
8 | endif | ||
6 | 9 | ||
7 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ | 10 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ |
8 | defconfig allyesconfig allnoconfig allmodconfig \ | 11 | defconfig allyesconfig allnoconfig allmodconfig \ |
9 | clean-configs $(TOPDIR)/scripts/subst $(TOPDIR)/scripts/filesubst \ | 12 | clean-configs $(TOPDIR)/scripts/subst $(TOPDIR)/scripts/filesubst \ |
10 | ipks | 13 | ipks |
11 | 14 | ||
12 | configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/development/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/libopie/ofileselector/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/libsql/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/noncore/apps/opie-console/test/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/tools/calc2/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/todayplugins/config.in | 15 | configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/development/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/libopie/ofileselector/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/libsql/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/noncore/apps/opie-console/test/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/tools/calc2/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/todayplugins/config.in |
13 | 16 | ||
14 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) | 17 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) |
15 | # in order to have a full set of config.in files. | 18 | # in order to have a full set of config.in files. |
16 | # .depends depends on $(TOPDIR)/.config | 19 | # .depends depends on $(TOPDIR)/.config |
17 | # everything else depends on .depends, to ensure the dependencies are | 20 | # everything else depends on .depends, to ensure the dependencies are |
18 | # intact. | 21 | # intact. |
19 | # | 22 | # |
20 | # NOTE: The order in which things happen in this makefile is | 23 | # NOTE: The order in which things happen in this makefile is |
21 | # -critical-. Do not rearrange this! | 24 | # -critical-. Do not rearrange this! |
22 | 25 | ||
23 | all : $(TOPDIR)/.config | 26 | all : $(TOPDIR)/.config |
24 | 27 | ||
25 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config | 28 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config |
26 | @find $(OPIEDIR)/ -type f -name \*.control | ( for ctrl in `cat`; do \ | 29 | @find $(OPIEDIR)/ -type f -name \*.control | ( for ctrl in `cat`; do \ |
27 | prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \ | 30 | prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \ |
28 | preinst=`echo $$ctrl|sed -e 's,\.control$$,.preinst,'`; \ | 31 | preinst=`echo $$ctrl|sed -e 's,\.control$$,.preinst,'`; \ |
29 | postrm=`echo $$ctrl|sed -e 's,\.control$$,.postrm,'`; \ | 32 | postrm=`echo $$ctrl|sed -e 's,\.control$$,.postrm,'`; \ |
30 | postinst=`echo $$ctrl|sed -e 's,\.control$$,.postinst,'`; \ | 33 | postinst=`echo $$ctrl|sed -e 's,\.control$$,.postinst,'`; \ |
31 | echo "Building ipk of $$ctrl"; \ | 34 | echo "Building ipk of $$ctrl"; \ |
32 | cd $(OPIEDIR); $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$ctrl --prerm=$$prerm --preinst=$$preinst --postrm=$$postrm --postinst=$$postinst --strip=$(STRIP) $(OPIEDIR); \ | 35 | cd $(OPIEDIR); $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$ctrl --prerm=$$prerm --preinst=$$preinst --postrm=$$postrm --postinst=$$postinst --strip=$(STRIP) $(OPIEDIR); \ |
33 | done ) | 36 | done ) |
34 | 37 | ||
35 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs | 38 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs |
36 | 39 | ||
37 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs | 40 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs |
38 | 41 | ||
39 | clean-configs : | 42 | clean-configs : |
40 | @echo "Wiping generated config.in files..." | 43 | @echo "Wiping generated config.in files..." |
41 | @-rm -f $(configs) | 44 | @-rm -f $(configs) |
42 | 45 | ||
43 | ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),) | 46 | ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),) |
44 | include $(TOPDIR)/.depends.cfgs | 47 | include $(TOPDIR)/.depends.cfgs |
45 | endif | 48 | endif |
46 | 49 | ||
47 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) | 50 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) |
48 | 51 | ||
49 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) | 52 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) |
50 | $(call descend,scripts/kconfig,conf) | 53 | $(call descend,scripts/kconfig,conf) |
51 | @if [ ! -e $@ ]; then \ | 54 | @if [ ! -e $@ ]; then \ |
52 | cp $(TOPDIR)/def-configs/opie $@; \ | 55 | cp $(TOPDIR)/def-configs/opie $@; \ |
53 | fi; | 56 | fi; |
54 | @$(MAKE) -C scripts/kconfig conf; | 57 | @$(MAKE) -C scripts/kconfig conf; |
55 | ./scripts/kconfig/conf -s ./config.in | 58 | ./scripts/kconfig/conf -s ./config.in |
56 | 59 | ||
57 | # config rules must have the $(configs) var defined | 60 | # config rules must have the $(configs) var defined |
58 | # at the time that they run. we must ensure that .depends.cfgs | 61 | # at the time that they run. we must ensure that .depends.cfgs |
59 | # is built and included by the time we reach this point. | 62 | # is built and included by the time we reach this point. |
60 | 63 | ||
61 | xconfig : | 64 | xconfig : |
62 | $(call descend,scripts/kconfig,qconf) | 65 | $(call descend,scripts/kconfig,qconf) |
63 | LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ | 66 | LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ |
64 | ./scripts/kconfig/qconf ./config.in | 67 | ./scripts/kconfig/qconf ./config.in |
65 | 68 | ||
66 | menuconfig : scripts/lxdialog/lxdialog | 69 | menuconfig : scripts/lxdialog/lxdialog |
67 | $(call descend,scripts/kconfig,mconf) | 70 | $(call descend,scripts/kconfig,mconf) |
68 | ./scripts/kconfig/mconf ./config.in | 71 | ./scripts/kconfig/mconf ./config.in |
69 | 72 | ||
70 | config : | 73 | config : |
71 | $(call descend,scripts/kconfig,conf) | 74 | $(call descend,scripts/kconfig,conf) |
72 | ./scripts/kconfig/conf ./config.in | 75 | ./scripts/kconfig/conf ./config.in |
73 | 76 | ||
74 | oldconfig : | 77 | oldconfig : |
75 | $(call descend,scripts/kconfig,conf) | 78 | $(call descend,scripts/kconfig,conf) |
76 | ./scripts/kconfig/conf -o ./config.in | 79 | ./scripts/kconfig/conf -o ./config.in |
77 | 80 | ||
78 | randconfig : | 81 | randconfig : |
79 | $(call descend,scripts/kconfig,conf) | 82 | $(call descend,scripts/kconfig,conf) |
80 | ./scripts/kconfig/conf -r ./config.in | 83 | ./scripts/kconfig/conf -r ./config.in |
81 | 84 | ||
82 | allyesconfig : | 85 | allyesconfig : |
83 | $(call descend,scripts/kconfig,conf) | 86 | $(call descend,scripts/kconfig,conf) |
84 | ./scripts/kconfig/conf -y ./config.in | 87 | ./scripts/kconfig/conf -y ./config.in |
85 | 88 | ||
86 | allnoconfig : | 89 | allnoconfig : |
87 | $(call descend,scripts/kconfig,conf) | 90 | $(call descend,scripts/kconfig,conf) |
88 | ./scripts/kconfig/conf -n ./config.in | 91 | ./scripts/kconfig/conf -n ./config.in |
89 | 92 | ||
90 | defconfig : | 93 | defconfig : |
91 | $(call descend,scripts/kconfig,conf) | 94 | $(call descend,scripts/kconfig,conf) |
92 | ./scripts/kconfig/conf -d ./config.in | 95 | ./scripts/kconfig/conf -d ./config.in |
93 | 96 | ||
94 | 97 | ||
95 | export | 98 | export |
96 | 99 | ||
97 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) | 100 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |
98 | 101 | ||
99 | export include-config := 1 | 102 | export include-config := 1 |
100 | 103 | ||
101 | -include $(TOPDIR)/.config | 104 | -include $(TOPDIR)/.config |
@@ -1,85 +1,88 @@ | |||
1 | ifndef QTDIR | 1 | ifndef QTDIR |
2 | $(error QTDIR not set) | 2 | $(error QTDIR not set) |
3 | endif | 3 | endif |
4 | 4 | ||
5 | prefix=/opt/QtPalmtop | 5 | prefix=/opt/QtPalmtop |
6 | 6 | ||
7 | ifeq ($(OPIEDIR),) | 7 | ifeq ($(OPIEDIR),) |
8 | export OPIEDIR:=$(TOPDIR) | 8 | export OPIEDIR:=$(TOPDIR) |
9 | endif | 9 | endif |
10 | ifeq ($(IPK_DIR),) | 10 | ifeq ($(IPK_DIR),) |
11 | export IPK_DIR:=$(OPIEDIR) | 11 | export IPK_DIR:=$(OPIEDIR) |
12 | endif | 12 | endif |
13 | 13 | ||
14 | ifneq ($(wildcard $(TOPDIR)/.config),) | 14 | ifneq ($(wildcard $(TOPDIR)/.config),) |
15 | include $(TOPDIR)/.config | 15 | include $(TOPDIR)/.config |
16 | endif | 16 | endif |
17 | 17 | ||
18 | export QMAKE:=$(OPIEDIR)/qmake/qmake | 18 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
19 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs | 19 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
20 | 20 | ||
21 | ifeq ($(QPE_VERSION),) | 21 | ifeq ($(QPE_VERSION),) |
22 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) | 22 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
23 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) | 23 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
24 | VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) | 24 | VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) |
25 | QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) | 25 | QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) |
26 | 26 | ||
27 | ifeq ($(QPE_VERSION),..) | 27 | ifeq ($(QPE_VERSION),..) |
28 | QPE_VERSION=0.9.3 | 28 | QPE_VERSION=0.9.3 |
29 | endif | 29 | endif |
30 | endif | 30 | endif |
31 | export QPE_VERSION | 31 | export QPE_VERSION |
32 | 32 | ||
33 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) | 33 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) |
34 | ifeq ($(VERSION_CVS),) | 34 | ifeq ($(VERSION_CVS),) |
35 | VERSION_CVS:=$(shell date +%Y%m%d) | 35 | VERSION_CVS:=$(shell date +%Y%m%d) |
36 | endif | 36 | endif |
37 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) | 37 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) |
38 | SUB_VERSION:=$(VERSION_CVS) | 38 | SUB_VERSION:=$(VERSION_CVS) |
39 | endif | 39 | endif |
40 | export SUB_VERSION | 40 | export SUB_VERSION |
41 | 41 | ||
42 | ifeq ($(QTE_REVISION),) | 42 | ifeq ($(QTE_REVISION),) |
43 | QTE_REVISION=5 | 43 | QTE_REVISION=5 |
44 | endif | 44 | endif |
45 | export QTE_REVISION | 45 | export QTE_REVISION |
46 | 46 | ||
47 | export DEB_VERSION=2.0 | 47 | export DEB_VERSION=2.0 |
48 | 48 | ||
49 | ifeq ($(QTE_BASEVERSION),) | 49 | ifeq ($(QTE_BASEVERSION),) |
50 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) | 50 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) |
51 | QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;') | 51 | QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;') |
52 | else | 52 | else |
53 | QTE_BASEVERSION=2.3.5 | 53 | QTE_BASEVERSION=2.3.5 |
54 | endif | 54 | endif |
55 | endif | 55 | endif |
56 | export QTE_BASEVERSION | 56 | export QTE_BASEVERSION |
57 | 57 | ||
58 | ifeq ($(QTE_VERSION),) | 58 | ifeq ($(QTE_VERSION),) |
59 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) | 59 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) |
60 | QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') | 60 | QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') |
61 | else | 61 | else |
62 | QTE_VERSION=2.3.5 | 62 | QTE_VERSION=2.3.5 |
63 | endif | 63 | endif |
64 | endif | 64 | endif |
65 | export QTE_VERSION | 65 | export QTE_VERSION |
66 | 66 | ||
67 | export PATH:=$(OPIEDIR)/scripts:$(PATH) | 67 | export PATH:=$(OPIEDIR)/scripts:$(PATH) |
68 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) | 68 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
69 | 69 | ||
70 | ifdef CONFIG_OPTIMIZATIONS | 70 | ifdef CONFIG_OPTIMIZATIONS |
71 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) | 71 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
72 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) | 72 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
73 | endif | 73 | endif |
74 | 74 | ||
75 | ifeq ($(STRIP),) | 75 | ifeq ($(STRIP),) |
76 | ifneq ($(CONFIG_TARGET_X86),) | 76 | ifneq ($(CONFIG_TARGET_X86),) |
77 | STRIP=strip | 77 | STRIP=strip |
78 | endif | 78 | endif |
79 | ifneq ($(CONFIG_TARGET_IPAQ),) | 79 | ifneq ($(CONFIG_TARGET_IPAQ),) |
80 | STRIP=arm-linux-strip | 80 | STRIP=arm-linux-strip |
81 | endif | 81 | endif |
82 | ifneq ($(CONFIG_TARGET_SHARP),) | 82 | ifneq ($(CONFIG_TARGET_SHARP),) |
83 | STRIP=arm-linux-strip | 83 | STRIP=arm-linux-strip |
84 | endif | 84 | endif |
85 | ifneq ($(CONFIG_TARGET_RAMSES),) | ||
86 | STRIP=arm-linux-strip | ||
87 | endif | ||
85 | endif | 88 | endif |
diff --git a/mkspecs/qws/linux-ramses-g++/qmake.conf b/mkspecs/qws/linux-ramses-g++/qmake.conf new file mode 100644 index 0000000..0eb96e3 --- a/dev/null +++ b/mkspecs/qws/linux-ramses-g++/qmake.conf | |||
@@ -0,0 +1,76 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for linux-g++ using the arm-linux-g++ crosscompiler | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt warn_on release | ||
10 | |||
11 | QMAKE_CC = ccache arm-linux-gcc | ||
12 | QMAKE_LEX = flex | ||
13 | QMAKE_LEXFLAGS = | ||
14 | QMAKE_YACC = yacc | ||
15 | QMAKE_YACCFLAGS = -d | ||
16 | QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) | ||
17 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
18 | QMAKE_CFLAGS_WARN_OFF= | ||
19 | QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) | ||
20 | QMAKE_CFLAGS_DEBUG= -g | ||
21 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
22 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
23 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
24 | |||
25 | QMAKE_CXX = ccache arm-linux-g++ -DQT_QWS_RAMSES -DQT_QWS_DEVFS -DQT_QWS_CUSTOM | ||
26 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) | ||
27 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
28 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
29 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
30 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
31 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
32 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
33 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
34 | |||
35 | QMAKE_INCDIR = | ||
36 | QMAKE_LIBDIR = | ||
37 | QMAKE_INCDIR_X11= | ||
38 | QMAKE_LIBDIR_X11= | ||
39 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
40 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
41 | QMAKE_INCDIR_OPENGL= /usr/X11R6/include | ||
42 | QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib | ||
43 | |||
44 | QMAKE_LINK = arm-linux-gcc | ||
45 | QMAKE_LINK_SHLIB= arm-linux-gcc | ||
46 | QMAKE_LFLAGS = $(LFLAGS_EXTRA) | ||
47 | QMAKE_LFLAGS_RELEASE= | ||
48 | QMAKE_LFLAGS_DEBUG= | ||
49 | QMAKE_LFLAGS_SHLIB = -shared | ||
50 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
51 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
52 | QMAKE_LFLAGS_THREAD = | ||
53 | QMAKE_RPATH = -Wl,-rpath, | ||
54 | |||
55 | QMAKE_LIBS = $(LIBS_EXTRA) | ||
56 | QMAKE_LIBS_DYNLOAD = -ldl | ||
57 | QMAKE_LIBS_X11 = | ||
58 | QMAKE_LIBS_X11SM= | ||
59 | QMAKE_LIBS_QT = -lqte | ||
60 | QMAKE_LIBS_QT_THREAD = -lqte-mt | ||
61 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
62 | QMAKE_LIBS_THREAD = -lpthread | ||
63 | |||
64 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
65 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
66 | |||
67 | QMAKE_AR = ar cqs | ||
68 | QMAKE_RANLIB = | ||
69 | |||
70 | QMAKE_TAR = tar -cf | ||
71 | QMAKE_GZIP = gzip -9f | ||
72 | |||
73 | QMAKE_COPY = cp -f | ||
74 | QMAKE_MOVE = mv -f | ||
75 | QMAKE_DEL_FILE = rm -f | ||
76 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/qws/linux-ramses-g++/qplatformdefs.h b/mkspecs/qws/linux-ramses-g++/qplatformdefs.h new file mode 100644 index 0000000..8fea644 --- a/dev/null +++ b/mkspecs/qws/linux-ramses-g++/qplatformdefs.h | |||
@@ -0,0 +1,103 @@ | |||
1 | #ifndef QPLATFORMDEFS_H | ||
2 | #define QPLATFORMDEFS_H | ||
3 | |||
4 | // Get Qt defines/settings | ||
5 | |||
6 | #include "qglobal.h" | ||
7 | |||
8 | // Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs | ||
9 | |||
10 | // DNS system header files are a mess! | ||
11 | // <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using | ||
12 | // 'u_char' and includes <sys/types.h>. Now the problem is that | ||
13 | // <sys/types.h> defines 'u_char' only if __USE_BSD is defined. | ||
14 | // __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. | ||
15 | #ifndef _BSD_SOURCE | ||
16 | # define _BSD_SOURCE | ||
17 | #endif | ||
18 | |||
19 | // 1) need to reset default environment if _BSD_SOURCE is defined | ||
20 | // 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 | ||
21 | // 3) it seems older glibc need this to include the X/Open stuff | ||
22 | #ifndef _GNU_SOURCE | ||
23 | # define _GNU_SOURCE | ||
24 | #endif | ||
25 | |||
26 | #include <unistd.h> | ||
27 | |||
28 | |||
29 | // We are hot - unistd.h should have turned on the specific APIs we requested | ||
30 | |||
31 | |||
32 | #ifdef QT_THREAD_SUPPORT | ||
33 | #include <pthread.h> | ||
34 | #endif | ||
35 | |||
36 | #include <dirent.h> | ||
37 | #include <fcntl.h> | ||
38 | #include <grp.h> | ||
39 | #include <pwd.h> | ||
40 | #include <signal.h> | ||
41 | #include <dlfcn.h> | ||
42 | #define QT_RTLD_FLAGSRTLD_LAZY|RTLD_GLOBAL | ||
43 | |||
44 | #include <sys/types.h> | ||
45 | #include <sys/ioctl.h> | ||
46 | #include <sys/ipc.h> | ||
47 | #include <sys/time.h> | ||
48 | #include <sys/shm.h> | ||
49 | #include <sys/socket.h> | ||
50 | #include <sys/stat.h> | ||
51 | #include <sys/wait.h> | ||
52 | |||
53 | // DNS header files are not fully covered by X/Open specifications. | ||
54 | // In particular nothing is said about res_* :/ | ||
55 | // Header files <netinet/in.h> and <arpa/nameser.h> are not included | ||
56 | // by <resolv.h> on older versions of the GNU C library. Note that | ||
57 | // <arpa/nameser.h> must be included before <resolv.h>. | ||
58 | #include <netinet/in.h> | ||
59 | #include <arpa/nameser.h> | ||
60 | #include <resolv.h> | ||
61 | |||
62 | |||
63 | #if !defined(QT_NO_COMPAT) | ||
64 | #define QT_STATBUF struct stat | ||
65 | #define QT_STATBUF4TSTATstruct stat | ||
66 | #define QT_STAT ::stat | ||
67 | #define QT_FSTAT ::fstat | ||
68 | #define QT_STAT_REG S_IFREG | ||
69 | #define QT_STAT_DIR S_IFDIR | ||
70 | #define QT_STAT_MASK S_IFMT | ||
71 | #define QT_STAT_LNK S_IFLNK | ||
72 | #define QT_FILENO fileno | ||
73 | #define QT_OPEN ::open | ||
74 | #define QT_CLOSE ::close | ||
75 | #define QT_LSEEK ::lseek | ||
76 | #define QT_READ ::read | ||
77 | #define QT_WRITE ::write | ||
78 | #define QT_ACCESS ::access | ||
79 | #define QT_GETCWD ::getcwd | ||
80 | #define QT_CHDIR ::chdir | ||
81 | #define QT_MKDIR ::mkdir | ||
82 | #define QT_RMDIR ::rmdir | ||
83 | #define QT_OPEN_RDONLY O_RDONLY | ||
84 | #define QT_OPEN_WRONLY O_WRONLY | ||
85 | #define QT_OPEN_RDWR O_RDWR | ||
86 | #define QT_OPEN_CREAT O_CREAT | ||
87 | #define QT_OPEN_TRUNC O_TRUNC | ||
88 | #define QT_OPEN_APPEND O_APPEND | ||
89 | #endif | ||
90 | |||
91 | #define QT_SIGNAL_RETTYPEvoid | ||
92 | #define QT_SIGNAL_ARGS int | ||
93 | #define QT_SIGNAL_IGNORESIG_IGN | ||
94 | |||
95 | #define QT_SOCKLEN_T socklen_t | ||
96 | |||
97 | #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) | ||
98 | #define QT_SNPRINTF ::snprintf | ||
99 | #define QT_VSNPRINTF ::vsnprintf | ||
100 | #endif | ||
101 | |||
102 | |||
103 | #endif // QPLATFORMDEFS_H | ||