summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xmkspecs/aix-g++-64/qmake.conf81
-rw-r--r--mkspecs/aix-g++/qmake.conf5
-rw-r--r--mkspecs/aix-xlc-64/qmake.conf11
-rw-r--r--mkspecs/aix-xlc/qmake.conf11
-rw-r--r--mkspecs/aix-xlc/qplatformdefs.h2
-rw-r--r--mkspecs/bsdi-g++/qmake.conf4
-rw-r--r--mkspecs/cygwin-g++/qmake.conf12
-rw-r--r--mkspecs/cygwin-g++/qplatformdefs.h6
-rw-r--r--mkspecs/darwin-g++/qmake.conf20
-rw-r--r--mkspecs/darwin-g++/qplatformdefs.h2
-rw-r--r--mkspecs/dgux-g++/qmake.conf4
-rw-r--r--mkspecs/freebsd-g++/qmake.conf4
-rw-r--r--mkspecs/hpux-acc-64/qmake.conf23
-rw-r--r--mkspecs/hpux-acc-64/qplatformdefs.h12
-rw-r--r--mkspecs/hpux-acc-o64/qmake.conf10
-rw-r--r--mkspecs/hpux-acc-o64/qplatformdefs.h8
-rw-r--r--mkspecs/hpux-acc/qmake.conf23
-rw-r--r--mkspecs/hpux-acc/qplatformdefs.h9
-rw-r--r--mkspecs/hpux-cc/qmake.conf9
-rw-r--r--mkspecs/hpux-g++/qmake.conf22
-rw-r--r--mkspecs/hpux-g++/qplatformdefs.h11
-rw-r--r--mkspecs/hpuxi-acc-32/qmake.conf124
-rw-r--r--mkspecs/hpuxi-acc-32/qplatformdefs.h88
-rw-r--r--mkspecs/hpuxi-acc-64/qmake.conf124
-rw-r--r--mkspecs/hpuxi-acc-64/qplatformdefs.h88
-rw-r--r--mkspecs/hurd-g++/qmake.conf7
-rw-r--r--mkspecs/irix-cc-64/qmake.conf8
-rw-r--r--mkspecs/irix-cc-64/qplatformdefs.h4
-rw-r--r--mkspecs/irix-cc-o32/qmake.conf8
-rw-r--r--mkspecs/irix-cc/qmake.conf8
-rw-r--r--mkspecs/irix-cc/qplatformdefs.h4
-rw-r--r--mkspecs/irix-g++/qmake.conf10
-rw-r--r--mkspecs/irix-g++/qplatformdefs.h6
-rw-r--r--mkspecs/linux-cxx/qmake.conf8
-rw-r--r--mkspecs/linux-ecc-64/qmake.conf86
-rw-r--r--mkspecs/linux-ecc-64/qplatformdefs.h106
-rw-r--r--mkspecs/linux-g++-64/qmake.conf90
-rw-r--r--mkspecs/linux-g++-64/qplatformdefs.h106
-rw-r--r--mkspecs/linux-g++/qmake.conf12
-rw-r--r--mkspecs/linux-icc/qmake.conf8
-rw-r--r--mkspecs/linux-kcc/qmake.conf8
-rw-r--r--mkspecs/linux-kylix/qmake.conf84
-rw-r--r--mkspecs/linux-kylix/qplatformdefs.h106
-rw-r--r--mkspecs/linux-pgcc/qmake.conf8
-rw-r--r--mkspecs/lynxos-g++/qmake.conf87
-rw-r--r--mkspecs/lynxos-g++/qplatformdefs.h91
-rw-r--r--mkspecs/macx-g++/Info.plist.app4
-rw-r--r--mkspecs/macx-g++/qmake.conf30
-rw-r--r--mkspecs/macx-mwerks/qmake.conf4
-rwxr-xr-xmkspecs/macx-pbuilder/Info.plist.app4
-rwxr-xr-xmkspecs/macx-pbuilder/qmake.conf16
-rw-r--r--mkspecs/netbsd-g++/qmake.conf4
-rw-r--r--mkspecs/openbsd-g++/qmake.conf4
-rw-r--r--mkspecs/pyfix.py82
-rw-r--r--mkspecs/qnx-g++/qmake.conf8
-rw-r--r--mkspecs/qws/freebsd-generic-g++/qmake.conf7
-rw-r--r--mkspecs/qws/freebsd-generic-g++/qplatformdefs.h103
-rw-r--r--mkspecs/qws/linux-arm-g++/qmake.conf11
-rw-r--r--mkspecs/qws/linux-generic-g++/qmake.conf8
-rw-r--r--mkspecs/qws/linux-ipaq-g++/qmake.conf13
-rw-r--r--mkspecs/qws/linux-mips-g++/qmake.conf7
-rw-r--r--mkspecs/qws/linux-ramses-g++/qmake.conf9
-rw-r--r--mkspecs/qws/linux-sharp-g++/qmake.conf13
-rw-r--r--mkspecs/qws/linux-simpad-g++/qmake.conf10
-rw-r--r--mkspecs/qws/linux-x86-g++/qmake.conf7
-rwxr-xr-xmkspecs/qws/linux-yopy-g++/qmake.conf4
-rw-r--r--mkspecs/qws/macx-generic-g++/qmake.conf14
-rw-r--r--mkspecs/qws/qnx4-cc/qmake.conf15
-rw-r--r--mkspecs/qws/qnx6-generic-cc/qmake.conf12
-rw-r--r--mkspecs/qws/qnx6-generic-g++/qmake.conf12
-rw-r--r--mkspecs/qws/solaris-generic-g++/qmake.conf9
-rw-r--r--mkspecs/qws/solaris-generic-g++/qplatformdefs.h12
-rw-r--r--mkspecs/reliant-cds-64/qmake.conf10
-rw-r--r--mkspecs/reliant-cds/qmake.conf10
-rw-r--r--mkspecs/sco-cc/qmake.conf16
-rw-r--r--mkspecs/sco-cc/qplatformdefs.h8
-rw-r--r--mkspecs/sco-g++/qmake.conf6
-rw-r--r--mkspecs/sco-g++/qplatformdefs.h4
-rw-r--r--mkspecs/solaris-cc-64/qmake.conf13
-rw-r--r--mkspecs/solaris-cc/qmake.conf13
-rw-r--r--mkspecs/solaris-cc/qplatformdefs.h10
-rw-r--r--mkspecs/solaris-g++-64/qmake.conf14
-rw-r--r--mkspecs/solaris-g++-64/qplatformdefs.h8
-rw-r--r--mkspecs/solaris-g++/qmake.conf10
-rw-r--r--mkspecs/solaris-g++/qplatformdefs.h12
-rw-r--r--mkspecs/solaris-kcc/qmake.conf10
-rw-r--r--mkspecs/tru64-cxx/qmake.conf10
-rw-r--r--mkspecs/tru64-g++/qmake.conf6
-rw-r--r--mkspecs/ultrix-g++/qmake.conf10
-rw-r--r--mkspecs/unixware-cc/qmake.conf11
-rw-r--r--mkspecs/unixware-g++/qmake.conf13
-rw-r--r--mkspecs/win32-borland/qmake.conf34
-rw-r--r--mkspecs/win32-borland/qplatformdefs.h174
-rw-r--r--mkspecs/win32-g++/qmake.conf72
-rw-r--r--mkspecs/win32-g++/qplatformdefs.h96
-rw-r--r--mkspecs/win32-g++/qtcrtentrypoint.cpp231
-rw-r--r--mkspecs/win32-icc/qmake.conf45
-rw-r--r--mkspecs/win32-icc/qplatformdefs.h6
-rw-r--r--mkspecs/win32-msvc.net/qmake.conf55
-rw-r--r--mkspecs/win32-msvc.net/qplatformdefs.h4
-rw-r--r--mkspecs/win32-msvc/qmake.conf37
-rw-r--r--mkspecs/win32-msvc/qplatformdefs.h4
-rw-r--r--mkspecs/win32-msvc/win32app.dsp12
-rw-r--r--mkspecs/win32-msvc/win32dll.dsp12
-rw-r--r--mkspecs/win32-msvc/win32lib.dsp10
-rw-r--r--mkspecs/win32-visage/qmake.conf10
-rw-r--r--mkspecs/win32-watcom/qmake.conf10
107 files changed, 2558 insertions, 438 deletions
diff --git a/mkspecs/aix-g++-64/qmake.conf b/mkspecs/aix-g++-64/qmake.conf
new file mode 100755
index 0000000..abc111e
--- a/dev/null
+++ b/mkspecs/aix-g++-64/qmake.conf
@@ -0,0 +1,81 @@
1#
2# $Id$
3#
4# qmake configuration for aix-g++-64
5#
6
7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app
9 CONFIG += qt warn_on release link_prl
10
11 QMAKE_CC = gcc
12 QMAKE_LEX = flex
13 QMAKE_LEXFLAGS =
14 QMAKE_YACC = yacc
15 QMAKE_YACCFLAGS = -d
16 QMAKE_CFLAGS = -maix64 $(CFLAGS_EXTRA)
17 QMAKE_CFLAGS_DEPS= -M
18 QMAKE_CFLAGS_WARN_ON= -Wall -W
19 QMAKE_CFLAGS_WARN_OFF= -w
20 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)
21 QMAKE_CFLAGS_DEBUG= -g
22 QMAKE_CFLAGS_SHLIB=
23 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses
24 QMAKE_CFLAGS_THREAD= -D_THREAD_SAFE
25
26 QMAKE_CXX = g++
27 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
28 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA)
29 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
30 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
31 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
32 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
33 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
34 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
35 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
36
37 QMAKE_INCDIR =
38 QMAKE_LIBDIR =
39 QMAKE_INCDIR_X11= /usr/X11R6/include
40 QMAKE_LIBDIR_X11= /usr/X11R6/lib
41 QMAKE_INCDIR_QT = $(QTDIR)/include
42 QMAKE_LIBDIR_QT = $(QTDIR)/lib
43 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
44 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
45
46 QMAKE_LINK = g++
47 QMAKE_LINK_SHLIB= g++
48 QMAKE_LFLAGS = -b64 $(LFLAGS_EXTRA)
49 QMAKE_LFLAGS_RELEASE=
50 QMAKE_LFLAGS_DEBUG=
51 QMAKE_LFLAGS_SHLIB= -shared
52 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
53 QMAKE_LFLAGS_SONAME=
54 QMAKE_LFLAGS_THREAD= -L/usr/lib/threads
55 QMAKE_AIX_SHLIB = 1
56
57 QMAKE_LIBS = $(LIBS_EXTRA)
58 QMAKE_LIBS_DYNLOAD= -ldl
59 QMAKE_LIBS_X11 = -lXext -lX11 -lm -lbind
60 QMAKE_LIBS_X11SM= -lSM -lICE
61 QMAKE_LIBS_QT = -lqt
62 QMAKE_LIBS_QT_THREAD= -lqt-mt
63 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
64 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
65 QMAKE_LIBS_THREAD= -lpthreads
66
67 QMAKE_MOC = $(QTDIR)/bin/moc
68 QMAKE_UIC = $(QTDIR)/bin/uic
69
70 QMAKE_AR = ar cqs
71 QMAKE_RANLIB =
72
73 QMAKE_TAR = tar -cf
74 QMAKE_GZIP = gzip -9f
75
76 QMAKE_COPY = cp -f
77 QMAKE_MOVE = mv -f
78 QMAKE_DEL_FILE = rm -f
79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/aix-g++/qmake.conf b/mkspecs/aix-g++/qmake.conf
index c79fe81..92d098b 100644
--- a/mkspecs/aix-g++/qmake.conf
+++ b/mkspecs/aix-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt warn_on release link_prl
10 10
11 QMAKE_CC = gcc 11 QMAKE_CC = gcc
@@ -53,4 +53,5 @@ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
53 QMAKE_LFLAGS_SONAME= 53 QMAKE_LFLAGS_SONAME=
54 QMAKE_LFLAGS_THREAD= -L/usr/lib/threads 54 QMAKE_LFLAGS_THREAD= -L/usr/lib/threads
55 QMAKE_AIX_SHLIB = 1
55 56
56 QMAKE_LIBS = $(LIBS_EXTRA) 57 QMAKE_LIBS = $(LIBS_EXTRA)
@@ -77,2 +78,4 @@ QMAKE_MOVE = mv -f
77 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
78 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/aix-xlc-64/qmake.conf b/mkspecs/aix-xlc-64/qmake.conf
index 2e08cbf..42e362b 100644
--- a/mkspecs/aix-xlc-64/qmake.conf
+++ b/mkspecs/aix-xlc-64/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt warn_on release link_prl
10 10
11 QMAKE_CC = xlc 11 QMAKE_CC = xlc
@@ -16,5 +16,7 @@ QMAKE_YACC = yacc
16 QMAKE_YACCFLAGS = -d 16 QMAKE_YACCFLAGS = -d
17 QMAKE_CFLAGS = -qstrict -q64 $(CFLAGS_EXTRA) 17 QMAKE_CFLAGS = -qstrict -q64 $(CFLAGS_EXTRA)
18 QMAKE_CFLAGS_WARN_ON= -qwarn64 18# -qwarn64 turns on too many bogus warnings and shadows real warnings
19 #QMAKE_CFLAGS_WARN_ON= -qwarn64
20QMAKE_CFLAGS_WARN_ON =
19 QMAKE_CFLAGS_WARN_OFF= 21 QMAKE_CFLAGS_WARN_OFF=
20 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O3) 22 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O3)
@@ -22,5 +24,5 @@ QMAKE_CFLAGS_DEBUG = -g
22 QMAKE_CFLAGS_SHLIB= 24 QMAKE_CFLAGS_SHLIB=
23 QMAKE_CFLAGS_YACC= 25 QMAKE_CFLAGS_YACC=
24 QMAKE_CFLAGS_THREAD= -qthreaded -D_THREAD_SAFE 26 QMAKE_CFLAGS_THREAD= -qthreaded
25 27
26 QMAKE_CXX = xlC 28 QMAKE_CXX = xlC
@@ -60,4 +62,5 @@ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
60 QMAKE_LFLAGS_SONAME= 62 QMAKE_LFLAGS_SONAME=
61 QMAKE_LFLAGS_THREAD= -L/usr/lib/threads 63 QMAKE_LFLAGS_THREAD= -L/usr/lib/threads
64 QMAKE_AIX_SHLIB = 1
62 65
63 QMAKE_LIBS = $(LIBS_EXTRA) 66 QMAKE_LIBS = $(LIBS_EXTRA)
@@ -84,2 +87,4 @@ QMAKE_MOVE = mv -f
84 QMAKE_DEL_FILE = rm -f 87 QMAKE_DEL_FILE = rm -f
85 QMAKE_DEL_DIR = rmdir 88 QMAKE_DEL_DIR = rmdir
89 QMAKE_CHK_DIR_EXISTS= test -d
90 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/aix-xlc/qmake.conf b/mkspecs/aix-xlc/qmake.conf
index 76ead61..3ce593c 100644
--- a/mkspecs/aix-xlc/qmake.conf
+++ b/mkspecs/aix-xlc/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt warn_on release link_prl
10 10
11 QMAKE_CC = xlc 11 QMAKE_CC = xlc
@@ -22,5 +22,5 @@ QMAKE_CFLAGS_DEBUG = -g
22 QMAKE_CFLAGS_SHLIB= 22 QMAKE_CFLAGS_SHLIB=
23 QMAKE_CFLAGS_YACC= 23 QMAKE_CFLAGS_YACC=
24 QMAKE_CFLAGS_THREAD= -qthreaded -D_THREAD_SAFE 24 QMAKE_CFLAGS_THREAD= -qthreaded
25 25
26 QMAKE_CXX = xlC 26 QMAKE_CXX = xlC
@@ -50,6 +50,6 @@ QMAKE_LINK_SHLIB_CMD = makeC++SharedLib -p 0 \
50 -o $(TARGETD) \ 50 -o $(TARGETD) \
51 $(LFLAGS) $(OBJECTS) $(OBJMOC) $(LIBS); \ 51 $(LFLAGS) $(OBJECTS) $(OBJMOC) $(LIBS); \
52 ar q lib$(QMAKE_TARGET).a $(TARGETD); \ 52 $(AR) lib$(QMAKE_TARGET).a $(TARGETD); \
53 ranlib lib$(QMAKE_TARGET).a; \ 53 $(RANLIB) lib$(QMAKE_TARGET).a; \
54 mv lib$(QMAKE_TARGET).a $(DESTDIR) 54 mv lib$(QMAKE_TARGET).a $(DESTDIR)
55 QMAKE_LFLAGS = $(LFLAGS_EXTRA) 55 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
@@ -60,4 +60,5 @@ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
60 QMAKE_LFLAGS_SONAME= 60 QMAKE_LFLAGS_SONAME=
61 QMAKE_LFLAGS_THREAD= -L/usr/lib/threads 61 QMAKE_LFLAGS_THREAD= -L/usr/lib/threads
62 QMAKE_AIX_SHLIB = 1
62 63
63 QMAKE_LIBS = $(LIBS_EXTRA) 64 QMAKE_LIBS = $(LIBS_EXTRA)
@@ -84,2 +85,4 @@ QMAKE_MOVE = mv -f
84 QMAKE_DEL_FILE = rm -f 85 QMAKE_DEL_FILE = rm -f
85 QMAKE_DEL_DIR = rmdir 86 QMAKE_DEL_DIR = rmdir
87 QMAKE_CHK_DIR_EXISTS= test -d
88 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/aix-xlc/qplatformdefs.h b/mkspecs/aix-xlc/qplatformdefs.h
index 7685a7b..79afa5d 100644
--- a/mkspecs/aix-xlc/qplatformdefs.h
+++ b/mkspecs/aix-xlc/qplatformdefs.h
@@ -96,5 +96,5 @@
96#endif 96#endif
97 97
98#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) 98#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500)
99// AIX 4.3 and better only 99// AIX 4.3 and better only
100 #define QT_SNPRINTF ::snprintf 100 #define QT_SNPRINTF ::snprintf
diff --git a/mkspecs/bsdi-g++/qmake.conf b/mkspecs/bsdi-g++/qmake.conf
index be4e125..45cd8fb 100644
--- a/mkspecs/bsdi-g++/qmake.conf
+++ b/mkspecs/bsdi-g++/qmake.conf
@@ -9,5 +9,5 @@
9 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
10 TEMPLATE = app 10 TEMPLATE = app
11 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
12 12
13 QMAKE_CC = gcc 13 QMAKE_CC = gcc
@@ -81,2 +81,4 @@ QMAKE_MOVE = mv -f
81 QMAKE_DEL_FILE = rm -f 81 QMAKE_DEL_FILE = rm -f
82 QMAKE_DEL_DIR = rmdir 82 QMAKE_DEL_DIR = rmdir
83 QMAKE_CHK_DIR_EXISTS= test -d
84 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/cygwin-g++/qmake.conf b/mkspecs/cygwin-g++/qmake.conf
index 4532c89..7258fa8 100644
--- a/mkspecs/cygwin-g++/qmake.conf
+++ b/mkspecs/cygwin-g++/qmake.conf
@@ -4,8 +4,10 @@
4# qmake configuration for cygwin-g++ 4# qmake configuration for cygwin-g++
5# 5#
6# Written for Qt/X11 on Cygwin, using the POSIX API.
7#
6 8
7 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release incremental 11 CONFIG += qt warn_on release incremental link_prl
10QMAKE_INCREMENTAL_STYLE = sublib 12QMAKE_INCREMENTAL_STYLE = sublib
11 13
@@ -13,5 +15,5 @@ QMAKE_CC = gcc
13 QMAKE_LEX = flex 15 QMAKE_LEX = flex
14 QMAKE_LEXFLAGS = 16 QMAKE_LEXFLAGS =
15 QMAKE_YACC = yacc 17 QMAKE_YACC = byacc
16 QMAKE_YACCFLAGS = -d 18 QMAKE_YACCFLAGS = -d
17 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) 19 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA)
@@ -55,5 +57,7 @@ QMAKE_LFLAGS_SONAME = -Wl,-soname,
55 QMAKE_LFLAGS_THREAD= 57 QMAKE_LFLAGS_THREAD=
56 QMAKE_RPATH = -Wl,-rpath, 58 QMAKE_RPATH = -Wl,-rpath,
57 59 QMAKE_CYGWIN_SHLIB= 1
60 QMAKE_CYGWIN_EXE= 1
61
58 QMAKE_LIBS = $(LIBS_EXTRA) 62 QMAKE_LIBS = $(LIBS_EXTRA)
59 QMAKE_LIBS_DYNLOAD= -ldl 63 QMAKE_LIBS_DYNLOAD= -ldl
@@ -79,2 +83,4 @@ QMAKE_MOVE = mv -f
79 QMAKE_DEL_FILE = rm -f 83 QMAKE_DEL_FILE = rm -f
80 QMAKE_DEL_DIR = rmdir 84 QMAKE_DEL_DIR = rmdir
85 QMAKE_CHK_DIR_EXISTS= test -d
86 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/cygwin-g++/qplatformdefs.h b/mkspecs/cygwin-g++/qplatformdefs.h
index b985044..bc04a69 100644
--- a/mkspecs/cygwin-g++/qplatformdefs.h
+++ b/mkspecs/cygwin-g++/qplatformdefs.h
@@ -43,10 +43,12 @@
43#include <sys/types.h> 43#include <sys/types.h>
44#include <sys/ioctl.h> 44#include <sys/ioctl.h>
45#include <sys/ipc.h> 45// Cygwin does not provide <sys/ipc.h> and <sys/shm.h> because it
46// doesn't support SysV IPC or shared memory. See for example:
47 // http://afni.nimh.nih.gov/afni/afniboard/messages/1725.html
46#include <sys/time.h> 48#include <sys/time.h>
47#include <sys/shm.h>
48#include <sys/socket.h> 49#include <sys/socket.h>
49#include <sys/stat.h> 50#include <sys/stat.h>
50#include <sys/wait.h> 51#include <sys/wait.h>
52#include <windows.h>
51 53
52// Resolver functions are not implemented in Cygwin, headers 54// Resolver functions are not implemented in Cygwin, headers
diff --git a/mkspecs/darwin-g++/qmake.conf b/mkspecs/darwin-g++/qmake.conf
index 2051427..c53e6e9 100644
--- a/mkspecs/darwin-g++/qmake.conf
+++ b/mkspecs/darwin-g++/qmake.conf
@@ -2,10 +2,14 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for darwin-g++ (Darwin/X11) 4# qmake configuration for darwin-g++
5#
6# Written for Qt/X11 on Darwin and XFree86.
5# 7#
6 8
7 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release resource_fork 11 CONFIG += qt warn_on release native_precompiled_headers
12 CONFIG += qt warn_on release link_prl
13DEFINES += __DARWIN_X11__
10 14
11 QMAKE_CC = cc 15 QMAKE_CC = cc
@@ -18,8 +22,9 @@ QMAKE_CFLAGS_DEPS = -M
18 QMAKE_CFLAGS_WARN_ON= -Wall -W 22 QMAKE_CFLAGS_WARN_ON= -Wall -W
19 QMAKE_CFLAGS_WARN_OFF= -w 23 QMAKE_CFLAGS_WARN_OFF= -w
20 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O3) 24 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)
21 QMAKE_CFLAGS_DEBUG= -g 25 QMAKE_CFLAGS_DEBUG= -g
22 QMAKE_CFLAGS_SHLIB= -fPIC 26 QMAKE_CFLAGS_SHLIB= -fPIC
23 QMAKE_EXTENSION_SHLIB= dylib 27 QMAKE_EXTENSION_SHLIB= dylib
28 QMAKE_EXTENSION_PLUGIN= so
24 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses 29 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses
25 QMAKE_CFLAGS_THREAD= 30 QMAKE_CFLAGS_THREAD=
@@ -50,7 +55,12 @@ QMAKE_LFLAGS = $(LFLAGS_EXTRA)
50 QMAKE_LFLAGS_RELEASE= 55 QMAKE_LFLAGS_RELEASE=
51 QMAKE_LFLAGS_DEBUG= 56 QMAKE_LFLAGS_DEBUG=
52 QMAKE_LFLAGS_SHLIB= -dynamiclib 57QMAKE_LFLAGS_APP = -prebind
58 QMAKE_LFLAGS_SHLIB= -prebind -dynamiclib -single_module -headerpad_max_install_names
53 QMAKE_LFLAGS_PLUGIN= -bundle 59 QMAKE_LFLAGS_PLUGIN= -bundle
54 QMAKE_LFLAGS_THREAD= 60 QMAKE_LFLAGS_THREAD=
61
62QMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE}
63QMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE}
64
55 QMAKE_RPATH = 65 QMAKE_RPATH =
56 66
@@ -79,2 +89,4 @@ QMAKE_MOVE = mv -f
79 QMAKE_DEL_FILE = rm -f 89 QMAKE_DEL_FILE = rm -f
80 QMAKE_DEL_DIR = rmdir 90 QMAKE_DEL_DIR = rmdir
91 QMAKE_CHK_DIR_EXISTS= test -d
92 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/darwin-g++/qplatformdefs.h b/mkspecs/darwin-g++/qplatformdefs.h
index 9f09f4c..0a1b602 100644
--- a/mkspecs/darwin-g++/qplatformdefs.h
+++ b/mkspecs/darwin-g++/qplatformdefs.h
@@ -80,4 +80,6 @@
80 #define QT_VSNPRINTF ::vsnprintf 80 #define QT_VSNPRINTF ::vsnprintf
81 81
82#define QT_AOUT_UNDERSCORE
83
82 84
83#endif // QPLATFORMDEFS_H 85#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/dgux-g++/qmake.conf b/mkspecs/dgux-g++/qmake.conf
index c8c7527..011a1c7 100644
--- a/mkspecs/dgux-g++/qmake.conf
+++ b/mkspecs/dgux-g++/qmake.conf
@@ -9,5 +9,5 @@
9 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
10 TEMPLATE = app 10 TEMPLATE = app
11 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
12 12
13 QMAKE_CC = gcc 13 QMAKE_CC = gcc
@@ -74,2 +74,4 @@ QMAKE_MOVE = mv -f
74 QMAKE_DEL_FILE = rm -f 74 QMAKE_DEL_FILE = rm -f
75 QMAKE_DEL_DIR = rmdir 75 QMAKE_DEL_DIR = rmdir
76 QMAKE_CHK_DIR_EXISTS= test -d
77 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/freebsd-g++/qmake.conf b/mkspecs/freebsd-g++/qmake.conf
index 3269c83..ac7f728 100644
--- a/mkspecs/freebsd-g++/qmake.conf
+++ b/mkspecs/freebsd-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt warn_on release link_prl
10 10
11 QMAKE_CC = gcc 11 QMAKE_CC = gcc
@@ -79,2 +79,4 @@ QMAKE_MOVE = mv -f
79 QMAKE_DEL_FILE = rm -f 79 QMAKE_DEL_FILE = rm -f
80 QMAKE_DEL_DIR = rmdir 80 QMAKE_DEL_DIR = rmdir
81 QMAKE_CHK_DIR_EXISTS= test -d
82 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/hpux-acc-64/qmake.conf b/mkspecs/hpux-acc-64/qmake.conf
index 7ce4711..d43273e 100644
--- a/mkspecs/hpux-acc-64/qmake.conf
+++ b/mkspecs/hpux-acc-64/qmake.conf
@@ -50,5 +50,5 @@
50 MAKEFILE_GENERATOR= UNIX 50 MAKEFILE_GENERATOR= UNIX
51 TEMPLATE = app 51 TEMPLATE = app
52 CONFIG += qt warn_on release 52 CONFIG += qt warn_on release link_prl
53 53
54 QMAKE_CC = cc 54 QMAKE_CC = cc
@@ -59,5 +59,5 @@ QMAKE_YACCFLAGS = -d
59 QMAKE_CFLAGS = -Ae +DA2.0W -w $(CFLAGS_EXTRA) 59 QMAKE_CFLAGS = -Ae +DA2.0W -w $(CFLAGS_EXTRA)
60 QMAKE_CFLAGS_WARN_ON= 60 QMAKE_CFLAGS_WARN_ON=
61 QMAKE_CFLAGS_WARN_OFF= 61 QMAKE_CFLAGS_WARN_OFF= -w
62 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O +Osize) 62 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O +Osize)
63 QMAKE_CFLAGS_DEBUG= -g 63 QMAKE_CFLAGS_DEBUG= -g
@@ -67,5 +67,6 @@ QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE
67 67
68 QMAKE_CXX = aCC 68 QMAKE_CXX = aCC
69 QMAKE_CXXFLAGS = -Aa +DA2.0W -w -D__STRICT_ANSI__ $(CXXFLAGS_EXTRA) 69 QMAKE_CXXFLAGS = -Aa +DA2.0W -w -D__STRICT_ANSI__ -D_HPUX_SOURCE $(CXXFLAGS_EXTRA)
70 QMAKE_CXXFLAGS_DEPS= +M
70 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 71 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
71 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF 72 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
@@ -89,19 +90,21 @@ QMAKE_LINK_SHLIB = aCC
89 QMAKE_LFLAGS = +DA2.0W -Wl,+s $(LFLAGS_EXTRA) 90 QMAKE_LFLAGS = +DA2.0W -Wl,+s $(LFLAGS_EXTRA)
90 QMAKE_LFLAGS_RELEASE= -O 91 QMAKE_LFLAGS_RELEASE= -O
91 QMAKE_LFLAGS_DEBUG= -Wl,+tools -g 92 QMAKE_LFLAGS_DEBUG= -g
92 QMAKE_LFLAGS_SHLIB= -b 93 QMAKE_LFLAGS_SHLIB= -b -Wl,-a,shared
93 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB 94 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
94 QMAKE_LFLAGS_SONAME= -Wl,+h, 95 QMAKE_LFLAGS_SONAME= -Wl,+h,
95 QMAKE_LFLAGS_THREAD= 96 QMAKE_LFLAGS_THREAD=
96 QMAKE_RPATH = -Wl,+b, 97 QMAKE_RPATH = -Wl,+b,
98 QMAKE_HPUX_SHLIB= 3
99 QMAKE_EXTENSION_SHLIB= sl
97 100
98 QMAKE_LIBS = $(LIBS_EXTRA) 101 QMAKE_LIBS = -lm $(LIBS_EXTRA)
99 QMAKE_LIBS_DYNLOAD= -ldld 102 QMAKE_LIBS_DYNLOAD= -ldl
100 QMAKE_LIBS_X11 = -lXext -lX11 103 QMAKE_LIBS_X11 = -lXext -lX11
101 QMAKE_LIBS_X11SM= -lSM -lICE 104 QMAKE_LIBS_X11SM= -lSM -lICE
102 QMAKE_LIBS_QT = -lqt 105 QMAKE_LIBS_QT = -lqt
103 QMAKE_LIBS_QT_THREAD= -lqt-mt 106 QMAKE_LIBS_QT_THREAD= -lqt-mt
104 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu 107 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lXt
105 QMAKE_LIBS_OPENGL_QT= -lGL -lXm 108 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu -lXt
106 QMAKE_LIBS_THREAD= -lpthread 109 QMAKE_LIBS_THREAD= -lpthread
107 QMAKE_LIBS_YACC = -ly 110 QMAKE_LIBS_YACC = -ly
@@ -120,2 +123,4 @@ QMAKE_MOVE = mv -f
120 QMAKE_DEL_FILE = rm -f 123 QMAKE_DEL_FILE = rm -f
121 QMAKE_DEL_DIR = rmdir 124 QMAKE_DEL_DIR = rmdir
125 QMAKE_CHK_DIR_EXISTS= test -d
126 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/hpux-acc-64/qplatformdefs.h b/mkspecs/hpux-acc-64/qplatformdefs.h
index 8a1410c..1779974 100644
--- a/mkspecs/hpux-acc-64/qplatformdefs.h
+++ b/mkspecs/hpux-acc-64/qplatformdefs.h
@@ -23,7 +23,5 @@
23#include <pwd.h> 23#include <pwd.h>
24#include <signal.h> 24#include <signal.h>
25#include <dl.h> 25#include <dlfcn.h>
26#define QT_HPUX_LD
27#define QT_NO_LIBRARY_UNLOAD
28 26
29#include <sys/types.h> 27#include <sys/types.h>
@@ -38,5 +36,13 @@
38// DNS header files are not fully covered by X/Open specifications. 36// DNS header files are not fully covered by X/Open specifications.
39// In particular nothing is said about res_* :/ 37// In particular nothing is said about res_* :/
38// #ifdef __cplusplus
39// extern "C" {
40// #endif
41// getres() is mangled because of missing extern "C" on
42// HP-UX 11.x systems missing PHCO_23963
40#include <resolv.h> 43#include <resolv.h>
44// #ifdef __cplusplus
45// }
46// #endif
41// Undeclared - at least on HP-UX 10.20. 47// Undeclared - at least on HP-UX 10.20.
42extern "C" int res_init(); 48extern "C" int res_init();
diff --git a/mkspecs/hpux-acc-o64/qmake.conf b/mkspecs/hpux-acc-o64/qmake.conf
index f9f88bb..8aa3b43 100644
--- a/mkspecs/hpux-acc-o64/qmake.conf
+++ b/mkspecs/hpux-acc-o64/qmake.conf
@@ -50,5 +50,5 @@
50 MAKEFILE_GENERATOR= UNIX 50 MAKEFILE_GENERATOR= UNIX
51 TEMPLATE = app 51 TEMPLATE = app
52 CONFIG += qt warn_on release 52 CONFIG += qt warn_on release link_prl
53 53
54 QMAKE_CC = cc 54 QMAKE_CC = cc
@@ -67,5 +67,5 @@ QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE
67 67
68 QMAKE_CXX = aCC 68 QMAKE_CXX = aCC
69 QMAKE_CXXFLAGS = +DA2.0 -w -D__STRICT_ANSI__ $(CXXFLAGS_EXTRA) 69 QMAKE_CXXFLAGS = +DA2.0 -w -D__STRICT_ANSI__ -D_HPUX_SOURCE $(CXXFLAGS_EXTRA)
70 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 70 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
71 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF 71 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
@@ -94,6 +94,8 @@ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
94 QMAKE_LFLAGS_SONAME= -Wl,+h, 94 QMAKE_LFLAGS_SONAME= -Wl,+h,
95 QMAKE_RPATH = -Wl,+b, 95 QMAKE_RPATH = -Wl,+b,
96 QMAKE_HPUX_SHLIB= 2
97 QMAKE_EXTENSION_SHLIB= sl
96 98
97 QMAKE_LIBS = $(LIBS_EXTRA) 99 QMAKE_LIBS = -lm $(LIBS_EXTRA)
98 QMAKE_LIBS_DYNLOAD= -ldld 100 QMAKE_LIBS_DYNLOAD= -ldld
99 QMAKE_LIBS_X11 = -lXext -lX11 101 QMAKE_LIBS_X11 = -lXext -lX11
@@ -120,2 +122,4 @@ QMAKE_MOVE = mv -f
120 QMAKE_DEL_FILE = rm -f 122 QMAKE_DEL_FILE = rm -f
121 QMAKE_DEL_DIR = rmdir 123 QMAKE_DEL_DIR = rmdir
124 QMAKE_CHK_DIR_EXISTS= test -d
125 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/hpux-acc-o64/qplatformdefs.h b/mkspecs/hpux-acc-o64/qplatformdefs.h
index 8a1410c..6307fc0 100644
--- a/mkspecs/hpux-acc-o64/qplatformdefs.h
+++ b/mkspecs/hpux-acc-o64/qplatformdefs.h
@@ -38,5 +38,13 @@
38// DNS header files are not fully covered by X/Open specifications. 38// DNS header files are not fully covered by X/Open specifications.
39// In particular nothing is said about res_* :/ 39// In particular nothing is said about res_* :/
40// #ifdef __cplusplus
41// extern "C" {
42// #endif
43// getres() is mangled because of missing extern "C" on
44// HP-UX 11.x systems missing PHCO_23963
40#include <resolv.h> 45#include <resolv.h>
46// #ifdef __cplusplus
47// }
48// #endif
41// Undeclared - at least on HP-UX 10.20. 49// Undeclared - at least on HP-UX 10.20.
42extern "C" int res_init(); 50extern "C" int res_init();
diff --git a/mkspecs/hpux-acc/qmake.conf b/mkspecs/hpux-acc/qmake.conf
index c344f26..2cbb1e6 100644
--- a/mkspecs/hpux-acc/qmake.conf
+++ b/mkspecs/hpux-acc/qmake.conf
@@ -29,5 +29,5 @@
29 MAKEFILE_GENERATOR= UNIX 29 MAKEFILE_GENERATOR= UNIX
30 TEMPLATE = app 30 TEMPLATE = app
31 CONFIG = qt warn_on release 31 CONFIG += qt warn_on release link_prl
32 32
33 QMAKE_CC = cc 33 QMAKE_CC = cc
@@ -36,15 +36,16 @@ QMAKE_LEXFLAGS =
36 QMAKE_YACC = yacc 36 QMAKE_YACC = yacc
37 QMAKE_YACCFLAGS = -d 37 QMAKE_YACCFLAGS = -d
38 QMAKE_CFLAGS = -Ae +DAportable -w +Z $(CFLAGS_EXTRA) 38 QMAKE_CFLAGS = -Ae +DAportable -w $(CFLAGS_EXTRA)
39 QMAKE_CFLAGS_WARN_ON= 39 QMAKE_CFLAGS_WARN_ON=
40 QMAKE_CFLAGS_WARN_OFF= 40 QMAKE_CFLAGS_WARN_OFF= -w
41 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O) 41 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O)
42 QMAKE_CFLAGS_DEBUG= -g 42 QMAKE_CFLAGS_DEBUG= -g
43 QMAKE_CFLAGS_SHLIB= 43 QMAKE_CFLAGS_SHLIB= +Z
44 QMAKE_CFLAGS_YACC= 44 QMAKE_CFLAGS_YACC=
45 QMAKE_CFLAGS_THREAD= -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE 45 QMAKE_CFLAGS_THREAD= -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE
46 46
47 QMAKE_CXX = aCC 47 QMAKE_CXX = aCC
48 QMAKE_CXXFLAGS = +DAportable -w +Z -D__STRICT_ANSI__ $(CXXFLAGS_EXTRA) 48 QMAKE_CXXFLAGS = +DAportable -w -D__STRICT_ANSI__ -D_HPUX_SOURCE $(CXXFLAGS_EXTRA)
49 QMAKE_CXXFLAGS_DEPS= +M
49 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 50 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
50 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF 51 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
@@ -68,5 +69,5 @@ QMAKE_LINK_SHLIB = aCC
68 QMAKE_LFLAGS = +DAportable -Wl,+s $(LFLAGS_EXTRA) 69 QMAKE_LFLAGS = +DAportable -Wl,+s $(LFLAGS_EXTRA)
69 QMAKE_LFLAGS_RELEASE= -O 70 QMAKE_LFLAGS_RELEASE= -O
70 QMAKE_LFLAGS_DEBUG= 71 QMAKE_LFLAGS_DEBUG= -g
71 QMAKE_LFLAGS_SHLIB= -b -Wl,-a,shared 72 QMAKE_LFLAGS_SHLIB= -b -Wl,-a,shared
72 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB 73 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
@@ -74,6 +75,8 @@ QMAKE_LFLAGS_SONAME = -Wl,+h,
74 QMAKE_LFLAGS_THREAD= 75 QMAKE_LFLAGS_THREAD=
75 QMAKE_RPATH = -Wl,+b, 76 QMAKE_RPATH = -Wl,+b,
77 QMAKE_HPUX_SHLIB= 1
78 QMAKE_EXTENSION_SHLIB= sl
76 79
77 QMAKE_LIBS = $(LIBS_EXTRA) 80 QMAKE_LIBS = -lm $(LIBS_EXTRA)
78 QMAKE_LIBS_DYNLOAD= -ldld 81 QMAKE_LIBS_DYNLOAD= -ldld
79 QMAKE_LIBS_X11 = -lXext -lX11 82 QMAKE_LIBS_X11 = -lXext -lX11
@@ -81,6 +84,6 @@ QMAKE_LIBS_X11SM = -lSM -lICE
81 QMAKE_LIBS_QT = -lqt 84 QMAKE_LIBS_QT = -lqt
82 QMAKE_LIBS_QT_THREAD= -lqt-mt 85 QMAKE_LIBS_QT_THREAD= -lqt-mt
83 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu 86 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lXt
84 QMAKE_LIBS_OPENGL_QT= -lGL -lXm 87 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu -lXt
85 QMAKE_LIBS_THREAD= -lpthread 88 QMAKE_LIBS_THREAD= -lpthread
86 QMAKE_LIBS_YACC = -ly 89 QMAKE_LIBS_YACC = -ly
@@ -99,2 +102,4 @@ QMAKE_MOVE = mv -f
99 QMAKE_DEL_FILE = rm -f 102 QMAKE_DEL_FILE = rm -f
100 QMAKE_DEL_DIR = rmdir 103 QMAKE_DEL_DIR = rmdir
104 QMAKE_CHK_DIR_EXISTS= test -d
105 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/hpux-acc/qplatformdefs.h b/mkspecs/hpux-acc/qplatformdefs.h
index fb74ca7..d6dc587 100644
--- a/mkspecs/hpux-acc/qplatformdefs.h
+++ b/mkspecs/hpux-acc/qplatformdefs.h
@@ -38,5 +38,13 @@
38// DNS header files are not fully covered by X/Open specifications. 38// DNS header files are not fully covered by X/Open specifications.
39// In particular nothing is said about res_* :/ 39// In particular nothing is said about res_* :/
40// #ifdef __cplusplus
41// extern "C" {
42// #endif
43// getres() is mangled because of missing extern "C" on
44// HP-UX 11.x systems missing PHCO_23963
40#include <resolv.h> 45#include <resolv.h>
46// #ifdef __cplusplus
47// }
48// #endif
41// Undeclared - at least on HP-UX 10.20. 49// Undeclared - at least on HP-UX 10.20.
42extern "C" int res_init(); 50extern "C" int res_init();
@@ -84,3 +92,4 @@ extern "C" int res_init();
84#endif 92#endif
85 93
94
86#endif // QPLATFORMDEFS_H 95#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/hpux-cc/qmake.conf b/mkspecs/hpux-cc/qmake.conf
index fe5d293..950bc99 100644
--- a/mkspecs/hpux-cc/qmake.conf
+++ b/mkspecs/hpux-cc/qmake.conf
@@ -30,5 +30,5 @@
30 MAKEFILE_GENERATOR= UNIX 30 MAKEFILE_GENERATOR= UNIX
31 TEMPLATE = app 31 TEMPLATE = app
32 CONFIG += qt warn_on release 32 CONFIG += qt warn_on release link_prl
33 33
34 QMAKE_CC = cc 34 QMAKE_CC = cc
@@ -46,5 +46,5 @@ QMAKE_CFLAGS_YACC =
46 46
47 QMAKE_CXX = CC 47 QMAKE_CXX = CC
48 QMAKE_CXXFLAGS = +DA1.1e -w +a1 $(CXXFLAGS_EXTRA) 48 QMAKE_CXXFLAGS = +DA1.1e -w +a1 -D_HPUX_SOURCE $(CXXFLAGS_EXTRA)
49 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 49 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
50 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF 50 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
@@ -73,6 +73,7 @@ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
73 QMAKE_LFLAGS_SONAME= -Wl,+h, 73 QMAKE_LFLAGS_SONAME= -Wl,+h,
74 QMAKE_RPATH = -Wl,+b, 74 QMAKE_RPATH = -Wl,+b,
75 QMAKE_HPUX_SHLIB= 1
75 76
76 QMAKE_LIBS = $(LIBS_EXTRA) 77 QMAKE_LIBS = -lm $(LIBS_EXTRA)
77 QMAKE_LIBS_DYNLOAD= -ldld 78 QMAKE_LIBS_DYNLOAD= -ldld
78 QMAKE_LIBS_X11 = -lXext -lX11 79 QMAKE_LIBS_X11 = -lXext -lX11
@@ -96,2 +97,4 @@ QMAKE_MOVE = mv -f
96 QMAKE_DEL_FILE = rm -f 97 QMAKE_DEL_FILE = rm -f
97 QMAKE_DEL_DIR = rmdir 98 QMAKE_DEL_DIR = rmdir
99 QMAKE_CHK_DIR_EXISTS= test -d
100 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/hpux-g++/qmake.conf b/mkspecs/hpux-g++/qmake.conf
index 0af1de7..22e4cff 100644
--- a/mkspecs/hpux-g++/qmake.conf
+++ b/mkspecs/hpux-g++/qmake.conf
@@ -4,12 +4,11 @@
4# qmake configuration for hpux-g++ 4# qmake configuration for hpux-g++
5# 5#
6# We define _POSIX_C_SOURCE to 199506L when using threads, therefore 6# We define _POSIX_C_SOURCE to 199506L when using threads,
7# we also need to redefine _HPUX_SOURCE. 7# therefore we also need to redefine _HPUX_SOURCE.
8# See pthread(3t) for more details.
9# 8#
10 9
11 MAKEFILE_GENERATOR= UNIX 10 MAKEFILE_GENERATOR= UNIX
12 TEMPLATE = app 11 TEMPLATE = app
13 CONFIG += qt warn_on release 12 CONFIG += qt warn_on release link_prl plugin_no_soname
14 13
15 QMAKE_CC = gcc 14 QMAKE_CC = gcc
@@ -29,5 +28,5 @@ QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE
29 28
30 QMAKE_CXX = g++ 29 QMAKE_CXX = g++
31 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA) 30 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -D_HPUX_SOURCE $(CXXFLAGS_EXTRA)
32 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS 31 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
33 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 32 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
@@ -41,5 +40,5 @@ QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
41 QMAKE_INCDIR = 40 QMAKE_INCDIR =
42 QMAKE_LIBDIR = 41 QMAKE_LIBDIR =
43 QMAKE_INCDIR_X11= /usr/include/X11R6 42 QMAKE_INCDIR_X11=
44 QMAKE_LIBDIR_X11= /usr/lib/X11R6 43 QMAKE_LIBDIR_X11= /usr/lib/X11R6
45 QMAKE_INCDIR_QT = $(QTDIR)/include 44 QMAKE_INCDIR_QT = $(QTDIR)/include
@@ -56,5 +55,8 @@ QMAKE_LFLAGS_SHLIB = -fPIC -shared
56 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB 55 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
57 QMAKE_LFLAGS_SONAME= -Wl,+h, 56 QMAKE_LFLAGS_SONAME= -Wl,+h,
57 QMAKE_LFLAGS_THREAD=
58 QMAKE_RPATH = -Wl,+b, 58 QMAKE_RPATH = -Wl,+b,
59 QMAKE_HPUX_SHLIB= 1
60 QMAKE_EXTENSION_SHLIB= sl
59 61
60 QMAKE_LIBS = $(LIBS_EXTRA) 62 QMAKE_LIBS = $(LIBS_EXTRA)
@@ -63,9 +65,9 @@ QMAKE_LIBS_X11 = -lXext -lX11 -lm
63 QMAKE_LIBS_X11SM= -lSM -lICE 65 QMAKE_LIBS_X11SM= -lSM -lICE
64 QMAKE_LIBS_QT = -lqt 66 QMAKE_LIBS_QT = -lqt
65 67 QMAKE_LIBS_QT_THREAD= -lqt-mt
66 QMAKE_LIBS_OPENGL=
67 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
68 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu 68 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
69 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 69 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
70 QMAKE_LIBS_THREAD= -lpthread
71 QMAKE_LIBS_YACC = -ly
70 72
71 QMAKE_MOC = $(QTDIR)/bin/moc 73 QMAKE_MOC = $(QTDIR)/bin/moc
@@ -82,2 +84,4 @@ QMAKE_MOVE = mv -f
82 QMAKE_DEL_FILE = rm -f 84 QMAKE_DEL_FILE = rm -f
83 QMAKE_DEL_DIR = rmdir 85 QMAKE_DEL_DIR = rmdir
86 QMAKE_CHK_DIR_EXISTS= test -d
87 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/hpux-g++/qplatformdefs.h b/mkspecs/hpux-g++/qplatformdefs.h
index 447e883..a9080c7 100644
--- a/mkspecs/hpux-g++/qplatformdefs.h
+++ b/mkspecs/hpux-g++/qplatformdefs.h
@@ -38,7 +38,13 @@
38// DNS header files are not fully covered by X/Open specifications. 38// DNS header files are not fully covered by X/Open specifications.
39// In particular nothing is said about res_* :/ 39// In particular nothing is said about res_* :/
40#include <netinet/in.h> 40// #ifdef __cplusplus
41#include <arpa/nameser.h> 41// extern "C" {
42// #endif
43// getres() is mangled because of missing extern "C" on
44// HP-UX 11.x systems missing PHCO_23963
42#include <resolv.h> 45#include <resolv.h>
46// #ifdef __cplusplus
47// }
48// #endif
43// Undeclared - at least on HP-UX 10.20. 49// Undeclared - at least on HP-UX 10.20.
44extern "C" int res_init(); 50extern "C" int res_init();
@@ -85,3 +91,4 @@ extern "C" int res_init();
85#endif 91#endif
86 92
93
87#endif // QPLATFORMDEFS_H 94#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/hpuxi-acc-32/qmake.conf b/mkspecs/hpuxi-acc-32/qmake.conf
new file mode 100644
index 0000000..7687cd9
--- a/dev/null
+++ b/mkspecs/hpuxi-acc-32/qmake.conf
@@ -0,0 +1,124 @@
1#
2# $Id$
3#
4# qmake configuration for hpuxi-acc-32
5#
6# We define _POSIX_C_SOURCE to 199506L when using threads, therefore
7# we also need to redefine _HPUX_SOURCE.
8# From pthread(3t):
9 # Some documentation will recommend the use of -D_REENTRANT for
10 # compilation. While this also functions properly, it is considered
11 # an obsolescent form.
12# See pthread(3t) for more details.
13#
14# From the "HP aC++ Online Programmer's Guide":
15 # When +DA2.0W is specified:
16 # * 64-bit SVR4 Executable and Linking Format (ELF) object files
17 # are generated for PA-RISC 2.0.
18 # * The preprocessor predefined macro, __LP64__ is defined.
19 # * The correct path for 64-bit system and language libraries is
20 # selected.
21 # When +DD32 is specified:
22 # * The size of an int, long, or pointer data type is 32-bits.
23 # The size of an int data type is 32-bits. The size of a long or
24 # pointer data type is 64-bits.
25 # * This is the default, currently equivalent to +DA1.1 architecture.
26 # When +DD64 is specified:
27 # * The size of an int data type is 32-bits. The size of a long or
28 # pointer data type is 64-bits.
29 # * This is currently equivalent to +DA2.OW architecture.
30 # * The preprocessor predefined macro, __LP64__ is defined.
31 # Using +DS to Specify Instruction Scheduling:
32 # * By default, the compiler performs scheduling tuned for the system
33 # on which you are compiling, or, if specified, tuned for the setting
34 # of the +DA option.
35#
36# From the online "C/HP-UX Reference Manual":
37 #-Aa
38 # Enables strict ANSI C compliance.
39 # -Ae
40 # Enables ANSI C compliance, HP value-added features (as described
41 # for +e option), and _HPUX_SOURCE name space macro. It is equivalent
42 # to -Aa +e -D_HPUX_SOURCE.
43 # +e
44 # Enables the following HP value added features while compiling in
45 # ANSI C mode: sized enum, long long, long pointers, compiler supplied
46 # defaults for missing arguments to intrinsic calls, and $ in identifier
47 # HP C extensions.
48#
49
50 MAKEFILE_GENERATOR= UNIX
51 TEMPLATE = app
52 CONFIG += qt warn_on release plugin_no_soname
53
54 QMAKE_CC = cc
55 QMAKE_LEX = lex
56 QMAKE_LEXFLAGS =
57 QMAKE_YACC = yacc
58 QMAKE_YACCFLAGS = -d
59 QMAKE_CFLAGS = +DD32 +DSitanium -w $(CFLAGS_EXTRA)
60 QMAKE_CFLAGS_WARN_ON=
61 QMAKE_CFLAGS_WARN_OFF= -w
62 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), +O2 +Osize)
63 QMAKE_CFLAGS_DEBUG= -g
64 QMAKE_CFLAGS_SHLIB= +Z
65 QMAKE_CFLAGS_YACC=
66 QMAKE_CFLAGS_THREAD= -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE
67
68 QMAKE_CXX = aCC
69 QMAKE_CXXFLAGS = +DD32 +DSitanium -w -D__STRICT_ANSI__ -D_HPUX_SOURCE $(CXXFLAGS_EXTRA)
70 QMAKE_CXXFLAGS_DEPS= +M
71 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
72 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
73 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
74 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
75 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
76 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
77 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
78
79 QMAKE_INCDIR =
80 QMAKE_LIBDIR =
81 QMAKE_INCDIR_X11= /usr/include/X11R6
82 QMAKE_LIBDIR_X11= /usr/lib/hpux32/X11R6
83 QMAKE_INCDIR_QT = $(QTDIR)/include
84 QMAKE_LIBDIR_QT = $(QTDIR)/lib
85 QMAKE_INCDIR_OPENGL= /opt/graphics/OpenGL/include /usr/contrib/X11R6/include
86 QMAKE_LIBDIR_OPENGL= /opt/graphics/OpenGL/lib/hpux32 /usr/contrib/X11R6/lib/hpux32
87
88 QMAKE_LINK = aCC
89 QMAKE_LINK_SHLIB= aCC
90 QMAKE_LFLAGS = +DD32 +DSitanium -Wl,+s $(LFLAGS_EXTRA)
91 QMAKE_LFLAGS_RELEASE= +O2
92 QMAKE_LFLAGS_DEBUG= -g
93 QMAKE_LFLAGS_SHLIB= -b -Wl,-a,shared
94 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
95 QMAKE_LFLAGS_SONAME= -Wl,+h,
96 QMAKE_LFLAGS_THREAD=
97 QMAKE_RPATH =
98
99 QMAKE_LIBS = -lm $(LIBS_EXTRA)
100 QMAKE_LIBS_DYNLOAD= -ldl
101 QMAKE_LIBS_X11 = -lXext -lX11
102 QMAKE_LIBS_X11SM= -lSM -lICE
103 QMAKE_LIBS_QT = -lqt
104 QMAKE_LIBS_QT_THREAD= -lqt-mt
105 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lXt
106 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu -lXt
107 QMAKE_LIBS_THREAD= -lpthread
108 QMAKE_LIBS_YACC = -ly
109
110 QMAKE_MOC = $(QTDIR)/bin/moc
111 QMAKE_UIC = $(QTDIR)/bin/uic
112
113 QMAKE_AR = ar cqs
114 QMAKE_RANLIB =
115
116 QMAKE_TAR = tar -cf
117 QMAKE_GZIP = gzip -9f
118
119 QMAKE_COPY = cp -f
120 QMAKE_MOVE = mv -f
121 QMAKE_DEL_FILE = rm -f
122 QMAKE_DEL_DIR = rmdir
123 QMAKE_CHK_DIR_EXISTS= test -d
124 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/hpuxi-acc-32/qplatformdefs.h b/mkspecs/hpuxi-acc-32/qplatformdefs.h
new file mode 100644
index 0000000..6307fc0
--- a/dev/null
+++ b/mkspecs/hpuxi-acc-32/qplatformdefs.h
@@ -0,0 +1,88 @@
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#include <unistd.h>
11
12
13// We are hot - unistd.h should have turned on the specific APIs we requested
14
15
16#ifdef QT_THREAD_SUPPORT
17#include <pthread.h>
18#endif
19
20#include <dirent.h>
21#include <fcntl.h>
22#include <grp.h>
23#include <pwd.h>
24#include <signal.h>
25#include <dl.h>
26#define QT_HPUX_LD
27#define QT_NO_LIBRARY_UNLOAD
28
29#include <sys/types.h>
30#include <sys/ioctl.h>
31#include <sys/ipc.h>
32#include <sys/time.h>
33#include <sys/shm.h>
34#include <sys/socket.h>
35#include <sys/stat.h>
36#include <sys/wait.h>
37
38// DNS header files are not fully covered by X/Open specifications.
39// In particular nothing is said about res_* :/
40// #ifdef __cplusplus
41// extern "C" {
42// #endif
43// getres() is mangled because of missing extern "C" on
44// HP-UX 11.x systems missing PHCO_23963
45#include <resolv.h>
46// #ifdef __cplusplus
47// }
48// #endif
49// Undeclared - at least on HP-UX 10.20.
50extern "C" int res_init();
51
52
53#if !defined(QT_NO_COMPAT)
54 #define QT_STATBUF struct stat
55 #define QT_STATBUF4TSTATstruct stat
56 #define QT_STAT ::stat
57 #define QT_FSTAT ::fstat
58 #define QT_STAT_REG S_IFREG
59 #define QT_STAT_DIR S_IFDIR
60 #define QT_STAT_MASK S_IFMT
61 #define QT_STAT_LNK S_IFLNK
62 #define QT_FILENO fileno
63 #define QT_OPEN ::open
64 #define QT_CLOSE ::close
65 #define QT_LSEEK ::lseek
66 #define QT_READ ::read
67 #define QT_WRITE ::write
68 #define QT_ACCESS ::access
69 #define QT_GETCWD ::getcwd
70 #define QT_CHDIR ::chdir
71 #define QT_MKDIR ::mkdir
72 #define QT_RMDIR ::rmdir
73 #define QT_OPEN_RDONLY O_RDONLY
74 #define QT_OPEN_WRONLY O_WRONLY
75 #define QT_OPEN_RDWR O_RDWR
76 #define QT_OPEN_CREAT O_CREAT
77 #define QT_OPEN_TRUNC O_TRUNC
78 #define QT_OPEN_APPEND O_APPEND
79#endif
80
81 #define QT_SIGNAL_RETTYPEvoid
82 #define QT_SIGNAL_ARGS int
83 #define QT_SIGNAL_IGNORESIG_IGN
84
85 #define QT_SOCKLEN_T int
86
87
88#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/hpuxi-acc-64/qmake.conf b/mkspecs/hpuxi-acc-64/qmake.conf
new file mode 100644
index 0000000..d34912b
--- a/dev/null
+++ b/mkspecs/hpuxi-acc-64/qmake.conf
@@ -0,0 +1,124 @@
1#
2# $Id$
3#
4# qmake configuration for hpuxi-acc-64
5#
6# We define _POSIX_C_SOURCE to 199506L when using threads, therefore
7# we also need to redefine _HPUX_SOURCE.
8# From pthread(3t):
9 # Some documentation will recommend the use of -D_REENTRANT for
10 # compilation. While this also functions properly, it is considered
11 # an obsolescent form.
12# See pthread(3t) for more details.
13#
14# From the "HP aC++ Online Programmer's Guide":
15 # When +DA2.0W is specified:
16 # * 64-bit SVR4 Executable and Linking Format (ELF) object files
17 # are generated for PA-RISC 2.0.
18 # * The preprocessor predefined macro, __LP64__ is defined.
19 # * The correct path for 64-bit system and language libraries is
20 # selected.
21 # When +DD32 is specified:
22 # * The size of an int, long, or pointer data type is 32-bits.
23 # The size of an int data type is 32-bits. The size of a long or
24 # pointer data type is 64-bits.
25 # * This is the default, currently equivalent to +DA1.1 architecture.
26 # When +DD64 is specified:
27 # * The size of an int data type is 32-bits. The size of a long or
28 # pointer data type is 64-bits.
29 # * This is currently equivalent to +DA2.OW architecture.
30 # * The preprocessor predefined macro, __LP64__ is defined.
31 # Using +DS to Specify Instruction Scheduling:
32 # * By default, the compiler performs scheduling tuned for the system
33 # on which you are compiling, or, if specified, tuned for the setting
34 # of the +DA option.
35#
36# From the online "C/HP-UX Reference Manual":
37 #-Aa
38 # Enables strict ANSI C compliance.
39 # -Ae
40 # Enables ANSI C compliance, HP value-added features (as described
41 # for +e option), and _HPUX_SOURCE name space macro. It is equivalent
42 # to -Aa +e -D_HPUX_SOURCE.
43 # +e
44 # Enables the following HP value added features while compiling in
45 # ANSI C mode: sized enum, long long, long pointers, compiler supplied
46 # defaults for missing arguments to intrinsic calls, and $ in identifier
47 # HP C extensions.
48#
49
50 MAKEFILE_GENERATOR= UNIX
51 TEMPLATE = app
52 CONFIG += qt warn_on release plugin_no_soname
53
54 QMAKE_CC = cc
55 QMAKE_LEX = lex
56 QMAKE_LEXFLAGS =
57 QMAKE_YACC = yacc
58 QMAKE_YACCFLAGS = -d
59 QMAKE_CFLAGS = +DD64 +DSitanium -w $(CFLAGS_EXTRA)
60 QMAKE_CFLAGS_WARN_ON=
61 QMAKE_CFLAGS_WARN_OFF= -w
62 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), +O2 +Osize)
63 QMAKE_CFLAGS_DEBUG= -g
64 QMAKE_CFLAGS_SHLIB= +Z
65 QMAKE_CFLAGS_YACC=
66 QMAKE_CFLAGS_THREAD= -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE
67
68 QMAKE_CXX = aCC
69 QMAKE_CXXFLAGS = +DD64 +DSitanium -w -D__STRICT_ANSI__ -D_HPUX_SOURCE $(CXXFLAGS_EXTRA)
70 QMAKE_CXXFLAGS_DEPS= +M
71 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
72 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
73 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
74 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
75 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
76 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
77 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
78
79 QMAKE_INCDIR =
80 QMAKE_LIBDIR =
81 QMAKE_INCDIR_X11= /usr/include/X11R6
82 QMAKE_LIBDIR_X11= /usr/lib/hpux64/X11R6
83 QMAKE_INCDIR_QT = $(QTDIR)/include
84 QMAKE_LIBDIR_QT = $(QTDIR)/lib
85 QMAKE_INCDIR_OPENGL= /opt/graphics/OpenGL/include /usr/contrib/X11R6/include
86 QMAKE_LIBDIR_OPENGL= /opt/graphics/OpenGL/lib/hpux64 /usr/contrib/X11R6/lib/hpux64
87
88 QMAKE_LINK = aCC
89 QMAKE_LINK_SHLIB= aCC
90 QMAKE_LFLAGS = +DD64 +DSitanium -Wl,+s $(LFLAGS_EXTRA)
91 QMAKE_LFLAGS_RELEASE= +O2
92 QMAKE_LFLAGS_DEBUG= -g
93 QMAKE_LFLAGS_SHLIB= -b -Wl,-a,shared
94 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
95 QMAKE_LFLAGS_SONAME= -Wl,+h,
96 QMAKE_LFLAGS_THREAD=
97 QMAKE_RPATH =
98
99 QMAKE_LIBS = -lm $(LIBS_EXTRA)
100 QMAKE_LIBS_DYNLOAD= -ldl
101 QMAKE_LIBS_X11 = -lXext -lX11
102 QMAKE_LIBS_X11SM= -lSM -lICE
103 QMAKE_LIBS_QT = -lqt
104 QMAKE_LIBS_QT_THREAD= -lqt-mt
105 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lXt
106 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu -lXt
107 QMAKE_LIBS_THREAD= -lpthread
108 QMAKE_LIBS_YACC = -ly
109
110 QMAKE_MOC = $(QTDIR)/bin/moc
111 QMAKE_UIC = $(QTDIR)/bin/uic
112
113 QMAKE_AR = ar cqs
114 QMAKE_RANLIB =
115
116 QMAKE_TAR = tar -cf
117 QMAKE_GZIP = gzip -9f
118
119 QMAKE_COPY = cp -f
120 QMAKE_MOVE = mv -f
121 QMAKE_DEL_FILE = rm -f
122 QMAKE_DEL_DIR = rmdir
123 QMAKE_CHK_DIR_EXISTS= test -d
124 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/hpuxi-acc-64/qplatformdefs.h b/mkspecs/hpuxi-acc-64/qplatformdefs.h
new file mode 100644
index 0000000..6307fc0
--- a/dev/null
+++ b/mkspecs/hpuxi-acc-64/qplatformdefs.h
@@ -0,0 +1,88 @@
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#include <unistd.h>
11
12
13// We are hot - unistd.h should have turned on the specific APIs we requested
14
15
16#ifdef QT_THREAD_SUPPORT
17#include <pthread.h>
18#endif
19
20#include <dirent.h>
21#include <fcntl.h>
22#include <grp.h>
23#include <pwd.h>
24#include <signal.h>
25#include <dl.h>
26#define QT_HPUX_LD
27#define QT_NO_LIBRARY_UNLOAD
28
29#include <sys/types.h>
30#include <sys/ioctl.h>
31#include <sys/ipc.h>
32#include <sys/time.h>
33#include <sys/shm.h>
34#include <sys/socket.h>
35#include <sys/stat.h>
36#include <sys/wait.h>
37
38// DNS header files are not fully covered by X/Open specifications.
39// In particular nothing is said about res_* :/
40// #ifdef __cplusplus
41// extern "C" {
42// #endif
43// getres() is mangled because of missing extern "C" on
44// HP-UX 11.x systems missing PHCO_23963
45#include <resolv.h>
46// #ifdef __cplusplus
47// }
48// #endif
49// Undeclared - at least on HP-UX 10.20.
50extern "C" int res_init();
51
52
53#if !defined(QT_NO_COMPAT)
54 #define QT_STATBUF struct stat
55 #define QT_STATBUF4TSTATstruct stat
56 #define QT_STAT ::stat
57 #define QT_FSTAT ::fstat
58 #define QT_STAT_REG S_IFREG
59 #define QT_STAT_DIR S_IFDIR
60 #define QT_STAT_MASK S_IFMT
61 #define QT_STAT_LNK S_IFLNK
62 #define QT_FILENO fileno
63 #define QT_OPEN ::open
64 #define QT_CLOSE ::close
65 #define QT_LSEEK ::lseek
66 #define QT_READ ::read
67 #define QT_WRITE ::write
68 #define QT_ACCESS ::access
69 #define QT_GETCWD ::getcwd
70 #define QT_CHDIR ::chdir
71 #define QT_MKDIR ::mkdir
72 #define QT_RMDIR ::rmdir
73 #define QT_OPEN_RDONLY O_RDONLY
74 #define QT_OPEN_WRONLY O_WRONLY
75 #define QT_OPEN_RDWR O_RDWR
76 #define QT_OPEN_CREAT O_CREAT
77 #define QT_OPEN_TRUNC O_TRUNC
78 #define QT_OPEN_APPEND O_APPEND
79#endif
80
81 #define QT_SIGNAL_RETTYPEvoid
82 #define QT_SIGNAL_ARGS int
83 #define QT_SIGNAL_IGNORESIG_IGN
84
85 #define QT_SOCKLEN_T int
86
87
88#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/hurd-g++/qmake.conf b/mkspecs/hurd-g++/qmake.conf
index b86f93b..a08c3d1 100644
--- a/mkspecs/hurd-g++/qmake.conf
+++ b/mkspecs/hurd-g++/qmake.conf
@@ -5,10 +5,10 @@
5# 5#
6# Submitted by uch@nop.or.jp as "gnu-g++". 6# Submitted by uch@nop.or.jp as "gnu-g++".
7# Renamed to "hurd-g++" because people were confusing gnu with linux. 7# Renamed to "hurd-g++" because people were confusing GNU/Hurd with GNU/Linux.
8# 8#
9 9
10 MAKEFILE_GENERATOR= UNIX 10 MAKEFILE_GENERATOR= UNIX
11 TEMPLATE = app 11 TEMPLATE = app
12 CONFIG += qt warn_on release 12 CONFIG += qt warn_on release link_prl
13 13
14 QMAKE_CC = gcc 14 QMAKE_CC = gcc
@@ -75,3 +75,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 75 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 76 QMAKE_DEL_DIR = rmdir
77 77 QMAKE_CHK_DIR_EXISTS= test -d
78 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/irix-cc-64/qmake.conf b/mkspecs/irix-cc-64/qmake.conf
index 8035658..be50743 100644
--- a/mkspecs/irix-cc-64/qmake.conf
+++ b/mkspecs/irix-cc-64/qmake.conf
@@ -2,5 +2,5 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for irix-64 4# qmake configuration for irix-cc-64
5# 5#
6# From cc(1): 6# From cc(1):
@@ -39,5 +39,5 @@
39 MAKEFILE_GENERATOR= UNIX 39 MAKEFILE_GENERATOR= UNIX
40 TEMPLATE = app 40 TEMPLATE = app
41 CONFIG += qt warn_on release 41 CONFIG += qt warn_on release link_prl
42 42
43 QMAKE_CC = cc 43 QMAKE_CC = cc
@@ -57,5 +57,5 @@ QMAKE_CFLAGS_THREAD =
57 57
58 QMAKE_CXX = CC 58 QMAKE_CXX = CC
59 QMAKE_CXXFLAGS = -64 -woff 1021,1209,1233,1314,1355,1375,1506,1681,1682,3496 $(CXXFLAGS_EXTRA) 59 QMAKE_CXXFLAGS = -64 -woff 1021,1209,1233,1314,1355,1375,1424,1506,1681,1682,3496 $(CXXFLAGS_EXTRA)
60 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS 60 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
61 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 61 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
@@ -112,2 +112,4 @@ QMAKE_MOVE = mv -f
112 QMAKE_DEL_FILE = rm -f 112 QMAKE_DEL_FILE = rm -f
113 QMAKE_DEL_DIR = rmdir 113 QMAKE_DEL_DIR = rmdir
114 QMAKE_CHK_DIR_EXISTS= test -d
115 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/irix-cc-64/qplatformdefs.h b/mkspecs/irix-cc-64/qplatformdefs.h
index c6eaa2f..8666daf 100644
--- a/mkspecs/irix-cc-64/qplatformdefs.h
+++ b/mkspecs/irix-cc-64/qplatformdefs.h
@@ -76,5 +76,9 @@
76 #define QT_SIGNAL_IGNORESIG_IGN 76 #define QT_SIGNAL_IGNORESIG_IGN
77 77
78#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500)
79 #define QT_SOCKLEN_T size_t
80#else
78 #define QT_SOCKLEN_T int 81 #define QT_SOCKLEN_T int
82#endif
79 83
80#if 0 84#if 0
diff --git a/mkspecs/irix-cc-o32/qmake.conf b/mkspecs/irix-cc-o32/qmake.conf
index 75114a5..a731849 100644
--- a/mkspecs/irix-cc-o32/qmake.conf
+++ b/mkspecs/irix-cc-o32/qmake.conf
@@ -2,5 +2,5 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for irix-o32 4# qmake configuration for irix-cc-o32
5# 5#
6# From cc(1): 6# From cc(1):
@@ -13,5 +13,5 @@
13 MAKEFILE_GENERATOR= UNIX 13 MAKEFILE_GENERATOR= UNIX
14 TEMPLATE = app 14 TEMPLATE = app
15 CONFIG += qt warn_on release 15 CONFIG += qt warn_on release link_prl
16 16
17 QMAKE_CC = cc 17 QMAKE_CC = cc
@@ -21,5 +21,5 @@ QMAKE_YACC = yacc
21 QMAKE_YACCFLAGS = -d 21 QMAKE_YACCFLAGS = -d
22 QMAKE_CFLAGS_DEPS= -M 22 QMAKE_CFLAGS_DEPS= -M
23 QMAKE_CFLAGS = -o32 -woff 3203,3260,3672 $(CFLAGS_EXTRA) 23 QMAKE_CFLAGS = -o32 -woff 3115,3203,3260,3672,3937 $(CFLAGS_EXTRA)
24 QMAKE_CFLAGS_WARN_ON= -fullwarn 24 QMAKE_CFLAGS_WARN_ON= -fullwarn
25 QMAKE_CFLAGS_WARN_OFF= 25 QMAKE_CFLAGS_WARN_OFF=
@@ -86,2 +86,4 @@ QMAKE_MOVE = mv -f
86 QMAKE_DEL_FILE = rm -f 86 QMAKE_DEL_FILE = rm -f
87 QMAKE_DEL_DIR = rmdir 87 QMAKE_DEL_DIR = rmdir
88 QMAKE_CHK_DIR_EXISTS= test -d
89 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/irix-cc/qmake.conf b/mkspecs/irix-cc/qmake.conf
index 31411af..469a473 100644
--- a/mkspecs/irix-cc/qmake.conf
+++ b/mkspecs/irix-cc/qmake.conf
@@ -2,5 +2,5 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for irix-n32 4# qmake configuration for irix-cc
5# 5#
6# From cc(1): 6# From cc(1):
@@ -39,5 +39,5 @@
39 MAKEFILE_GENERATOR= UNIX 39 MAKEFILE_GENERATOR= UNIX
40 TEMPLATE = app 40 TEMPLATE = app
41 CONFIG += qt warn_on release 41 CONFIG += qt warn_on release link_prl
42 42
43 QMAKE_CC = cc 43 QMAKE_CC = cc
@@ -57,5 +57,5 @@ QMAKE_CFLAGS_THREAD =
57 57
58 QMAKE_CXX = CC 58 QMAKE_CXX = CC
59 QMAKE_CXXFLAGS = -n32 -woff 1021,1209,1233,1314,1355,1375,1506,1681,1682,3496 $(CXXFLAGS_EXTRA) 59 QMAKE_CXXFLAGS = -n32 -woff 1021,1209,1233,1314,1355,1375,1424,1506,1681,1682,3496 $(CXXFLAGS_EXTRA)
60 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS 60 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
61 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 61 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
@@ -112,2 +112,4 @@ QMAKE_MOVE = mv -f
112 QMAKE_DEL_FILE = rm -f 112 QMAKE_DEL_FILE = rm -f
113 QMAKE_DEL_DIR = rmdir 113 QMAKE_DEL_DIR = rmdir
114 QMAKE_CHK_DIR_EXISTS= test -d
115 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/irix-cc/qplatformdefs.h b/mkspecs/irix-cc/qplatformdefs.h
index c6eaa2f..8666daf 100644
--- a/mkspecs/irix-cc/qplatformdefs.h
+++ b/mkspecs/irix-cc/qplatformdefs.h
@@ -76,5 +76,9 @@
76 #define QT_SIGNAL_IGNORESIG_IGN 76 #define QT_SIGNAL_IGNORESIG_IGN
77 77
78#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500)
79 #define QT_SOCKLEN_T size_t
80#else
78 #define QT_SOCKLEN_T int 81 #define QT_SOCKLEN_T int
82#endif
79 83
80#if 0 84#if 0
diff --git a/mkspecs/irix-g++/qmake.conf b/mkspecs/irix-g++/qmake.conf
index 17b6751..fa4422e 100644
--- a/mkspecs/irix-g++/qmake.conf
+++ b/mkspecs/irix-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt warn_on release link_prl
10 10
11 QMAKE_CC = gcc 11 QMAKE_CC = gcc
@@ -49,5 +49,5 @@ QMAKE_LFLAGS = $(LFLAGS_EXTRA)
49 QMAKE_LFLAGS_RELEASE= 49 QMAKE_LFLAGS_RELEASE=
50 QMAKE_LFLAGS_DEBUG= 50 QMAKE_LFLAGS_DEBUG=
51 QMAKE_LFLAGS_SHLIB= -shared 51 QMAKE_LFLAGS_SHLIB= -shared -Wl,-LD_LAYOUT:lgot_buffer=1000
52 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB 52 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
53 QMAKE_LFLAGS_SONAME= -Wl,-soname, 53 QMAKE_LFLAGS_SONAME= -Wl,-soname,
@@ -55,5 +55,5 @@ QMAKE_LFLAGS_THREAD =
55 QMAKE_RPATH = -Wl,-rpath, 55 QMAKE_RPATH = -Wl,-rpath,
56 56
57 QMAKE_LIBS = $(LIBS_EXTRA) 57 QMAKE_LIBS = -lC $(LIBS_EXTRA)
58 QMAKE_LIBS_DYNLOAD= 58 QMAKE_LIBS_DYNLOAD=
59 QMAKE_LIBS_X11 = -lXext -lX11 -lm 59 QMAKE_LIBS_X11 = -lXext -lX11 -lm
@@ -64,5 +64,5 @@ QMAKE_LIBS_QT_THREAD = -lqt-mt
64# with the GNU C++ library (similar name mangling and symbol names?) 64# with the GNU C++ library (similar name mangling and symbol names?)
65# so we add -lC so that the SGI C++ library is used first... 65# so we add -lC so that the SGI C++ library is used first...
66 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lC 66 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
67 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 67 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
68 QMAKE_LIBS_THREAD= -lpthread 68 QMAKE_LIBS_THREAD= -lpthread
@@ -83,2 +83,4 @@ QMAKE_MOVE = mv -f
83 QMAKE_DEL_FILE = rm -f 83 QMAKE_DEL_FILE = rm -f
84 QMAKE_DEL_DIR = rmdir 84 QMAKE_DEL_DIR = rmdir
85 QMAKE_CHK_DIR_EXISTS= test -d
86 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/irix-g++/qplatformdefs.h b/mkspecs/irix-g++/qplatformdefs.h
index 757afcc..dc47a03 100644
--- a/mkspecs/irix-g++/qplatformdefs.h
+++ b/mkspecs/irix-g++/qplatformdefs.h
@@ -80,5 +80,9 @@
80 #define QT_SIGNAL_IGNORESIG_IGN 80 #define QT_SIGNAL_IGNORESIG_IGN
81 81
82 #define QT_SOCKLEN_T int 82#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500)
83 #define QT_SOCKLEN_T size_t
84#else
85 #define QT_SOCKLEN_T int
86#endif
83 87
84#if 0 88#if 0
diff --git a/mkspecs/linux-cxx/qmake.conf b/mkspecs/linux-cxx/qmake.conf
index 6936fc9..f5d60dc 100644
--- a/mkspecs/linux-cxx/qmake.conf
+++ b/mkspecs/linux-cxx/qmake.conf
@@ -2,10 +2,12 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Compaq C++ for Linux on Alpha 4# qmake configuration for linux-cxx
5#
6# Written for Compaq C++ for GNU/Linux on Alpha (discontinued).
5# 7#
6 8
7 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
10 12
11 QMAKE_CC = ccc 13 QMAKE_CC = ccc
@@ -74,2 +76,4 @@ QMAKE_MOVE = mv -f
74 QMAKE_DEL_FILE = rm -f 76 QMAKE_DEL_FILE = rm -f
75 QMAKE_DEL_DIR = rmdir 77 QMAKE_DEL_DIR = rmdir
78 QMAKE_CHK_DIR_EXISTS= test -d
79 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/linux-ecc-64/qmake.conf b/mkspecs/linux-ecc-64/qmake.conf
new file mode 100644
index 0000000..4916ff1
--- a/dev/null
+++ b/mkspecs/linux-ecc-64/qmake.conf
@@ -0,0 +1,86 @@
1#
2# $Id$
3#
4# qmake configuration for linux-ecc-64
5#
6# Written for Intel C++ 7.1, and 8.0 for Linux.
7#
8
9 MAKEFILE_GENERATOR= UNIX
10 TEMPLATE = app
11 CONFIG += qt warn_on release link_prl
12
13 QMAKE_CC = ecc
14 QMAKE_LEX = flex
15 QMAKE_LEXFLAGS =
16 QMAKE_YACC = yacc
17 QMAKE_YACCFLAGS = -d
18 QMAKE_CFLAGS = $(CFLAGS_EXTRA)
19 QMAKE_CFLAGS_DEPS= -M
20 QMAKE_CFLAGS_WARN_ON=
21 QMAKE_CFLAGS_WARN_OFF= -w
22 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)
23 QMAKE_CFLAGS_DEBUG= -g
24 QMAKE_CFLAGS_SHLIB= -KPIC
25 QMAKE_CFLAGS_YACC=
26 QMAKE_CFLAGS_THREAD= -D_REENTRANT
27
28 QMAKE_CXX = ecpc
29 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA)
30 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
31 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
32 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
33 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
34 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
35 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
36 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
37 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
38
39 QMAKE_INCDIR =
40 QMAKE_LIBDIR =
41 QMAKE_INCDIR_X11= /usr/X11R6/include
42 QMAKE_LIBDIR_X11= /usr/X11R6/lib
43 QMAKE_INCDIR_QT = $(QTDIR)/include
44 QMAKE_LIBDIR_QT = $(QTDIR)/lib
45 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
46 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
47
48 QMAKE_LINK = ecpc
49 QMAKE_LINK_SHLIB= ecpc
50 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
51 QMAKE_LFLAGS_RELEASE=
52 QMAKE_LFLAGS_DEBUG=
53 QMAKE_LFLAGS_SHLIB= -shared
54 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
55 QMAKE_LFLAGS_SONAME= -Qoption,ld,-soname,
56 QMAKE_LFLAGS_THREAD=
57 QMAKE_RPATH = -Qoption,ld,-rpath,
58
59 QMAKE_LIBS = $(LIBS_EXTRA)
60 QMAKE_LIBS_DYNLOAD= -ldl
61 QMAKE_LIBS_X11 = -lXext -lX11 -lm
62 QMAKE_LIBS_X11SM= -lSM -lICE
63 QMAKE_LIBS_NIS = -lnsl
64 QMAKE_LIBS_QT = -lqt
65 QMAKE_LIBS_QT_THREAD= -lqt-mt
66 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
67 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
68 QMAKE_LIBS_THREAD= -lpthread
69
70 QMAKE_MOC = $(QTDIR)/bin/moc
71 QMAKE_UIC = $(QTDIR)/bin/uic
72
73 QMAKE_AR = ar cqs
74 QMAKE_RANLIB =
75
76 QMAKE_CLEAN = -r $(OBJECTS_DIR)/ti_files
77
78 QMAKE_TAR = tar -cf
79 QMAKE_GZIP = gzip -9f
80
81 QMAKE_COPY = cp -f
82 QMAKE_MOVE = mv -f
83 QMAKE_DEL_FILE = rm -f
84 QMAKE_DEL_DIR = rmdir
85 QMAKE_CHK_DIR_EXISTS= test -d
86 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/linux-ecc-64/qplatformdefs.h b/mkspecs/linux-ecc-64/qplatformdefs.h
new file mode 100644
index 0000000..e25bc1e
--- a/dev/null
+++ b/mkspecs/linux-ecc-64/qplatformdefs.h
@@ -0,0 +1,106 @@
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
43#include <sys/types.h>
44#include <sys/ioctl.h>
45#include <sys/ipc.h>
46#include <sys/time.h>
47#include <sys/shm.h>
48#include <sys/socket.h>
49#include <sys/stat.h>
50#include <sys/wait.h>
51
52// DNS header files are not fully covered by X/Open specifications.
53// In particular nothing is said about res_* :/
54// Header files <netinet/in.h> and <arpa/nameser.h> are not included
55// by <resolv.h> on older versions of the GNU C library. Note that
56// <arpa/nameser.h> must be included before <resolv.h>.
57#include <netinet/in.h>
58#include <arpa/nameser.h>
59#include <resolv.h>
60
61
62#if !defined(QT_NO_COMPAT)
63 #define QT_STATBUF struct stat
64 #define QT_STATBUF4TSTATstruct stat
65 #define QT_STAT ::stat
66 #define QT_FSTAT ::fstat
67 #define QT_STAT_REG S_IFREG
68 #define QT_STAT_DIR S_IFDIR
69 #define QT_STAT_MASK S_IFMT
70 #define QT_STAT_LNK S_IFLNK
71 #define QT_FILENO fileno
72 #define QT_OPEN ::open
73 #define QT_CLOSE ::close
74 #define QT_LSEEK ::lseek
75 #define QT_READ ::read
76 #define QT_WRITE ::write
77 #define QT_ACCESS ::access
78 #define QT_GETCWD ::getcwd
79 #define QT_CHDIR ::chdir
80 #define QT_MKDIR ::mkdir
81 #define QT_RMDIR ::rmdir
82 #define QT_OPEN_RDONLY O_RDONLY
83 #define QT_OPEN_WRONLY O_WRONLY
84 #define QT_OPEN_RDWR O_RDWR
85 #define QT_OPEN_CREAT O_CREAT
86 #define QT_OPEN_TRUNC O_TRUNC
87 #define QT_OPEN_APPEND O_APPEND
88#endif
89
90 #define QT_SIGNAL_RETTYPEvoid
91 #define QT_SIGNAL_ARGS int
92 #define QT_SIGNAL_IGNORESIG_IGN
93
94#if defined(__GLIBC__) && (__GLIBC__ >= 2)
95 #define QT_SOCKLEN_T socklen_t
96#else
97 #define QT_SOCKLEN_T int
98#endif
99
100#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
101 #define QT_SNPRINTF ::snprintf
102 #define QT_VSNPRINTF ::vsnprintf
103#endif
104
105
106#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/linux-g++-64/qmake.conf b/mkspecs/linux-g++-64/qmake.conf
new file mode 100644
index 0000000..39b018f
--- a/dev/null
+++ b/mkspecs/linux-g++-64/qmake.conf
@@ -0,0 +1,90 @@
1#
2# $Id$
3#
4# qmake configuration for linux-g++
5#
6# mkspec for platforms that have both lib and lib64
7# directories, like the AMD Opteron.
8#
9
10 MAKEFILE_GENERATOR= UNIX
11 TEMPLATE = app
12 CONFIG += qt warn_on release incremental link_prl
13QMAKE_INCREMENTAL_STYLE = sublib
14
15 QMAKE_CC = gcc
16 QMAKE_LEX = flex
17 QMAKE_LEXFLAGS =
18 QMAKE_YACC = yacc
19 QMAKE_YACCFLAGS = -d
20 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA)
21 QMAKE_CFLAGS_DEPS= -M
22 QMAKE_CFLAGS_WARN_ON= -Wall -W
23 QMAKE_CFLAGS_WARN_OFF= -w
24 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)
25 QMAKE_CFLAGS_DEBUG= -g
26 QMAKE_CFLAGS_SHLIB= -fPIC
27 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses
28 QMAKE_CFLAGS_THREAD= -D_REENTRANT
29
30 QMAKE_CXX = g++
31 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA)
32 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
33 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
34 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
35 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
36 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
37 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
38 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
39 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
40
41 QMAKE_INCDIR =
42 QMAKE_LIBDIR =
43 QMAKE_INCDIR_X11= /usr/X11R6/include
44 QMAKE_LIBDIR_X11= /usr/X11R6/lib64
45 QMAKE_INCDIR_QT = $(QTDIR)/include
46 QMAKE_LIBDIR_QT = $(QTDIR)/lib64
47 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
48 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib64
49
50 QMAKE_LINK = g++
51 QMAKE_LINK_SHLIB= g++
52 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
53 QMAKE_LFLAGS_RELEASE=
54 QMAKE_LFLAGS_DEBUG=
55 QMAKE_LFLAGS_SHLIB= -shared
56 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
57 QMAKE_LFLAGS_SONAME= -Wl,-soname,
58 QMAKE_LFLAGS_THREAD=
59 QMAKE_RPATH = -Wl,-rpath,
60
61 QMAKE_LIBS = $(LIBS_EXTRA)
62 QMAKE_LIBS_DYNLOAD= -ldl
63 QMAKE_LIBS_X11 = -lXext -lX11 -lm
64 QMAKE_LIBS_X11SM= -lSM -lICE
65 QMAKE_LIBS_NIS = -lnsl
66 QMAKE_LIBS_QT = -lqt
67 QMAKE_LIBS_QT_THREAD= -lqt-mt
68 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
69 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
70 QMAKE_LIBS_THREAD= -lpthread
71
72 QMAKE_MOC = $(QTDIR)/bin/moc
73 QMAKE_UIC = $(QTDIR)/bin/uic
74
75 QMAKE_AR = ar cqs
76 QMAKE_RANLIB =
77
78 QMAKE_TAR = tar -cf
79 QMAKE_GZIP = gzip -9f
80
81 QMAKE_COPY = cp -f
82QMAKE_COPY_FILE = $(COPY)
83QMAKE_COPY_DIR = $(COPY) -r
84 QMAKE_MOVE = mv -f
85 QMAKE_DEL_FILE = rm -f
86 QMAKE_DEL_DIR = rmdir
87QMAKE_STRIP = strip
88 QMAKE_STRIPFLAGS_LIB += --strip-unneeded
89 QMAKE_CHK_DIR_EXISTS= test -d
90 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/linux-g++-64/qplatformdefs.h b/mkspecs/linux-g++-64/qplatformdefs.h
new file mode 100644
index 0000000..e25bc1e
--- a/dev/null
+++ b/mkspecs/linux-g++-64/qplatformdefs.h
@@ -0,0 +1,106 @@
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
43#include <sys/types.h>
44#include <sys/ioctl.h>
45#include <sys/ipc.h>
46#include <sys/time.h>
47#include <sys/shm.h>
48#include <sys/socket.h>
49#include <sys/stat.h>
50#include <sys/wait.h>
51
52// DNS header files are not fully covered by X/Open specifications.
53// In particular nothing is said about res_* :/
54// Header files <netinet/in.h> and <arpa/nameser.h> are not included
55// by <resolv.h> on older versions of the GNU C library. Note that
56// <arpa/nameser.h> must be included before <resolv.h>.
57#include <netinet/in.h>
58#include <arpa/nameser.h>
59#include <resolv.h>
60
61
62#if !defined(QT_NO_COMPAT)
63 #define QT_STATBUF struct stat
64 #define QT_STATBUF4TSTATstruct stat
65 #define QT_STAT ::stat
66 #define QT_FSTAT ::fstat
67 #define QT_STAT_REG S_IFREG
68 #define QT_STAT_DIR S_IFDIR
69 #define QT_STAT_MASK S_IFMT
70 #define QT_STAT_LNK S_IFLNK
71 #define QT_FILENO fileno
72 #define QT_OPEN ::open
73 #define QT_CLOSE ::close
74 #define QT_LSEEK ::lseek
75 #define QT_READ ::read
76 #define QT_WRITE ::write
77 #define QT_ACCESS ::access
78 #define QT_GETCWD ::getcwd
79 #define QT_CHDIR ::chdir
80 #define QT_MKDIR ::mkdir
81 #define QT_RMDIR ::rmdir
82 #define QT_OPEN_RDONLY O_RDONLY
83 #define QT_OPEN_WRONLY O_WRONLY
84 #define QT_OPEN_RDWR O_RDWR
85 #define QT_OPEN_CREAT O_CREAT
86 #define QT_OPEN_TRUNC O_TRUNC
87 #define QT_OPEN_APPEND O_APPEND
88#endif
89
90 #define QT_SIGNAL_RETTYPEvoid
91 #define QT_SIGNAL_ARGS int
92 #define QT_SIGNAL_IGNORESIG_IGN
93
94#if defined(__GLIBC__) && (__GLIBC__ >= 2)
95 #define QT_SOCKLEN_T socklen_t
96#else
97 #define QT_SOCKLEN_T int
98#endif
99
100#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
101 #define QT_SNPRINTF ::snprintf
102 #define QT_VSNPRINTF ::vsnprintf
103#endif
104
105
106#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/linux-g++/qmake.conf b/mkspecs/linux-g++/qmake.conf
index 37a3f6e..882168a 100644
--- a/mkspecs/linux-g++/qmake.conf
+++ b/mkspecs/linux-g++/qmake.conf
@@ -7,6 +7,6 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release incremental 9 CONFIG += qt warn_on release incremental link_prl
10QMAKE_INCREMENTAL_STYLE = sublib 10QMAKE_INCREMENTAL_STYLE = sublib
11 11
12 QMAKE_CC = gcc 12 QMAKE_CC = gcc
@@ -15,4 +15,7 @@ QMAKE_LEXFLAGS =
15 QMAKE_YACC = yacc 15 QMAKE_YACC = yacc
16 QMAKE_YACCFLAGS = -d 16 QMAKE_YACCFLAGS = -d
17QMAKE_YACCFLAGS_MANGLE = -p $base -b $base
18QMAKE_YACC_HEADER = $base.tab.h
19QMAKE_YACC_SOURCE = $base.tab.c
17 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) 20 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA)
18 QMAKE_CFLAGS_DEPS= -M 21 QMAKE_CFLAGS_DEPS= -M
@@ -77,6 +80,11 @@ QMAKE_GZIP = gzip -9f
77 80
78 QMAKE_COPY = cp -f 81 QMAKE_COPY = cp -f
82QMAKE_COPY_FILE = $(COPY)
83QMAKE_COPY_DIR = $(COPY) -r
79 QMAKE_MOVE = mv -f 84 QMAKE_MOVE = mv -f
80 QMAKE_DEL_FILE = rm -f 85 QMAKE_DEL_FILE = rm -f
81 QMAKE_DEL_DIR = rmdir 86 QMAKE_DEL_DIR = rmdir
82QMAKE_STRIP = strip 87QMAKE_STRIP = strip
88 QMAKE_STRIPFLAGS_LIB += --strip-unneeded
89 QMAKE_CHK_DIR_EXISTS= test -d
90 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/linux-icc/qmake.conf b/mkspecs/linux-icc/qmake.conf
index 9dc7480..5fcd96b 100644
--- a/mkspecs/linux-icc/qmake.conf
+++ b/mkspecs/linux-icc/qmake.conf
@@ -2,10 +2,12 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Intel C++ 5.0.1, 6.0, and 7.0 for Linux 4# qmake configuration for linux-icc
5#
6# Written for Intel C++ 5.0.1, 6.0.1, 7.0, and 8.0 for Linux.
5# 7#
6 8
7 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
10 12
11 QMAKE_CC = icc 13 QMAKE_CC = icc
@@ -81,2 +83,4 @@ QMAKE_MOVE = mv -f
81 QMAKE_DEL_FILE = rm -f 83 QMAKE_DEL_FILE = rm -f
82 QMAKE_DEL_DIR = rmdir 84 QMAKE_DEL_DIR = rmdir
85 QMAKE_CHK_DIR_EXISTS= test -d
86 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/linux-kcc/qmake.conf b/mkspecs/linux-kcc/qmake.conf
index 5a2a670..30580b8 100644
--- a/mkspecs/linux-kcc/qmake.conf
+++ b/mkspecs/linux-kcc/qmake.conf
@@ -2,5 +2,7 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for KAI C++ 4.0f for Linux 4# qmake configuration for linux-kcc
5#
6# Written for KAI C++ 4.0f for GNU/Linux (discontinued).
5# 7#
6# From the KAI C++ man page for Linux: 8# From the KAI C++ man page for Linux:
@@ -14,5 +16,5 @@
14 MAKEFILE_GENERATOR= UNIX 16 MAKEFILE_GENERATOR= UNIX
15 TEMPLATE = app 17 TEMPLATE = app
16 CONFIG += qt warn_on release 18 CONFIG += qt warn_on release link_prl
17 19
18 QMAKE_CC = KCC 20 QMAKE_CC = KCC
@@ -88,2 +90,4 @@ QMAKE_MOVE = mv -f
88 QMAKE_DEL_FILE = rm -f 90 QMAKE_DEL_FILE = rm -f
89 QMAKE_DEL_DIR = rmdir 91 QMAKE_DEL_DIR = rmdir
92 QMAKE_CHK_DIR_EXISTS= test -d
93 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/linux-kylix/qmake.conf b/mkspecs/linux-kylix/qmake.conf
new file mode 100644
index 0000000..dfbf8e7
--- a/dev/null
+++ b/mkspecs/linux-kylix/qmake.conf
@@ -0,0 +1,84 @@
1#
2# $Id$
3#
4# qmake configuration for linux-kylix
5#
6
7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app
9 CONFIG += qt warn_on release incremental link_prl
10 QMAKE_INCREMENTAL_STYLE= sublib
11
12 QMAKE_CC = bc++
13 QMAKE_LEX = flex
14 QMAKE_LEXFLAGS =
15 QMAKE_YACC = yacc
16 QMAKE_YACCFLAGS = -d
17 QMAKE_CFLAGS = $(CFLAGS_EXTRA)
18 QMAKE_CFLAGS_DEPS= -m
19 QMAKE_CFLAGS_WARN_ON= -w
20 QMAKE_CFLAGS_WARN_OFF= -w-
21 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)
22 QMAKE_CFLAGS_DEBUG= -v -y
23 QMAKE_CFLAGS_SHLIB=
24 QMAKE_CFLAGS_YACC=
25 QMAKE_CFLAGS_THREAD=
26
27 QMAKE_CXX = bc++
28 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -P $(CXXFLAGS_EXTRA)
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_YACC= $$QMAKE_CFLAGS_YACC
36 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
37
38 QMAKE_INCDIR =
39 QMAKE_LIBDIR =
40 QMAKE_INCDIR_X11= /usr/X11R6/include
41 QMAKE_LIBDIR_X11= /usr/X11R6/lib
42 QMAKE_INCDIR_QT = $(QTDIR)/include
43 QMAKE_LIBDIR_QT = $(QTDIR)/lib
44 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
45 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
46
47 QMAKE_LINK = bc++
48 QMAKE_LINK_SHLIB= bc++
49 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
50 QMAKE_LFLAGS_RELEASE=
51 QMAKE_LFLAGS_DEBUG= -lv -ly
52 QMAKE_LFLAGS_SHLIB= -ltD -lTpd
53 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
54 QMAKE_LFLAGS_SONAME= -lN
55 QMAKE_LFLAGS_THREAD=
56 QMAKE_RPATH =
57
58 QMAKE_LIBS = $(LIBS_EXTRA)
59 QMAKE_LIBS_DYNLOAD= -llibdl
60 QMAKE_LIBS_X11 = -llibXext -llibX11 -llibm
61 QMAKE_LIBS_X11SM= -llibSM -llibICE
62 QMAKE_LIBS_NIS = -llibnsl
63 QMAKE_LIBS_QT = -llibqt
64 QMAKE_LIBS_QT_THREAD= -llibqt-mt
65 QMAKE_LIBS_OPENGL= -llibGLU -llibGL -llibXmu
66 QMAKE_LIBS_OPENGL_QT= -llibGL -llibXmu
67 QMAKE_LIBS_THREAD= -llibpthread
68
69 QMAKE_MOC = $(QTDIR)/bin/moc
70 QMAKE_UIC = $(QTDIR)/bin/uic
71
72 QMAKE_AR = ar cqs
73 QMAKE_RANLIB =
74
75 QMAKE_TAR = tar -cf
76 QMAKE_GZIP = gzip -9f
77
78 QMAKE_COPY = cp -f
79 QMAKE_MOVE = mv -f
80 QMAKE_DEL_FILE = rm -f
81 QMAKE_DEL_DIR = rmdir
82QMAKE_STRIP = strip
83 QMAKE_CHK_DIR_EXISTS= test -d
84 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/linux-kylix/qplatformdefs.h b/mkspecs/linux-kylix/qplatformdefs.h
new file mode 100644
index 0000000..e25bc1e
--- a/dev/null
+++ b/mkspecs/linux-kylix/qplatformdefs.h
@@ -0,0 +1,106 @@
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
43#include <sys/types.h>
44#include <sys/ioctl.h>
45#include <sys/ipc.h>
46#include <sys/time.h>
47#include <sys/shm.h>
48#include <sys/socket.h>
49#include <sys/stat.h>
50#include <sys/wait.h>
51
52// DNS header files are not fully covered by X/Open specifications.
53// In particular nothing is said about res_* :/
54// Header files <netinet/in.h> and <arpa/nameser.h> are not included
55// by <resolv.h> on older versions of the GNU C library. Note that
56// <arpa/nameser.h> must be included before <resolv.h>.
57#include <netinet/in.h>
58#include <arpa/nameser.h>
59#include <resolv.h>
60
61
62#if !defined(QT_NO_COMPAT)
63 #define QT_STATBUF struct stat
64 #define QT_STATBUF4TSTATstruct stat
65 #define QT_STAT ::stat
66 #define QT_FSTAT ::fstat
67 #define QT_STAT_REG S_IFREG
68 #define QT_STAT_DIR S_IFDIR
69 #define QT_STAT_MASK S_IFMT
70 #define QT_STAT_LNK S_IFLNK
71 #define QT_FILENO fileno
72 #define QT_OPEN ::open
73 #define QT_CLOSE ::close
74 #define QT_LSEEK ::lseek
75 #define QT_READ ::read
76 #define QT_WRITE ::write
77 #define QT_ACCESS ::access
78 #define QT_GETCWD ::getcwd
79 #define QT_CHDIR ::chdir
80 #define QT_MKDIR ::mkdir
81 #define QT_RMDIR ::rmdir
82 #define QT_OPEN_RDONLY O_RDONLY
83 #define QT_OPEN_WRONLY O_WRONLY
84 #define QT_OPEN_RDWR O_RDWR
85 #define QT_OPEN_CREAT O_CREAT
86 #define QT_OPEN_TRUNC O_TRUNC
87 #define QT_OPEN_APPEND O_APPEND
88#endif
89
90 #define QT_SIGNAL_RETTYPEvoid
91 #define QT_SIGNAL_ARGS int
92 #define QT_SIGNAL_IGNORESIG_IGN
93
94#if defined(__GLIBC__) && (__GLIBC__ >= 2)
95 #define QT_SOCKLEN_T socklen_t
96#else
97 #define QT_SOCKLEN_T int
98#endif
99
100#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
101 #define QT_SNPRINTF ::snprintf
102 #define QT_VSNPRINTF ::vsnprintf
103#endif
104
105
106#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/linux-pgcc/qmake.conf b/mkspecs/linux-pgcc/qmake.conf
index a200f69..f416183 100644
--- a/mkspecs/linux-pgcc/qmake.conf
+++ b/mkspecs/linux-pgcc/qmake.conf
@@ -2,10 +2,12 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Portland Group C++ for Intel 4# qmake configuration for linux-pgcc
5#
6# Written for Portland Group C++ for Intel.
5# 7#
6 8
7 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
10 12
11 QMAKE_CC = pgcc 13 QMAKE_CC = pgcc
@@ -79,2 +81,4 @@ QMAKE_MOVE = mv -f
79 QMAKE_DEL_FILE = rm -f 81 QMAKE_DEL_FILE = rm -f
80 QMAKE_DEL_DIR = rmdir 82 QMAKE_DEL_DIR = rmdir
83 QMAKE_CHK_DIR_EXISTS= test -d
84 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/lynxos-g++/qmake.conf b/mkspecs/lynxos-g++/qmake.conf
new file mode 100644
index 0000000..12364c1
--- a/dev/null
+++ b/mkspecs/lynxos-g++/qmake.conf
@@ -0,0 +1,87 @@
1#
2# $Id$
3#
4# qmake configuration for lynxos-g++
5#
6# Written for LynxOS 4.0.
7#
8
9 MAKEFILE_GENERATOR= UNIX
10 TEMPLATE = app
11 CONFIG += qt warn_on release incremental link_prl
12QMAKE_INCREMENTAL_STYLE = sublib
13
14 QMAKE_CC = gcc
15 QMAKE_LEX = flex
16 QMAKE_LEXFLAGS =
17 QMAKE_YACC = yacc
18 QMAKE_YACCFLAGS = -d
19 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA)
20 QMAKE_CFLAGS_DEPS= -M
21 QMAKE_CFLAGS_WARN_ON= -Wall -W
22 QMAKE_CFLAGS_WARN_OFF= -w
23 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)
24 QMAKE_CFLAGS_DEBUG= -g
25 QMAKE_CFLAGS_SHLIB= -fPIC
26 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses
27 QMAKE_CFLAGS_THREAD= -D_REENTRANT
28
29 QMAKE_CXX = g++
30 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA)
31 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
32 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
33 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
34 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
35 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
36 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
37 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
38 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
39
40 QMAKE_INCDIR =
41 QMAKE_LIBDIR =
42 QMAKE_INCDIR_X11= /usr/include/X11
43 QMAKE_LIBDIR_X11=
44 QMAKE_INCDIR_QT = $(QTDIR)/include
45 QMAKE_LIBDIR_QT = $(QTDIR)/lib
46 QMAKE_INCDIR_OPENGL= /usr/include/GL
47 QMAKE_LIBDIR_OPENGL=
48
49 QMAKE_LINK = g++
50 QMAKE_LINK_SHLIB= g++
51 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
52 QMAKE_LFLAGS_RELEASE=
53 QMAKE_LFLAGS_DEBUG=
54 QMAKE_LFLAGS_SHLIB= -shared
55 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
56 QMAKE_LFLAGS_SONAME= -Wl,-soname,
57 QMAKE_LFLAGS_THREAD=
58 QMAKE_RPATH = -Wl,-rpath,
59
60 QMAKE_LIBS = $(LIBS_EXTRA)
61 QMAKE_LIBS_DYNLOAD= -ldl
62 QMAKE_LIBS_X11 = -lXext -lX11 -lm
63 QMAKE_LIBS_X11SM= -lSM -lICE
64 QMAKE_LIBS_NIS = -lnsl
65 QMAKE_LIBS_QT = -lqt
66 QMAKE_LIBS_QT_THREAD= -lqt-mt
67 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
68 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
69 QMAKE_LIBS_THREAD= -lpthread
70
71 QMAKE_MOC = $(QTDIR)/bin/moc
72 QMAKE_UIC = $(QTDIR)/bin/uic
73
74 QMAKE_AR = ar cqs
75 QMAKE_RANLIB =
76
77 QMAKE_TAR = tar -cf
78 QMAKE_GZIP = gzip -9f
79
80 QMAKE_COPY = cp -f
81 QMAKE_MOVE = mv -f
82 QMAKE_DEL_FILE = rm -f
83 QMAKE_DEL_DIR = rmdir
84QMAKE_STRIP = strip
85 QMAKE_STRIPFLAGS_LIB += --strip-unneeded
86 QMAKE_CHK_DIR_EXISTS= test -d
87 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/lynxos-g++/qplatformdefs.h b/mkspecs/lynxos-g++/qplatformdefs.h
new file mode 100644
index 0000000..56f4be6
--- a/dev/null
+++ b/mkspecs/lynxos-g++/qplatformdefs.h
@@ -0,0 +1,91 @@
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#include <unistd.h>
11
12
13// We are hot - unistd.h should have turned on the specific APIs we requested
14
15
16#ifdef QT_THREAD_SUPPORT
17#include <pthread.h>
18#endif
19
20#include <dirent.h>
21#include <fcntl.h>
22#include <grp.h>
23#include <pwd.h>
24#include <signal.h>
25#include <dlfcn.h>
26
27#include <sys/types.h>
28#include <sys/ioctl.h>
29#include <sys/ipc.h>
30#include <sys/time.h>
31#include <sys/shm.h>
32#include <sys/socket.h>
33#include <sys/stat.h>
34#include <sys/wait.h>
35
36// DNS header files are not fully covered by X/Open specifications.
37// In particular nothing is said about res_* :/
38// Header files <netinet/in.h> and <arpa/nameser.h> are not included
39// by <resolv.h> on older versions of the GNU C library. Note that
40// <arpa/nameser.h> must be included before <resolv.h>.
41#include <arpa/inet.h>
42#include <netinet/in.h>
43#include <arpa/nameser.h>
44#include <resolv.h>
45
46
47#if !defined(QT_NO_COMPAT)
48 #define QT_STATBUF struct stat
49 #define QT_STATBUF4TSTATstruct stat
50 #define QT_STAT ::stat
51 #define QT_FSTAT ::fstat
52 #define QT_STAT_REG S_IFREG
53 #define QT_STAT_DIR S_IFDIR
54 #define QT_STAT_MASK S_IFMT
55 #define QT_STAT_LNK S_IFLNK
56 #define QT_FILENO fileno
57 #define QT_OPEN ::open
58 #define QT_CLOSE ::close
59 #define QT_LSEEK ::lseek
60 #define QT_READ ::read
61 #define QT_WRITE ::write
62 #define QT_ACCESS ::access
63 #define QT_GETCWD ::getcwd
64 #define QT_CHDIR ::chdir
65 #define QT_MKDIR ::mkdir
66 #define QT_RMDIR ::rmdir
67 #define QT_OPEN_RDONLY O_RDONLY
68 #define QT_OPEN_WRONLY O_WRONLY
69 #define QT_OPEN_RDWR O_RDWR
70 #define QT_OPEN_CREAT O_CREAT
71 #define QT_OPEN_TRUNC O_TRUNC
72 #define QT_OPEN_APPEND O_APPEND
73#endif
74
75 #define QT_SIGNAL_RETTYPEvoid
76 #define QT_SIGNAL_ARGS int
77 #define QT_SIGNAL_IGNORESIG_IGN
78
79#if defined(__GLIBC__) && (__GLIBC__ >= 2)
80 #define QT_SOCKLEN_T socklen_t
81#else
82 #define QT_SOCKLEN_T int
83#endif
84
85#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
86 #define QT_SNPRINTF ::snprintf
87 #define QT_VSNPRINTF ::vsnprintf
88#endif
89
90
91#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/macx-g++/Info.plist.app b/mkspecs/macx-g++/Info.plist.app
index 9d6c42a..4da07e9 100644
--- a/mkspecs/macx-g++/Info.plist.app
+++ b/mkspecs/macx-g++/Info.plist.app
@@ -4,5 +4,5 @@
4<dict> 4<dict>
5 <key>CFBundleIconFile</key> 5 <key>CFBundleIconFile</key>
6 <string>application.icns</string> 6 <string>@ICON@</string>
7 <key>CFBundlePackageType</key> 7 <key>CFBundlePackageType</key>
8 <string>APPL</string> 8 <string>APPL</string>
@@ -11,4 +11,6 @@
11 <key>CFBundleSignature</key> 11 <key>CFBundleSignature</key>
12 <string>ttxt</string> 12 <string>ttxt</string>
13 <key>CFBundleExecutable</key>
14 <string>@EXECUTABLE@</string>
13 <key>NOTE</key> 15 <key>NOTE</key>
14 <string>Please, do NOT change this file -- It was generated by Qt/QMake.</string> 16 <string>Please, do NOT change this file -- It was generated by Qt/QMake.</string>
diff --git a/mkspecs/macx-g++/qmake.conf b/mkspecs/macx-g++/qmake.conf
index dc8da5c..67bc525 100644
--- a/mkspecs/macx-g++/qmake.conf
+++ b/mkspecs/macx-g++/qmake.conf
@@ -7,12 +7,15 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release resource_fork incremental global_init_link_order lib_version_first plugin_no_soname 9 CONFIG += qt warn_on release resource_fork incremental global_init_link_order lib_version_first plugin_no_soname link_prl
10QMAKE_INCREMENTAL_STYLE = sublibs 10QMAKE_INCREMENTAL_STYLE = sublibs
11 11
12 QMAKE_CC = $(TB)cc 12 QMAKE_CC = cc
13 QMAKE_LEX = flex 13 QMAKE_LEX = flex
14 QMAKE_LEXFLAGS = 14 QMAKE_LEXFLAGS =
15 QMAKE_YACC = yacc 15 QMAKE_YACC = yacc
16 QMAKE_YACCFLAGS = -d 16 QMAKE_YACCFLAGS = -d
17QMAKE_YACCFLAGS_MANGLE = -p $base -b $base
18QMAKE_YACC_HEADER = $base.tab.h
19QMAKE_YACC_SOURCE = $base.tab.c
17 QMAKE_RESOURCE = /Developer/Tools/Rez 20 QMAKE_RESOURCE = /Developer/Tools/Rez
18 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) 21 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA)
@@ -20,5 +23,5 @@ QMAKE_CFLAGS_DEPS = -M
20 QMAKE_CFLAGS_WARN_ON= -Wall -W 23 QMAKE_CFLAGS_WARN_ON= -Wall -W
21 QMAKE_CFLAGS_WARN_OFF= -w 24 QMAKE_CFLAGS_WARN_OFF= -w
22 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) 25 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -Os)
23 QMAKE_CFLAGS_DEBUG= -g 26 QMAKE_CFLAGS_DEBUG= -g
24 QMAKE_CFLAGS_SHLIB= -fPIC 27 QMAKE_CFLAGS_SHLIB= -fPIC
@@ -26,5 +29,5 @@ QMAKE_EXTENSION_SHLIB = dylib
26 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses 29 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses
27 30
28 QMAKE_CXX = $(TB)c++ 31 QMAKE_CXX = c++
29 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA) 32 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA)
30 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS 33 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
@@ -36,5 +39,4 @@ QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB
36 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC 39 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
37 40
38 QMAKE_INCDIR = /usr/local/include
39 QMAKE_LIBDIR = 41 QMAKE_LIBDIR =
40 QMAKE_INCDIR_QT = $(QTDIR)/include 42 QMAKE_INCDIR_QT = $(QTDIR)/include
@@ -45,14 +47,20 @@ QMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \
45 QMAKE_LINK = $$QMAKE_CXX 47 QMAKE_LINK = $$QMAKE_CXX
46 QMAKE_LINK_SHLIB= $$QMAKE_CXX 48 QMAKE_LINK_SHLIB= $$QMAKE_CXX
47 QMAKE_LFLAGS = $(LFLAGS_EXTRA) 49 QMAKE_LFLAGS = -headerpad_max_install_names $(LFLAGS_EXTRA)
48#QMAKE_LFLAGS_PREBIND = -prebind -seg1addr 0x90000000 50#QMAKE_LFLAGS_PREBIND = -seg1addr 0x90000000
49 QMAKE_LFLAGS_RELEASE= 51 QMAKE_LFLAGS_RELEASE=
50 QMAKE_LFLAGS_DEBUG= 52 QMAKE_LFLAGS_DEBUG=
51 QMAKE_LFLAGS_SHAPP= -prebind 53 QMAKE_LFLAGS_APP= -prebind
52 QMAKE_LFLAGS_SHLIB= -dynamiclib 54 QMAKE_LFLAGS_SHLIB= -prebind -dynamiclib
53QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace 55QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace
54 QMAKE_LFLAGS_PLUGIN= -bundle 56 QMAKE_LFLAGS_PLUGIN= -bundle
55 QMAKE_LFLAGS_SONAME= -install_name$${LITERAL_WHITESPACE}@executable_path/../Frameworks/ 57#You probably don't want to mess with this, instead look at install_name_tool(1)
58 #QMAKE_LFLAGS_SONAME= -install_name$${LITERAL_WHITESPACE}@executable_path/../Frameworks/
59 QMAKE_LFLAGS_SONAME= -install_name$${LITERAL_WHITESPACE}
56 QMAKE_LFLAGS_THREAD= 60 QMAKE_LFLAGS_THREAD=
61
62QMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE}
63QMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE}
64
57 QMAKE_RPATH = 65 QMAKE_RPATH =
58 66
@@ -79,2 +87,4 @@ QMAKE_MOVE = mv -f
79 QMAKE_DEL_FILE = rm -f 87 QMAKE_DEL_FILE = rm -f
80 QMAKE_DEL_DIR = rmdir 88 QMAKE_DEL_DIR = rmdir
89 QMAKE_CHK_DIR_EXISTS= test -d
90 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/macx-mwerks/qmake.conf b/mkspecs/macx-mwerks/qmake.conf
index 15f4325..ad9b47d 100644
--- a/mkspecs/macx-mwerks/qmake.conf
+++ b/mkspecs/macx-mwerks/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= METROWERKS 7 MAKEFILE_GENERATOR= METROWERKS
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt release warn_off separate_volume 9 CONFIG += qt release warn_off separate_volume link_prl
10 10
11 DEFINES += QT_NO_STL __MACOSX__ __CF_USE_FRAMEWORK_INCLUDES__ 11 DEFINES += QT_NO_STL __MACOSX__ __CF_USE_FRAMEWORK_INCLUDES__
@@ -17,5 +17,5 @@ FRAMEWORKPATH = {System}/Library/Frameworks/
17 QMAKE_CRT_OBJECTS= crt1.o 17 QMAKE_CRT_OBJECTS= crt1.o
18 QMAKE_INCDIR_QT = $(QTDIR)/include 18 QMAKE_INCDIR_QT = $(QTDIR)/include
19 QMAKE_LIBS = $(LIBS_EXTRA) 19 QMAKE_LIBS = -framework System $(LIBS_EXTRA)
20 QMAKE_LIBS_QT = -L$(QTDIR)/lib/ -lqt 20 QMAKE_LIBS_QT = -L$(QTDIR)/lib/ -lqt
21 QMAKE_INCDIR_OPENGL= /System/Library/Frameworks/OpenGL.framework/Headers \ 21 QMAKE_INCDIR_OPENGL= /System/Library/Frameworks/OpenGL.framework/Headers \
diff --git a/mkspecs/macx-pbuilder/Info.plist.app b/mkspecs/macx-pbuilder/Info.plist.app
index 9d6c42a..4da07e9 100755
--- a/mkspecs/macx-pbuilder/Info.plist.app
+++ b/mkspecs/macx-pbuilder/Info.plist.app
@@ -4,5 +4,5 @@
4<dict> 4<dict>
5 <key>CFBundleIconFile</key> 5 <key>CFBundleIconFile</key>
6 <string>application.icns</string> 6 <string>@ICON@</string>
7 <key>CFBundlePackageType</key> 7 <key>CFBundlePackageType</key>
8 <string>APPL</string> 8 <string>APPL</string>
@@ -11,4 +11,6 @@
11 <key>CFBundleSignature</key> 11 <key>CFBundleSignature</key>
12 <string>ttxt</string> 12 <string>ttxt</string>
13 <key>CFBundleExecutable</key>
14 <string>@EXECUTABLE@</string>
13 <key>NOTE</key> 15 <key>NOTE</key>
14 <string>Please, do NOT change this file -- It was generated by Qt/QMake.</string> 16 <string>Please, do NOT change this file -- It was generated by Qt/QMake.</string>
diff --git a/mkspecs/macx-pbuilder/qmake.conf b/mkspecs/macx-pbuilder/qmake.conf
index 6d765a8..da820ac 100755
--- a/mkspecs/macx-pbuilder/qmake.conf
+++ b/mkspecs/macx-pbuilder/qmake.conf
@@ -7,7 +7,7 @@
7 MAKEFILE_GENERATOR= PROJECTBUILDER 7 MAKEFILE_GENERATOR= PROJECTBUILDER
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release lib_version_first incremental resource_fork plugin_no_soname 9 CONFIG += qt warn_on release lib_version_first incremental plugin_no_soname link_prl
10 10
11 QMAKE_CC = cc 11 QMAKE_CC =
12 QMAKE_LEX = flex 12 QMAKE_LEX = flex
13 QMAKE_LEXFLAGS = 13 QMAKE_LEXFLAGS =
@@ -19,5 +19,5 @@ QMAKE_CFLAGS_DEPS = -M
19 QMAKE_CFLAGS_WARN_ON= -Wall -W 19 QMAKE_CFLAGS_WARN_ON= -Wall -W
20 QMAKE_CFLAGS_WARN_OFF= 20 QMAKE_CFLAGS_WARN_OFF=
21 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O3) 21 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -Os)
22 QMAKE_CFLAGS_DEBUG= -g 22 QMAKE_CFLAGS_DEBUG= -g
23 QMAKE_CFLAGS_SHLIB= -fPIC 23 QMAKE_CFLAGS_SHLIB= -fPIC
@@ -25,5 +25,5 @@ QMAKE_EXTENSION_SHLIB = dylib
25 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses 25 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses
26 26
27 QMAKE_CXX = c++ 27 QMAKE_CXX =
28 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA) 28 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA)
29 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS 29 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
@@ -48,9 +48,9 @@ QMAKE_LFLAGS = $(LFLAGS_EXTRA)
48 QMAKE_LFLAGS_RELEASE= 48 QMAKE_LFLAGS_RELEASE=
49 QMAKE_LFLAGS_DEBUG= 49 QMAKE_LFLAGS_DEBUG=
50 QMAKE_LFLAGS_SHAPP= -prebind 50 QMAKE_LFLAGS_APP= -prebind
51 QMAKE_LFLAGS_SHLIB= -dynamiclib 51 QMAKE_LFLAGS_SHLIB= -dynamiclib
52QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace 52QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace
53 QMAKE_LFLAGS_PLUGIN= -bundle 53 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
54 QMAKE_LFLAGS_SONAME= -install_name$${LITERAL_WHITESPACE}@executable_path/../Frameworks/ 54 #QMAKE_LFLAGS_SONAME= -install_name$${LITERAL_WHITESPACE}@executable_path/../Frameworks/
55 QMAKE_LFLAGS_THREAD= 55 QMAKE_LFLAGS_THREAD=
56 QMAKE_RPATH = 56 QMAKE_RPATH =
@@ -78,2 +78,4 @@ QMAKE_MOVE = mv -f
78 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
79 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/netbsd-g++/qmake.conf b/mkspecs/netbsd-g++/qmake.conf
index 6df9f06..df4e707 100644
--- a/mkspecs/netbsd-g++/qmake.conf
+++ b/mkspecs/netbsd-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt warn_on release link_prl
10 10
11 QMAKE_CC = gcc 11 QMAKE_CC = gcc
@@ -79,2 +79,4 @@ QMAKE_MOVE = mv -f
79 QMAKE_DEL_FILE = rm -f 79 QMAKE_DEL_FILE = rm -f
80 QMAKE_DEL_DIR = rmdir 80 QMAKE_DEL_DIR = rmdir
81 QMAKE_CHK_DIR_EXISTS= test -d
82 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/openbsd-g++/qmake.conf b/mkspecs/openbsd-g++/qmake.conf
index 8f2dbf4..fdbbf55 100644
--- a/mkspecs/openbsd-g++/qmake.conf
+++ b/mkspecs/openbsd-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt warn_on release link_prl
10 10
11 QMAKE_CC = gcc 11 QMAKE_CC = gcc
@@ -80,2 +80,4 @@ QMAKE_MOVE = mv -f
80 QMAKE_DEL_FILE = rm -f 80 QMAKE_DEL_FILE = rm -f
81 QMAKE_DEL_DIR = rmdir 81 QMAKE_DEL_DIR = rmdir
82 QMAKE_CHK_DIR_EXISTS= test -d
83 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/pyfix.py b/mkspecs/pyfix.py
new file mode 100644
index 0000000..7b86f42
--- a/dev/null
+++ b/mkspecs/pyfix.py
@@ -0,0 +1,82 @@
1import os
2
3# patch the following
4# QMAKE_CFLAGS add $(CFLAGS_EXTRA)
5# QMAKE_CXXFLAGS add $(CXXFLAGS_EXTRA)
6# QMAKE_LFLAGS add $(LFLAGS_EXTRA)
7# QMAKE_LIBS add $(LIBS_EXTRA)
8
9# QMAKE_CFLAGS_RELEASE include old argument
10#
11
12add_map = { "QMAKE_CFLAGS" : "$(CFLAGS_EXTRA)",
13 "QMAKE_CXXFLAGS" : "$(CXXFLAGS_EXTRA)",
14 "QMAKE_LFLAGS" : "$(LFLAGS_EXTRA)",
15 "QMAKE_LIBS" : "$(LIBS_EXTRA)" }
16
17rep_map = { "QMAKE_CFLAGS_RELEASE" : ["$(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE),", ")"] }
18
19
20def split_text(line):
21 """
22 SPlits the text in the form of "key = value"
23 and returns a two tuple-tuple
24 """
25 ## disabled strip and split tab stuff
26 left = line.find('=')
27 if left == -1:
28 raise Exception, "No src line"
29 key = line[0:left].strip()
30 val = line[left+1:].strip()
31 return (key,val)
32
33def apply_line(line):
34 """
35 Apply changes to a line. This will not handle the exception
36 thrown by split_text
37 """
38 key,val = split_text(line)
39
40 tabs = '\t'
41 if len(key) <= 14:
42 tabs = tabs + '\t'
43 spac = ''
44 if len(val) != 0:
45 spac = ' '
46
47 # for minimal changes on the file we've three returns
48 if add_map.has_key(key):
49 val = val + spac + add_map[key]
50 return key + tabs + '= ' + val + '\n'
51 elif rep_map.has_key(key):
52 val = rep_map[key][0] + ' ' + val + rep_map[key][1]
53 return key + tabs + '= ' + val + '\n'
54 return line
55
56
57
58def apply_on_file(fi):
59 """
60 Apply the maps on files
61 """
62 lines = []
63 for line in file(fi):
64 try:
65 line = apply_line(line)
66 except:
67 pass
68 lines.append(line)
69
70 f = file(fi,'w')
71 for line in lines:
72 f.write(line)
73
74def fix_it():
75 for root, dirs, files in os.walk('./mkspecs'):
76 for fil in files:
77 print root + '/' + fil
78 apply_on_file(root+'/'+fil)
79
80
81if __name__ == '__main__':
82 fix_it()
diff --git a/mkspecs/qnx-g++/qmake.conf b/mkspecs/qnx-g++/qmake.conf
index adca607..4b71b75 100644
--- a/mkspecs/qnx-g++/qmake.conf
+++ b/mkspecs/qnx-g++/qmake.conf
@@ -4,10 +4,10 @@
4# qmake configuration for qnx-g++ 4# qmake configuration for qnx-g++
5# 5#
6# QNX RTOS v6 with X11 6# Written for QNX RTOS v6 with X11.
7# 7#
8 8
9 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
10 TEMPLATE = app 10 TEMPLATE = app
11 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
12 12
13 QMAKE_CC = gcc 13 QMAKE_CC = gcc
@@ -57,5 +57,5 @@ QMAKE_LFLAGS_THREAD =
57 QMAKE_RPATH = -Wl,-rpath, 57 QMAKE_RPATH = -Wl,-rpath,
58 58
59 QMAKE_LIBS = $(LIBS_EXTRA) 59 QMAKE_LIBS = -lunix $(LIBS_EXTRA)
60 QMAKE_LIBS_DYNLOAD= -ldl 60 QMAKE_LIBS_DYNLOAD= -ldl
61 QMAKE_LIBS_X11 = -lXext -lX11 -lm 61 QMAKE_LIBS_X11 = -lXext -lX11 -lm
@@ -80,2 +80,4 @@ QMAKE_MOVE = mv -f
80 QMAKE_DEL_FILE = rm -f 80 QMAKE_DEL_FILE = rm -f
81 QMAKE_DEL_DIR = rmdir 81 QMAKE_DEL_DIR = rmdir
82 QMAKE_CHK_DIR_EXISTS= test -d
83 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/freebsd-generic-g++/qmake.conf b/mkspecs/qws/freebsd-generic-g++/qmake.conf
index 82b22d7..0a9ea90 100644
--- a/mkspecs/qws/freebsd-generic-g++/qmake.conf
+++ b/mkspecs/qws/freebsd-generic-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 10
11 QMAKE_CC = gcc 11 QMAKE_CC = gcc
@@ -40,4 +40,6 @@ QMAKE_LIBDIR = /usr/local/lib
40 QMAKE_INCDIR_QT = $(QTDIR)/include 40 QMAKE_INCDIR_QT = $(QTDIR)/include
41 QMAKE_LIBDIR_QT = $(QTDIR)/lib 41 QMAKE_LIBDIR_QT = $(QTDIR)/lib
42 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
43 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
42 44
43 QMAKE_LINK = g++ 45 QMAKE_LINK = g++
@@ -56,4 +58,5 @@ QMAKE_LIBS_QT = -lqte
56QMAKE_LIBS_QT_THREAD = -lqte-mt 58QMAKE_LIBS_QT_THREAD = -lqte-mt
57QMAKE_LIBS_THREAD = 59QMAKE_LIBS_THREAD =
60 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
58 61
59 QMAKE_MOC = $(QTDIR)/bin/moc 62 QMAKE_MOC = $(QTDIR)/bin/moc
@@ -70,2 +73,4 @@ QMAKE_MOVE = mv -f
70 QMAKE_DEL_FILE = rm -f 73 QMAKE_DEL_FILE = rm -f
71 QMAKE_DEL_DIR = rmdir 74 QMAKE_DEL_DIR = rmdir
75 QMAKE_CHK_DIR_EXISTS= test -d
76 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/freebsd-generic-g++/qplatformdefs.h b/mkspecs/qws/freebsd-generic-g++/qplatformdefs.h
new file mode 100644
index 0000000..a164a73
--- a/dev/null
+++ b/mkspecs/qws/freebsd-generic-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#include <unistd.h>
11
12
13// We are hot - unistd.h should have turned on the specific APIs we requested
14
15
16#ifdef QT_THREAD_SUPPORT
17#include <pthread.h>
18#endif
19
20#include <dirent.h>
21#include <fcntl.h>
22#include <grp.h>
23#include <pwd.h>
24#include <signal.h>
25#include <dlfcn.h>
26
27#include <sys/types.h>
28#include <sys/ioctl.h>
29#include <sys/ipc.h>
30#include <sys/time.h>
31#include <sys/shm.h>
32#include <sys/socket.h>
33#include <sys/stat.h>
34#include <sys/wait.h>
35
36// DNS header files are not fully covered by X/Open specifications.
37// In particular nothing is said about res_* :/
38// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not
39// included by <resolv.h>. Note that <arpa/nameser.h> must be included
40// before <resolv.h>.
41#include <netinet/in.h>
42#define class c_class // FreeeBSD 3.x
43#include <arpa/nameser.h>
44#undef class
45#include <resolv.h>
46
47
48#if !defined(QT_NO_COMPAT)
49 #define QT_STATBUF struct stat
50 #define QT_STATBUF4TSTATstruct stat
51 #define QT_STAT ::stat
52 #define QT_FSTAT ::fstat
53 #define QT_STAT_REG S_IFREG
54 #define QT_STAT_DIR S_IFDIR
55 #define QT_STAT_MASK S_IFMT
56 #define QT_STAT_LNK S_IFLNK
57 #define QT_FILENO fileno
58 #define QT_OPEN ::open
59 #define QT_CLOSE ::close
60 #define QT_LSEEK ::lseek
61 #define QT_READ ::read
62 #define QT_WRITE ::write
63 #define QT_ACCESS ::access
64 #define QT_GETCWD ::getcwd
65 #define QT_CHDIR ::chdir
66 #define QT_MKDIR ::mkdir
67 #define QT_RMDIR ::rmdir
68 #define QT_OPEN_RDONLY O_RDONLY
69 #define QT_OPEN_WRONLY O_WRONLY
70 #define QT_OPEN_RDWR O_RDWR
71 #define QT_OPEN_CREAT O_CREAT
72 #define QT_OPEN_TRUNC O_TRUNC
73 #define QT_OPEN_APPEND O_APPEND
74#endif
75
76 #define QT_SIGNAL_RETTYPEvoid
77 #define QT_SIGNAL_ARGS int
78 #define QT_SIGNAL_IGNORESIG_IGN
79
80#if __FreeBSD_version < 400000
81// FreeBSD 1.0 - 3.5.1
82 # define QT_SOCKLEN_T int
83#else
84// FreeBSD 4.0 - 5.0
85 # define QT_SOCKLEN_T socklen_t
86#endif
87
88 #define QT_SNPRINTF ::snprintf
89 #define QT_VSNPRINTF ::vsnprintf
90
91// Older FreeBSD versions may still use the a.out format instead of ELF.
92// From the FreeBSD man pages:
93 // In previous implementations, it was necessary to prepend an
94 // underscore to all external symbols in order to gain symbol
95 // compatibility with object code compiled from the C language.
96 // This is still the case when using the (obsolete) -aout option to
97 // the C language compiler.
98#ifndef __ELF__
99#define QT_AOUT_UNDERSCORE
100#endif
101
102
103#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/qws/linux-arm-g++/qmake.conf b/mkspecs/qws/linux-arm-g++/qmake.conf
index a5c08ae..244f9a8 100644
--- a/mkspecs/qws/linux-arm-g++/qmake.conf
+++ b/mkspecs/qws/linux-arm-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 10
11 QMAKE_CC = arm-linux-gcc 11 QMAKE_CC = arm-linux-gcc
@@ -41,7 +41,9 @@ QMAKE_LIBDIR_QT = $(QTDIR)/lib
41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include 41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib 42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
43 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
44 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
43 45
44 QMAKE_LINK = arm-linux-gcc 46 QMAKE_LINK = arm-linux-g++
45 QMAKE_LINK_SHLIB= arm-linux-gcc 47 QMAKE_LINK_SHLIB= arm-linux-g++
46 QMAKE_LFLAGS = $(LFLAGS_EXTRA) 48 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
47 QMAKE_LFLAGS_RELEASE= 49 QMAKE_LFLAGS_RELEASE=
@@ -60,4 +62,5 @@ QMAKE_LIBS_QT = -lqte
60QMAKE_LIBS_QT_THREAD = -lqte-mt 62QMAKE_LIBS_QT_THREAD = -lqte-mt
61 QMAKE_LIBS_QT_OPENGL= -lqgl 63 QMAKE_LIBS_QT_OPENGL= -lqgl
64 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
62QMAKE_LIBS_THREAD = -lpthread 65QMAKE_LIBS_THREAD = -lpthread
63 66
@@ -75,2 +78,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/linux-generic-g++/qmake.conf b/mkspecs/qws/linux-generic-g++/qmake.conf
index 2610b12..4e837d6 100644
--- a/mkspecs/qws/linux-generic-g++/qmake.conf
+++ b/mkspecs/qws/linux-generic-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 10
11 QMAKE_CC = $(CCACHE) $(DISTCC) gcc 11 QMAKE_CC = $(CCACHE) $(DISTCC) gcc
@@ -41,4 +41,6 @@ QMAKE_LIBDIR_QT = $(QTDIR)/lib
41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include 41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib 42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
43 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include/
44 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
43 45
44 QMAKE_LINK = g++ 46 QMAKE_LINK = g++
@@ -60,4 +62,5 @@ QMAKE_LIBS_QT = -lqte
60QMAKE_LIBS_QT_THREAD = -lqte-mt 62QMAKE_LIBS_QT_THREAD = -lqte-mt
61 QMAKE_LIBS_QT_OPENGL= -lqgl 63 QMAKE_LIBS_QT_OPENGL= -lqgl
64 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
62QMAKE_LIBS_THREAD = -lpthread 65QMAKE_LIBS_THREAD = -lpthread
63 66
@@ -75,2 +78,5 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80QMAKE_STRIP = strip
81 QMAKE_CHK_DIR_EXISTS= test -d
82 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/linux-ipaq-g++/qmake.conf b/mkspecs/qws/linux-ipaq-g++/qmake.conf
index be91a64..b42f2d6 100644
--- a/mkspecs/qws/linux-ipaq-g++/qmake.conf
+++ b/mkspecs/qws/linux-ipaq-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 10
11 QMAKE_CC = arm-linux-gcc 11 QMAKE_CC = arm-linux-gcc
@@ -41,7 +41,9 @@ QMAKE_LIBDIR_QT = $(QTDIR)/lib
41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include 41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib 42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
43 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
44 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
43 45
44 QMAKE_LINK = arm-linux-gcc 46 QMAKE_LINK = arm-linux-g++
45 QMAKE_LINK_SHLIB= arm-linux-gcc 47 QMAKE_LINK_SHLIB= arm-linux-g++
46 QMAKE_LFLAGS = $(LFLAGS_EXTRA) 48 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
47 QMAKE_LFLAGS_RELEASE= 49 QMAKE_LFLAGS_RELEASE=
@@ -51,5 +53,5 @@ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
51QMAKE_LFLAGS_SONAME = -Wl,-soname, 53QMAKE_LFLAGS_SONAME = -Wl,-soname,
52QMAKE_LFLAGS_THREAD = 54QMAKE_LFLAGS_THREAD =
53QMAKE_RPATH = -Wl,-rpath-link, 55QMAKE_RPATH = -Wl,-rpath,
54 56
55 QMAKE_LIBS = $(LIBS_EXTRA) 57 QMAKE_LIBS = $(LIBS_EXTRA)
@@ -60,4 +62,5 @@ QMAKE_LIBS_QT = -lqte
60QMAKE_LIBS_QT_THREAD = -lqte-mt 62QMAKE_LIBS_QT_THREAD = -lqte-mt
61 QMAKE_LIBS_QT_OPENGL= -lqgl 63 QMAKE_LIBS_QT_OPENGL= -lqgl
64 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
62QMAKE_LIBS_THREAD = -lpthread 65QMAKE_LIBS_THREAD = -lpthread
63 66
@@ -75,2 +78,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/linux-mips-g++/qmake.conf b/mkspecs/qws/linux-mips-g++/qmake.conf
index f5d2033..f9a410a 100644
--- a/mkspecs/qws/linux-mips-g++/qmake.conf
+++ b/mkspecs/qws/linux-mips-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 10
11 QMAKE_CC = mipsel-linux-gcc 11 QMAKE_CC = mipsel-linux-gcc
@@ -41,4 +41,6 @@ QMAKE_LIBDIR_QT = $(QTDIR)/lib
41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include 41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib 42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
43 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
44 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
43 45
44 QMAKE_LINK = mipsel-linux-g++ 46 QMAKE_LINK = mipsel-linux-g++
@@ -60,4 +62,5 @@ QMAKE_LIBS_QT = -lqte
60QMAKE_LIBS_QT_THREAD = -lqte-mt 62QMAKE_LIBS_QT_THREAD = -lqte-mt
61 QMAKE_LIBS_QT_OPENGL= -lqgl 63 QMAKE_LIBS_QT_OPENGL= -lqgl
64 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
62QMAKE_LIBS_THREAD = -lpthread 65QMAKE_LIBS_THREAD = -lpthread
63 66
@@ -75,2 +78,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/linux-ramses-g++/qmake.conf b/mkspecs/qws/linux-ramses-g++/qmake.conf
index 612c7a4..028c157 100644
--- a/mkspecs/qws/linux-ramses-g++/qmake.conf
+++ b/mkspecs/qws/linux-ramses-g++/qmake.conf
@@ -21,5 +21,5 @@ QMAKE_LEXFLAGS =
21 QMAKE_YACC = yacc 21 QMAKE_YACC = yacc
22 QMAKE_YACCFLAGS = -d 22 QMAKE_YACCFLAGS = -d
23 QMAKE_CFLAGS = -I$$STAGING_INC -pipe $(CFLAGS_EXTRA) 23 QMAKE_CFLAGS = -I$$STAGING_INC -pipe $(CFLAGS_EXTRA)
24 QMAKE_CFLAGS_WARN_ON= -Wall -W 24 QMAKE_CFLAGS_WARN_ON= -Wall -W
25 QMAKE_CFLAGS_WARN_OFF= 25 QMAKE_CFLAGS_WARN_OFF=
@@ -51,5 +51,5 @@ QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib
51 QMAKE_LINK = arm-linux-gcc 51 QMAKE_LINK = arm-linux-gcc
52 QMAKE_LINK_SHLIB= arm-linux-gcc 52 QMAKE_LINK_SHLIB= arm-linux-gcc
53 QMAKE_LFLAGS = -L$$STAGING_LIB -Wl,-rpath,$$STAGING_LIB -Wl,-rpath-link,$$STAGING_LIB -lpng -ljpeg -lz $(LFLAGS_EXTRA) 53 QMAKE_LFLAGS = -L$$STAGING_LIB -Wl,-rpath,$$STAGING_LIB -Wl,-rpath-link,$$STAGING_LIB -lpng -ljpeg -lz $(LFLAGS_EXTRA)
54 QMAKE_LFLAGS_RELEASE= 54 QMAKE_LFLAGS_RELEASE=
55 QMAKE_LFLAGS_DEBUG= 55 QMAKE_LFLAGS_DEBUG=
@@ -60,5 +60,5 @@ QMAKE_LFLAGS_THREAD =
60QMAKE_RPATH = -Wl,-rpath, 60QMAKE_RPATH = -Wl,-rpath,
61 61
62 QMAKE_LIBS = $(LIBS_EXTRA) 62 QMAKE_LIBS = $(LIBS_EXTRA)
63QMAKE_LIBS_DYNLOAD = -ldl 63QMAKE_LIBS_DYNLOAD = -ldl
64 QMAKE_LIBS_X11 = 64 QMAKE_LIBS_X11 =
@@ -82,2 +82,5 @@ QMAKE_MOVE = mv -f
82 QMAKE_DEL_FILE = rm -f 82 QMAKE_DEL_FILE = rm -f
83 QMAKE_DEL_DIR = rmdir 83 QMAKE_DEL_DIR = rmdir
84QMAKE_STRIP = strip
85 QMAKE_CHK_DIR_EXISTS= test -d
86 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/linux-sharp-g++/qmake.conf b/mkspecs/qws/linux-sharp-g++/qmake.conf
index e90ea59..27b2e91 100644
--- a/mkspecs/qws/linux-sharp-g++/qmake.conf
+++ b/mkspecs/qws/linux-sharp-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 10
11 QMAKE_CC = arm-linux-gcc 11 QMAKE_CC = arm-linux-gcc
@@ -23,5 +23,5 @@ QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
23 QMAKE_CFLAGS_THREAD= -D_REENTRANT 23 QMAKE_CFLAGS_THREAD= -D_REENTRANT
24 24
25 QMAKE_CXX = arm-linux-g++ -DQT_QWS_SL5XXX -DQT_QWS_SHARP -DQT_QWS_EBX -DQT_QWS_CUSTOM 25 QMAKE_CXX = arm-linux-g++ -DQT_QWS_SL5XX -DQT_QWS_SHARP
26 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) 26 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA)
27 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 27 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
@@ -41,7 +41,9 @@ QMAKE_LIBDIR_QT = $(QTDIR)/lib
41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include 41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib 42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
43 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
44 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
43 45
44 QMAKE_LINK = arm-linux-gcc 46 QMAKE_LINK = arm-linux-g++
45 QMAKE_LINK_SHLIB= arm-linux-gcc 47 QMAKE_LINK_SHLIB= arm-linux-g++
46 QMAKE_LFLAGS = $(LFLAGS_EXTRA) 48 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
47 QMAKE_LFLAGS_RELEASE= 49 QMAKE_LFLAGS_RELEASE=
@@ -60,4 +62,5 @@ QMAKE_LIBS_QT = -lqte
60QMAKE_LIBS_QT_THREAD = -lqte-mt 62QMAKE_LIBS_QT_THREAD = -lqte-mt
61 QMAKE_LIBS_QT_OPENGL= -lqgl 63 QMAKE_LIBS_QT_OPENGL= -lqgl
64 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
62QMAKE_LIBS_THREAD = -lpthread 65QMAKE_LIBS_THREAD = -lpthread
63 66
@@ -75,2 +78,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/linux-simpad-g++/qmake.conf b/mkspecs/qws/linux-simpad-g++/qmake.conf
index 7dce65d..9094ea9 100644
--- a/mkspecs/qws/linux-simpad-g++/qmake.conf
+++ b/mkspecs/qws/linux-simpad-g++/qmake.conf
@@ -14,5 +14,5 @@ QMAKE_LEXFLAGS =
14 QMAKE_YACC = yacc 14 QMAKE_YACC = yacc
15 QMAKE_YACCFLAGS = -d 15 QMAKE_YACCFLAGS = -d
16 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) 16 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA)
17 QMAKE_CFLAGS_WARN_ON= -Wall -W 17 QMAKE_CFLAGS_WARN_ON= -Wall -W
18 QMAKE_CFLAGS_WARN_OFF= 18 QMAKE_CFLAGS_WARN_OFF=
@@ -24,5 +24,5 @@ QMAKE_CFLAGS_THREAD = -D_REENTRANT
24 24
25 QMAKE_CXX = $(CCACHE) arm-linux-g++ 25 QMAKE_CXX = $(CCACHE) arm-linux-g++
26 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_QWS_IPAQ -DQT_QWS_SIMPAD -DQT_QWS_DEVFS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) 26 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_QWS_IPAQ -DQT_QWS_SIMPAD -DQT_QWS_DEVFS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA)
27 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 27 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
28 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF 28 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
@@ -44,5 +44,5 @@ QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib
44 QMAKE_LINK = arm-linux-gcc 44 QMAKE_LINK = arm-linux-gcc
45 QMAKE_LINK_SHLIB= arm-linux-gcc 45 QMAKE_LINK_SHLIB= arm-linux-gcc
46 QMAKE_LFLAGS = $(LFLAGS_EXTRA) 46 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
47 QMAKE_LFLAGS_RELEASE= 47 QMAKE_LFLAGS_RELEASE=
48 QMAKE_LFLAGS_DEBUG= 48 QMAKE_LFLAGS_DEBUG=
@@ -53,5 +53,5 @@ QMAKE_LFLAGS_THREAD =
53QMAKE_RPATH = -Wl,-rpath, 53QMAKE_RPATH = -Wl,-rpath,
54 54
55 QMAKE_LIBS = $(LIBS_EXTRA) 55 QMAKE_LIBS = $(LIBS_EXTRA)
56QMAKE_LIBS_DYNLOAD = -ldl 56QMAKE_LIBS_DYNLOAD = -ldl
57 QMAKE_LIBS_X11 = 57 QMAKE_LIBS_X11 =
@@ -75,2 +75,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 75 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 76 QMAKE_DEL_DIR = rmdir
77 QMAKE_CHK_DIR_EXISTS= test -d
78 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/linux-x86-g++/qmake.conf b/mkspecs/qws/linux-x86-g++/qmake.conf
index fc5723a..7c31e2c 100644
--- a/mkspecs/qws/linux-x86-g++/qmake.conf
+++ b/mkspecs/qws/linux-x86-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 10
11 QMAKE_CC = gcc 11 QMAKE_CC = gcc
@@ -41,4 +41,6 @@ QMAKE_LIBDIR_QT = $(QTDIR)/lib
41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include 41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib 42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
43 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
44 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
43 45
44 QMAKE_LINK = g++ 46 QMAKE_LINK = g++
@@ -60,4 +62,5 @@ QMAKE_LIBS_QT = -lqte
60QMAKE_LIBS_QT_THREAD = -lqte-mt 62QMAKE_LIBS_QT_THREAD = -lqte-mt
61 QMAKE_LIBS_QT_OPENGL= -lqgl 63 QMAKE_LIBS_QT_OPENGL= -lqgl
64 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
62QMAKE_LIBS_THREAD = -lpthread 65QMAKE_LIBS_THREAD = -lpthread
63 66
@@ -75,2 +78,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/linux-yopy-g++/qmake.conf b/mkspecs/qws/linux-yopy-g++/qmake.conf
index 6d97110..3c8c148 100755
--- a/mkspecs/qws/linux-yopy-g++/qmake.conf
+++ b/mkspecs/qws/linux-yopy-g++/qmake.conf
@@ -14,5 +14,5 @@ QMAKE_LEXFLAGS =
14 QMAKE_YACC = yacc 14 QMAKE_YACC = yacc
15 QMAKE_YACCFLAGS = -d 15 QMAKE_YACCFLAGS = -d
16 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) 16 QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA)
17 QMAKE_CFLAGS_WARN_ON= -Wall -W 17 QMAKE_CFLAGS_WARN_ON= -Wall -W
18 QMAKE_CFLAGS_WARN_OFF= 18 QMAKE_CFLAGS_WARN_OFF=
@@ -75,2 +75,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 75 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 76 QMAKE_DEL_DIR = rmdir
77QMAKE_CHK_DIR_EXISTS = test -d
78 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/macx-generic-g++/qmake.conf b/mkspecs/qws/macx-generic-g++/qmake.conf
index 7bc67c7..99acca7 100644
--- a/mkspecs/qws/macx-generic-g++/qmake.conf
+++ b/mkspecs/qws/macx-generic-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 QMAKE_EXTENSION_SHLIB= dylib 10 QMAKE_EXTENSION_SHLIB= dylib
11 11
@@ -25,5 +25,6 @@ QMAKE_CFLAGS_THREAD = -D_REENTRANT
25 25
26 QMAKE_CXX = $(TB)c++ 26 QMAKE_CXX = $(TB)c++
27 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_NO_QWS_TRANSFORMED -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) -DQ_OS_MACX -DQT_NO_SOUND -DOPIE_NO_OVERRIDE_QT -DOPIE_NO_BACKTRACE 27 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_NO_QWS_TRANSFORMED -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA)
28DEFINES += QWS
28 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 29 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
29 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF 30 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
@@ -42,4 +43,6 @@ QMAKE_LIBDIR_QT = $(QTDIR)/lib
42 QMAKE_INCDIR_OPENGL= /usr/X11R6/include 43 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
43 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib 44 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
45 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
46 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
44 47
45 QMAKE_LINK = $$QMAKE_CXX 48 QMAKE_LINK = $$QMAKE_CXX
@@ -59,7 +62,7 @@ QMAKE_LIBS_X11 =
59 QMAKE_LIBS_X11SM= 62 QMAKE_LIBS_X11SM=
60 QMAKE_LIBS_QT = -lqte 63 QMAKE_LIBS_QT = -lqte
61 #QMAKE_LIBS_QT = libqte.dylib
62 QMAKE_LIBS_QT_THREAD= -lqte-mt 64 QMAKE_LIBS_QT_THREAD= -lqte-mt
63 QMAKE_LIBS_QT_OPENGL= -lqgl 65 QMAKE_LIBS_QT_OPENGL= -lqgl
66 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
64 QMAKE_LIBS_THREAD= 67 QMAKE_LIBS_THREAD=
65 68
@@ -77,5 +80,4 @@ QMAKE_MOVE = mv -f
77 QMAKE_DEL_FILE = rm -f 80 QMAKE_DEL_FILE = rm -f
78 QMAKE_DEL_DIR = rmdir 81 QMAKE_DEL_DIR = rmdir
79 82 QMAKE_CHK_DIR_EXISTS= test -d
80 83 QMAKE_MKDIR = mkdir -p
81
diff --git a/mkspecs/qws/qnx4-cc/qmake.conf b/mkspecs/qws/qnx4-cc/qmake.conf
index 1ca2029..fac6a5b 100644
--- a/mkspecs/qws/qnx4-cc/qmake.conf
+++ b/mkspecs/qws/qnx4-cc/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release no_mocdepend 9 CONFIG += qt no_mocdepend link_prl
10 10
11 QMAKE_CC = cc 11 QMAKE_CC = cc
@@ -17,5 +17,5 @@ QMAKE_CFLAGS = -WC,-sg $(CFLAGS_EXTRA)
17QMAKE_CFLAGS_WARN_ON = -w1 17QMAKE_CFLAGS_WARN_ON = -w1
18QMAKE_CFLAGS_WARN_OFF = -w0 18QMAKE_CFLAGS_WARN_OFF = -w0
19QMAKE_CFLAGS_RELEASE = $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O) 19 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O)
20 QMAKE_CFLAGS_DEBUG= -g2d 20 QMAKE_CFLAGS_DEBUG= -g2d
21 QMAKE_CFLAGS_SHLIB= 21 QMAKE_CFLAGS_SHLIB=
@@ -24,5 +24,5 @@ QMAKE_CFLAGS_THREAD = -D_REENTRANT -WC,-bm
24 24
25 QMAKE_CXX = cc 25 QMAKE_CXX = cc
26 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS $(CXXFLAGS_EXTRA) 26 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS $(CXXFLAGS_EXTRA)
27 DEFINES += QT_NO_SOUND QT_CLEAN_NAMESPACE QT_NO_QWS_TRANSFORMED QT_NO_QWS_MOUSE_AUTO QT_NO_QWS_MOUSE_MANUAL QT_NO_QWS_LINUXFB 27 DEFINES += QT_NO_SOUND QT_CLEAN_NAMESPACE QT_NO_QWS_TRANSFORMED QT_NO_QWS_MOUSE_AUTO QT_NO_QWS_MOUSE_MANUAL QT_NO_QWS_LINUXFB
28 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 28 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
@@ -38,8 +38,10 @@ QMAKE_LIBDIR = /usr/local/lib $(QTDIR)/lib
38 QMAKE_INCDIR_QT = $(QTDIR)/include 38 QMAKE_INCDIR_QT = $(QTDIR)/include
39 QMAKE_LIBDIR_QT = $(QTDIR)/lib 39 QMAKE_LIBDIR_QT = $(QTDIR)/lib
40 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
41 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
40 42
41 QMAKE_LINK = cc 43 QMAKE_LINK = cc
42 QMAKE_LINK_SHLIB= cc 44 QMAKE_LINK_SHLIB= cc
43 QMAKE_LFLAGS = -lsocket $(LFLAGS_EXTRA) 45 QMAKE_LFLAGS = -lsocket $(LFLAGS_EXTRA)
44 QMAKE_LFLAGS_RELEASE= 46 QMAKE_LFLAGS_RELEASE=
45 QMAKE_LFLAGS_DEBUG= -g2d 47 QMAKE_LFLAGS_DEBUG= -g2d
@@ -50,8 +52,9 @@ QMAKE_LFLAGS_THREAD =
50 QMAKE_RPATH = 52 QMAKE_RPATH =
51 53
52 QMAKE_LIBS = $(LIBS_EXTRA) 54 QMAKE_LIBS = -lsocket $(LIBS_EXTRA)
53 QMAKE_LIBS_DYNLOAD= 55 QMAKE_LIBS_DYNLOAD=
54 QMAKE_LIBS_QT = -T 1 -lqte 56 QMAKE_LIBS_QT = -T 1 -lqte
55 QMAKE_LIBS_QT_THREAD= -lqte-mt 57 QMAKE_LIBS_QT_THREAD= -lqte-mt
58 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
56 QMAKE_LIBS_THREAD= 59 QMAKE_LIBS_THREAD=
57 60
@@ -69,2 +72,4 @@ QMAKE_MOVE = mv -f
69 QMAKE_DEL_FILE = rm -f 72 QMAKE_DEL_FILE = rm -f
70 QMAKE_DEL_DIR = rmdir 73 QMAKE_DEL_DIR = rmdir
74 QMAKE_CHK_DIR_EXISTS= test -d
75 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/qnx6-generic-cc/qmake.conf b/mkspecs/qws/qnx6-generic-cc/qmake.conf
index 51eb3fe..55535fd 100644
--- a/mkspecs/qws/qnx6-generic-cc/qmake.conf
+++ b/mkspecs/qws/qnx6-generic-cc/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 10
11 QMAKE_CC = cc 11 QMAKE_CC = cc
@@ -41,8 +41,10 @@ QMAKE_LIBDIR_QT = $(QTDIR)/lib
41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include 41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib 42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
43 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
44 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
43 45
44 QMAKE_LINK = cc 46 QMAKE_LINK = cc
45 QMAKE_LINK_SHLIB= cc 47 QMAKE_LINK_SHLIB= cc
46 QMAKE_LFLAGS = -lsocket -ldisputil $(LFLAGS_EXTRA) 48 QMAKE_LFLAGS = -lsocket -ldisputil $(LFLAGS_EXTRA)
47 QMAKE_LFLAGS_RELEASE= 49 QMAKE_LFLAGS_RELEASE=
48 QMAKE_LFLAGS_DEBUG= 50 QMAKE_LFLAGS_DEBUG=
@@ -53,5 +55,5 @@ QMAKE_LFLAGS_THREAD =
53 QMAKE_RPATH = -Wl,-rpath, 55 QMAKE_RPATH = -Wl,-rpath,
54 56
55 QMAKE_LIBS = $(LIBS_EXTRA) 57 QMAKE_LIBS = -lsocket -lcpp $(LIBS_EXTRA)
56 QMAKE_LIBS_DYNLOAD= 58 QMAKE_LIBS_DYNLOAD=
57 QMAKE_LIBS_X11 = -ldisputil -lm 59 QMAKE_LIBS_X11 = -ldisputil -lm
@@ -60,4 +62,5 @@ QMAKE_LIBS_QT = -lqte
60 QMAKE_LIBS_QT_THREAD= -lqte-mt 62 QMAKE_LIBS_QT_THREAD= -lqte-mt
61 QMAKE_LIBS_QT_OPENGL= -lqgl 63 QMAKE_LIBS_QT_OPENGL= -lqgl
64 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
62 QMAKE_LIBS_THREAD= -lpthread 65 QMAKE_LIBS_THREAD= -lpthread
63 66
@@ -75,3 +78,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
77 80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/qnx6-generic-g++/qmake.conf b/mkspecs/qws/qnx6-generic-g++/qmake.conf
index 3519a59..93f0dfc 100644
--- a/mkspecs/qws/qnx6-generic-g++/qmake.conf
+++ b/mkspecs/qws/qnx6-generic-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 10
11 QMAKE_CC = cc 11 QMAKE_CC = cc
@@ -41,8 +41,10 @@ QMAKE_LIBDIR_QT = $(QTDIR)/lib
41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include 41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib 42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
43 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
44 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
43 45
44 QMAKE_LINK = cc -fhonor-std 46 QMAKE_LINK = cc -fhonor-std
45 QMAKE_LINK_SHLIB= cc -fhonor-std 47 QMAKE_LINK_SHLIB= cc -fhonor-std
46 QMAKE_LFLAGS = -lsocket -ldisputil $(LFLAGS_EXTRA) 48 QMAKE_LFLAGS = -lsocket -ldisputil $(LFLAGS_EXTRA)
47 QMAKE_LFLAGS_RELEASE= 49 QMAKE_LFLAGS_RELEASE=
48 QMAKE_LFLAGS_DEBUG= 50 QMAKE_LFLAGS_DEBUG=
@@ -53,5 +55,5 @@ QMAKE_LFLAGS_THREAD =
53 QMAKE_RPATH = -Wl,-rpath, 55 QMAKE_RPATH = -Wl,-rpath,
54 56
55 QMAKE_LIBS = $(LIBS_EXTRA) 57 QMAKE_LIBS = -lsocket $(LIBS_EXTRA)
56 QMAKE_LIBS_DYNLOAD= 58 QMAKE_LIBS_DYNLOAD=
57 QMAKE_LIBS_X11 = -ldisputil -lm 59 QMAKE_LIBS_X11 = -ldisputil -lm
@@ -60,4 +62,5 @@ QMAKE_LIBS_QT = -lqte
60 QMAKE_LIBS_QT_THREAD= -lqte-mt 62 QMAKE_LIBS_QT_THREAD= -lqte-mt
61 QMAKE_LIBS_QT_OPENGL= -lqgl 63 QMAKE_LIBS_QT_OPENGL= -lqgl
64 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
62 QMAKE_LIBS_THREAD= -lpthread 65 QMAKE_LIBS_THREAD= -lpthread
63 66
@@ -75,3 +78,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
77 80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/solaris-generic-g++/qmake.conf b/mkspecs/qws/solaris-generic-g++/qmake.conf
index 057e343..a521389 100644
--- a/mkspecs/qws/solaris-generic-g++/qmake.conf
+++ b/mkspecs/qws/solaris-generic-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt link_prl
10 10
11 QMAKE_CC = gcc 11 QMAKE_CC = gcc
@@ -41,4 +41,6 @@ QMAKE_LIBDIR_QT = $(QTDIR)/lib
41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include 41 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib 42 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
43 QMAKE_INCDIR_QTOPIA= $(QPEDIR)/include
44 QMAKE_LIBDIR_QTOPIA= $(QPEDIR)/lib
43 45
44 QMAKE_LINK = g++ 46 QMAKE_LINK = g++
@@ -53,5 +55,5 @@ QMAKE_LFLAGS_THREAD =
53 QMAKE_RPATH = -Wl,-rpath, 55 QMAKE_RPATH = -Wl,-rpath,
54 56
55 QMAKE_LIBS = $(LIBS_EXTRA) 57 QMAKE_LIBS = -lsocket -lnsl -lresolv $(LIBS_EXTRA)
56 QMAKE_LIBS_DYNLOAD= -ldl 58 QMAKE_LIBS_DYNLOAD= -ldl
57 QMAKE_LIBS_X11 = 59 QMAKE_LIBS_X11 =
@@ -60,4 +62,5 @@ QMAKE_LIBS_QT = -lqte
60 QMAKE_LIBS_QT_THREAD= -lqte-mt 62 QMAKE_LIBS_QT_THREAD= -lqte-mt
61 QMAKE_LIBS_QT_OPENGL= -lqgl 63 QMAKE_LIBS_QT_OPENGL= -lqgl
64 QMAKE_LIBS_QTOPIA= -lqtopia -lqpe
62 QMAKE_LIBS_THREAD= -lthread -lrt 65 QMAKE_LIBS_THREAD= -lthread -lrt
63 66
@@ -75,2 +78,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/qws/solaris-generic-g++/qplatformdefs.h b/mkspecs/qws/solaris-generic-g++/qplatformdefs.h
index a4ca615..02ab5b4 100644
--- a/mkspecs/qws/solaris-generic-g++/qplatformdefs.h
+++ b/mkspecs/qws/solaris-generic-g++/qplatformdefs.h
@@ -7,4 +7,7 @@
7 7
8// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs 8// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
9#ifndef _POSIX_PTHREAD_SEMANTICS
10#define _POSIX_PTHREAD_SEMANTICS
11#endif
9 12
10#include <unistd.h> 13#include <unistd.h>
@@ -78,11 +81,14 @@
78 81
79#if !defined(_XOPEN_UNIX) 82#if !defined(_XOPEN_UNIX)
80// Function usleep() is in C library but not in header files on Solaris 2.5.1. 83// Function usleep() is defined in C library but not declared in header files
81// Not really a surprise, usleep() is specified by XPG4v2 and XPG4v2 is only 84// on Solaris 2.5.1. Not really a surprise, usleep() is specified by XPG4v2
82// supported by Solaris 2.6 and better. 85// and XPG4v2 is only supported by Solaris 2.6 and better.
86// Function gethostname() is defined in C library but not declared in <unistd.h>
87// on Solaris 2.5.1.
83// So we are trying to detect Solaris 2.5.1 using macro _XOPEN_UNIX which is 88// So we are trying to detect Solaris 2.5.1 using macro _XOPEN_UNIX which is
84// not defined by <unistd.h> when XPG4v2 is not supported. 89// not defined by <unistd.h> when XPG4v2 is not supported.
85typedef unsigned int useconds_t; 90typedef unsigned int useconds_t;
86extern "C" int usleep(useconds_t); 91extern "C" int usleep(useconds_t);
92extern "C" int gethostname(char *, int);
87#endif 93#endif
88 94
diff --git a/mkspecs/reliant-cds-64/qmake.conf b/mkspecs/reliant-cds-64/qmake.conf
index 8bd4fa1..d01099c 100644
--- a/mkspecs/reliant-cds-64/qmake.conf
+++ b/mkspecs/reliant-cds-64/qmake.conf
@@ -2,10 +2,12 @@
2# $Id$ 2# $Id$
3# 3#
4# tmake configuration for Reliant UNIX 5.45 using the CDS++ C/C++ compiler V2.0C 4# qmake configuration for reliant-cds-64
5#
6# Written for Reliant UNIX 5.45 using the CDS++ C/C++ compiler V2.0C.
5# 7#
6 8
7 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
10 12
11 QMAKE_CC = cc 13 QMAKE_CC = cc
@@ -53,5 +55,5 @@ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
53 QMAKE_LFLAGS_SONAME= -h$$LITERAL_WHITESPACE 55 QMAKE_LFLAGS_SONAME= -h$$LITERAL_WHITESPACE
54 QMAKE_LFLAGS_THREAD= -K pthread 56 QMAKE_LFLAGS_THREAD= -K pthread
55 QMAKE_RPATH = -Wl,-Brpath=, 57 QMAKE_RPATH = -Wl,-Brpath=
56 58
57 QMAKE_LIBS = $(LIBS_EXTRA) 59 QMAKE_LIBS = $(LIBS_EXTRA)
@@ -80,2 +82,4 @@ QMAKE_MOVE = mv -f
80 QMAKE_DEL_FILE = rm -f 82 QMAKE_DEL_FILE = rm -f
81 QMAKE_DEL_DIR = rmdir 83 QMAKE_DEL_DIR = rmdir
84 QMAKE_CHK_DIR_EXISTS= test -d
85 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/reliant-cds/qmake.conf b/mkspecs/reliant-cds/qmake.conf
index 539cee7..7e7dd96 100644
--- a/mkspecs/reliant-cds/qmake.conf
+++ b/mkspecs/reliant-cds/qmake.conf
@@ -2,10 +2,12 @@
2# $Id$ 2# $Id$
3# 3#
4# tmake configuration for Reliant UNIX 5.45 using the CDS++ C/C++ compiler V2.0C 4# qmake configuration for reliant-cds
5#
6# Written for Reliant UNIX 5.45 using the CDS++ C/C++ compiler V2.0C.
5# 7#
6 8
7 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
10 12
11 QMAKE_CC = cc 13 QMAKE_CC = cc
@@ -53,5 +55,5 @@ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
53 QMAKE_LFLAGS_SONAME= -h$$LITERAL_WHITESPACE 55 QMAKE_LFLAGS_SONAME= -h$$LITERAL_WHITESPACE
54 QMAKE_LFLAGS_THREAD= -K pthread 56 QMAKE_LFLAGS_THREAD= -K pthread
55 QMAKE_RPATH = -Wl,-Brpath=, 57 QMAKE_RPATH = -Wl,-Brpath=
56 58
57 QMAKE_LIBS = $(LIBS_EXTRA) 59 QMAKE_LIBS = $(LIBS_EXTRA)
@@ -80,2 +82,4 @@ QMAKE_MOVE = mv -f
80 QMAKE_DEL_FILE = rm -f 82 QMAKE_DEL_FILE = rm -f
81 QMAKE_DEL_DIR = rmdir 83 QMAKE_DEL_DIR = rmdir
84 QMAKE_CHK_DIR_EXISTS= test -d
85 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/sco-cc/qmake.conf b/mkspecs/sco-cc/qmake.conf
index 4da6809..5d6c7dc 100644
--- a/mkspecs/sco-cc/qmake.conf
+++ b/mkspecs/sco-cc/qmake.conf
@@ -4,4 +4,6 @@
4# qmake configuration for sco-cc 4# qmake configuration for sco-cc
5# 5#
6# Written for SCO OpenServer with UDK.
7#
6# -Wf,--diag_suppress,838 8# -Wf,--diag_suppress,838
7 # turns off warning about missing return types in X headers 9 # turns off warning about missing return types in X headers
@@ -10,5 +12,5 @@
10 MAKEFILE_GENERATOR= UNIX 12 MAKEFILE_GENERATOR= UNIX
11 TEMPLATE = app 13 TEMPLATE = app
12 CONFIG += qt warn_on release 14 CONFIG += qt warn_on release link_prl
13 15
14 QMAKE_CC = cc 16 QMAKE_CC = cc
@@ -24,5 +26,4 @@ QMAKE_CFLAGS_DEBUG = -g
24 QMAKE_CFLAGS_SHLIB= -KPIC 26 QMAKE_CFLAGS_SHLIB= -KPIC
25 QMAKE_CFLAGS_YACC= -Wf,--diag_suppress,111 -Wf,--diag_suppress,177 27 QMAKE_CFLAGS_YACC= -Wf,--diag_suppress,111 -Wf,--diag_suppress,177
26 QMAKE_CFLAGS_THREAD= -Kthread
27 28
28 QMAKE_CXX = CC 29 QMAKE_CXX = CC
@@ -34,5 +35,4 @@ QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
34 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB 35 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
35 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC 36 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
36 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
37 37
38 QMAKE_INCDIR = 38 QMAKE_INCDIR =
@@ -53,5 +53,4 @@ QMAKE_LFLAGS_SHLIB = -G
53 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB 53 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
54 QMAKE_LFLAGS_SONAME= -h$$LITERAL_WHITESPACE 54 QMAKE_LFLAGS_SONAME= -h$$LITERAL_WHITESPACE
55 QMAKE_LFLAGS_THREAD= -Kthread
56 55
57 QMAKE_LIBS = $(LIBS_EXTRA) 56 QMAKE_LIBS = $(LIBS_EXTRA)
@@ -60,15 +59,12 @@ QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm
60 QMAKE_LIBS_X11SM= -lSM -lICE 59 QMAKE_LIBS_X11SM= -lSM -lICE
61 QMAKE_LIBS_QT = -lqt 60 QMAKE_LIBS_QT = -lqt
62 QMAKE_LIBS_QT_THREAD= -lqt-mt
63 61
64 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lXt -lSM -lICE 62 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lXt
65 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 63 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
66 64
67 QMAKE_LIBS_THREAD=
68
69 QMAKE_MOC = $(QTDIR)/bin/moc 65 QMAKE_MOC = $(QTDIR)/bin/moc
70 QMAKE_UIC = $(QTDIR)/bin/uic 66 QMAKE_UIC = $(QTDIR)/bin/uic
71 67
72 QMAKE_AR = ar cqs 68 QMAKE_AR = ar cq
73 QMAKE_RANLIB = 69 QMAKE_RANLIB =
74 70
@@ -80,2 +76,4 @@ QMAKE_MOVE = mv -f
80 QMAKE_DEL_FILE = rm -f 76 QMAKE_DEL_FILE = rm -f
81 QMAKE_DEL_DIR = rmdir 77 QMAKE_DEL_DIR = rmdir
78 QMAKE_CHK_DIR_EXISTS= test -d
79 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/sco-cc/qplatformdefs.h b/mkspecs/sco-cc/qplatformdefs.h
index 4201ed6..06af247 100644
--- a/mkspecs/sco-cc/qplatformdefs.h
+++ b/mkspecs/sco-cc/qplatformdefs.h
@@ -8,9 +8,4 @@
8// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs 8// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
9 9
10// This is to have PATH_MAX defined in <limits.h>
11#ifndef _IBCS2
12# define _IBCS2
13#endif
14
15#include <unistd.h> 10#include <unistd.h>
16 11
@@ -32,4 +27,5 @@
32#include <sys/types.h> 27#include <sys/types.h>
33#include <sys/ioctl.h> 28#include <sys/ioctl.h>
29#include <sys/filio.h>
34#include <sys/ipc.h> 30#include <sys/ipc.h>
35#include <sys/time.h> 31#include <sys/time.h>
@@ -81,5 +77,5 @@
81 #define QT_SIGNAL_IGNORESIG_IGN 77 #define QT_SIGNAL_IGNORESIG_IGN
82 78
83 #define QT_SOCKLEN_T int 79 #define QT_SOCKLEN_T size_t
84 80
85 #define QT_SNPRINTF ::snprintf 81 #define QT_SNPRINTF ::snprintf
diff --git a/mkspecs/sco-g++/qmake.conf b/mkspecs/sco-g++/qmake.conf
index 5a9c11a..ae559d8 100644
--- a/mkspecs/sco-g++/qmake.conf
+++ b/mkspecs/sco-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt warn_on release link_prl
10 10
11 QMAKE_CC = gcc 11 QMAKE_CC = gcc
@@ -22,5 +22,4 @@ QMAKE_CFLAGS_DEBUG = -g
22 QMAKE_CFLAGS_SHLIB= -fPIC 22 QMAKE_CFLAGS_SHLIB= -fPIC
23 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses 23 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses
24 QMAKE_CFLAGS_THREAD= -D_REENTRANT
25 24
26 QMAKE_CXX = g++ 25 QMAKE_CXX = g++
@@ -33,5 +32,4 @@ QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
33 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB 32 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
34 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC 33 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
35 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
36 34
37 QMAKE_INCDIR = 35 QMAKE_INCDIR =
@@ -75,2 +73,4 @@ QMAKE_MOVE = mv -f
75 QMAKE_DEL_FILE = rm -f 73 QMAKE_DEL_FILE = rm -f
76 QMAKE_DEL_DIR = rmdir 74 QMAKE_DEL_DIR = rmdir
75 QMAKE_CHK_DIR_EXISTS= test -d
76 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/sco-g++/qplatformdefs.h b/mkspecs/sco-g++/qplatformdefs.h
index 0fc27cb..34c87e4 100644
--- a/mkspecs/sco-g++/qplatformdefs.h
+++ b/mkspecs/sco-g++/qplatformdefs.h
@@ -88,4 +88,8 @@
88 #define QT_VSNPRINTF ::vsnprintf 88 #define QT_VSNPRINTF ::vsnprintf
89 89
90// SCO OpenServer redefines raise -> kill
91#if defined(raise)
92# undef raise
93#endif
90 94
91#endif // QPLATFORMDEFS_H 95#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/solaris-cc-64/qmake.conf b/mkspecs/solaris-cc-64/qmake.conf
index 0da6a2d..45b5e4a 100644
--- a/mkspecs/solaris-cc-64/qmake.conf
+++ b/mkspecs/solaris-cc-64/qmake.conf
@@ -2,6 +2,7 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Sun WorkShop 5.0, Forte Developer 6, 4# qmake configuration for solaris-cc-64
5 # and Sun ONE Studio 7 on Solaris 5#
6# Written for Sun WorkShop 5.0, Forte Developer 6, and Sun ONE Studio 7.
6# 7#
7# From the standards(5) manual page: 8# From the standards(5) manual page:
@@ -25,9 +26,9 @@
25 MAKEFILE_GENERATOR= UNIX 26 MAKEFILE_GENERATOR= UNIX
26 TEMPLATE = app 27 TEMPLATE = app
27 CONFIG += qt warn_on release 28 CONFIG += qt warn_on release link_prl
28 29
29 QMAKE_CC = cc 30 QMAKE_CC = cc
30 QMAKE_LEX = flex 31 QMAKE_LEX = flex
31 QMAKE_LEXFLAGS = 32 QMAKE_LEXFLAGS =
32 QMAKE_YACC = yacc 33 QMAKE_YACC = yacc
33 QMAKE_YACCFLAGS = -d 34 QMAKE_YACCFLAGS = -d
@@ -82,5 +83,5 @@ QMAKE_LIBS_QT_THREAD = -lqt-mt
82 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu 83 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
83 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 84 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
84 QMAKE_LIBS_THREAD= -lpthread 85 QMAKE_LIBS_THREAD= -lpthread -lrt
85 86
86 QMAKE_MOC = $(QTDIR)/bin/moc 87 QMAKE_MOC = $(QTDIR)/bin/moc
@@ -99,2 +100,4 @@ QMAKE_MOVE = mv -f
99 QMAKE_DEL_FILE = rm -f 100 QMAKE_DEL_FILE = rm -f
100 QMAKE_DEL_DIR = rmdir 101 QMAKE_DEL_DIR = rmdir
102 QMAKE_CHK_DIR_EXISTS= test -d
103 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/solaris-cc/qmake.conf b/mkspecs/solaris-cc/qmake.conf
index bee60c9..d1f080e 100644
--- a/mkspecs/solaris-cc/qmake.conf
+++ b/mkspecs/solaris-cc/qmake.conf
@@ -2,15 +2,16 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Sun WorkShop 5.0, Forte Developer 6, 4# qmake configuration for solaris-cc
5 # and Sun ONE Studio 7 on Solaris 5#
6# Written for Sun WorkShop 5.0, Forte Developer 6, and Sun ONE Studio 7.
6# 7#
7 8
8 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
9 TEMPLATE = app 10 TEMPLATE = app
10 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
11 12
12 QMAKE_CC = cc 13 QMAKE_CC = cc
13 QMAKE_LEX = flex 14 QMAKE_LEX = flex
14 QMAKE_LEXFLAGS = 15 QMAKE_LEXFLAGS =
15 QMAKE_YACC = yacc 16 QMAKE_YACC = yacc
16 QMAKE_YACCFLAGS = -d 17 QMAKE_YACCFLAGS = -d
@@ -65,5 +66,5 @@ QMAKE_LIBS_QT_THREAD = -lqt-mt
65 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu 66 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
66 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 67 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
67 QMAKE_LIBS_THREAD= -lpthread 68 QMAKE_LIBS_THREAD= -lpthread -lrt
68 69
69 QMAKE_MOC = $(QTDIR)/bin/moc 70 QMAKE_MOC = $(QTDIR)/bin/moc
@@ -82,2 +83,4 @@ QMAKE_MOVE = mv -f
82 QMAKE_DEL_FILE = rm -f 83 QMAKE_DEL_FILE = rm -f
83 QMAKE_DEL_DIR = rmdir 84 QMAKE_DEL_DIR = rmdir
85 QMAKE_CHK_DIR_EXISTS= test -d
86 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/solaris-cc/qplatformdefs.h b/mkspecs/solaris-cc/qplatformdefs.h
index f9480a9..9506b3c 100644
--- a/mkspecs/solaris-cc/qplatformdefs.h
+++ b/mkspecs/solaris-cc/qplatformdefs.h
@@ -7,4 +7,5 @@
7 7
8// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs 8// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
9#define _POSIX_PTHREAD_SEMANTICS
9 10
10#include <unistd.h> 11#include <unistd.h>
@@ -78,11 +79,14 @@
78 79
79#if !defined(_XOPEN_UNIX) 80#if !defined(_XOPEN_UNIX)
80// Function usleep() is in C library but not in header files on Solaris 2.5.1. 81// Function usleep() is defined in C library but not declared in header files
81// Not really a surprise, usleep() is specified by XPG4v2 and XPG4v2 is only 82// on Solaris 2.5.1. Not really a surprise, usleep() is specified by XPG4v2
82// supported by Solaris 2.6 and better. 83// and XPG4v2 is only supported by Solaris 2.6 and better.
84// Function gethostname() is defined in C library but not declared in <unistd.h>
85// on Solaris 2.5.1.
83// So we are trying to detect Solaris 2.5.1 using macro _XOPEN_UNIX which is 86// So we are trying to detect Solaris 2.5.1 using macro _XOPEN_UNIX which is
84// not defined by <unistd.h> when XPG4v2 is not supported. 87// not defined by <unistd.h> when XPG4v2 is not supported.
85typedef unsigned int useconds_t; 88typedef unsigned int useconds_t;
86extern "C" int usleep(useconds_t); 89extern "C" int usleep(useconds_t);
90extern "C" int gethostname(char *, int);
87#endif 91#endif
88 92
diff --git a/mkspecs/solaris-g++-64/qmake.conf b/mkspecs/solaris-g++-64/qmake.conf
index 929de3e..e6760f8 100644
--- a/mkspecs/solaris-g++-64/qmake.conf
+++ b/mkspecs/solaris-g++-64/qmake.conf
@@ -9,5 +9,5 @@
9# between GCC 2.95 or better and Solaris - but we still get warnings 9# between GCC 2.95 or better and Solaris - but we still get warnings
10# because we don't use -isystem. 10# because we don't use -isystem.
11# 11#
12# From the standards(5) manual page: 12# From the standards(5) manual page:
13 # The XNS4 specification is safe for use only in ILP32 (32-bit) 13 # The XNS4 specification is safe for use only in ILP32 (32-bit)
@@ -30,9 +30,9 @@
30 MAKEFILE_GENERATOR= UNIX 30 MAKEFILE_GENERATOR= UNIX
31 TEMPLATE = app 31 TEMPLATE = app
32 CONFIG += qt warn_on release 32 CONFIG += qt warn_on release link_prl
33 33
34 QMAKE_CC = gcc 34 QMAKE_CC = gcc
35 QMAKE_LEX = flex 35 QMAKE_LEX = flex
36 QMAKE_LEXFLAGS = 36 QMAKE_LEXFLAGS =
37 QMAKE_YACC = yacc 37 QMAKE_YACC = yacc
38 QMAKE_YACCFLAGS = -d 38 QMAKE_YACCFLAGS = -d
@@ -61,9 +61,9 @@ QMAKE_INCDIR =
61 QMAKE_LIBDIR = 61 QMAKE_LIBDIR =
62 QMAKE_INCDIR_X11= /usr/openwin/include 62 QMAKE_INCDIR_X11= /usr/openwin/include
63 QMAKE_LIBDIR_X11= /usr/openwin/lib 63 QMAKE_LIBDIR_X11= /usr/openwin/lib/sparcv9
64 QMAKE_INCDIR_QT = $(QTDIR)/include 64 QMAKE_INCDIR_QT = $(QTDIR)/include
65 QMAKE_LIBDIR_QT = $(QTDIR)/lib 65 QMAKE_LIBDIR_QT = $(QTDIR)/lib
66 QMAKE_INCDIR_OPENGL= /usr/openwin/include 66 QMAKE_INCDIR_OPENGL= /usr/openwin/include
67 QMAKE_LIBDIR_OPENGL= /usr/openwin/lib 67 QMAKE_LIBDIR_OPENGL= /usr/openwin/lib/sparcv9
68 68
69 QMAKE_LINK = g++ 69 QMAKE_LINK = g++
@@ -87,5 +87,5 @@ QMAKE_LIBS_QT_THREAD = -lqt-mt
87 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu 87 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
88 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 88 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
89 QMAKE_LIBS_THREAD= -lthread 89 QMAKE_LIBS_THREAD= -lpthread -lrt
90 90
91 QMAKE_MOC = $(QTDIR)/bin/moc 91 QMAKE_MOC = $(QTDIR)/bin/moc
@@ -102,2 +102,4 @@ QMAKE_MOVE = mv -f
102 QMAKE_DEL_FILE = rm -f 102 QMAKE_DEL_FILE = rm -f
103 QMAKE_DEL_DIR = rmdir 103 QMAKE_DEL_DIR = rmdir
104 QMAKE_CHK_DIR_EXISTS= test -d
105 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/solaris-g++-64/qplatformdefs.h b/mkspecs/solaris-g++-64/qplatformdefs.h
index e8e43d9..8b2dd83 100644
--- a/mkspecs/solaris-g++-64/qplatformdefs.h
+++ b/mkspecs/solaris-g++-64/qplatformdefs.h
@@ -7,4 +7,7 @@
7 7
8// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs 8// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
9#ifndef _POSIX_PTHREAD_SEMANTICS
10#define _POSIX_PTHREAD_SEMANTICS
11#endif
9 12
10#include <unistd.h> 13#include <unistd.h>
@@ -15,5 +18,5 @@
15 18
16#ifdef QT_THREAD_SUPPORT 19#ifdef QT_THREAD_SUPPORT
17#include <thread.h> 20#include <pthread.h>
18#endif 21#endif
19 22
@@ -23,4 +26,5 @@
23#include <pwd.h> 26#include <pwd.h>
24#include <signal.h> 27#include <signal.h>
28#include <dlfcn.h>
25 29
26#include <sys/types.h> 30#include <sys/types.h>
@@ -44,4 +48,5 @@
44 48
45 49
50#if !defined(QT_NO_COMPAT)
46 #define QT_STATBUF struct stat 51 #define QT_STATBUF struct stat
47 #define QT_STATBUF4TSTATstruct stat 52 #define QT_STATBUF4TSTATstruct stat
@@ -69,4 +74,5 @@
69 #define QT_OPEN_TRUNC O_TRUNC 74 #define QT_OPEN_TRUNC O_TRUNC
70 #define QT_OPEN_APPEND O_APPEND 75 #define QT_OPEN_APPEND O_APPEND
76#endif
71 77
72 #define QT_SIGNAL_RETTYPEvoid 78 #define QT_SIGNAL_RETTYPEvoid
diff --git a/mkspecs/solaris-g++/qmake.conf b/mkspecs/solaris-g++/qmake.conf
index 21d658f..4035047 100644
--- a/mkspecs/solaris-g++/qmake.conf
+++ b/mkspecs/solaris-g++/qmake.conf
@@ -9,13 +9,13 @@
9# between GCC 2.95 or better and Solaris - but we still get warnings 9# between GCC 2.95 or better and Solaris - but we still get warnings
10# because we don't use -isystem. 10# because we don't use -isystem.
11# 11#
12 12
13 MAKEFILE_GENERATOR= UNIX 13 MAKEFILE_GENERATOR= UNIX
14 TEMPLATE = app 14 TEMPLATE = app
15 CONFIG += qt warn_on release 15 CONFIG += qt warn_on release link_prl
16 16
17 QMAKE_CC = gcc 17 QMAKE_CC = gcc
18 QMAKE_LEX = flex 18 QMAKE_LEX = flex
19 QMAKE_LEXFLAGS = 19 QMAKE_LEXFLAGS =
20 QMAKE_YACC = yacc 20 QMAKE_YACC = yacc
21 QMAKE_YACCFLAGS = -d 21 QMAKE_YACCFLAGS = -d
@@ -70,5 +70,5 @@ QMAKE_LIBS_QT_THREAD = -lqt-mt
70 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu 70 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
71 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 71 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
72 QMAKE_LIBS_THREAD= -lpthread 72 QMAKE_LIBS_THREAD= -lpthread -lrt
73 73
74 QMAKE_MOC = $(QTDIR)/bin/moc 74 QMAKE_MOC = $(QTDIR)/bin/moc
@@ -85,2 +85,4 @@ QMAKE_MOVE = mv -f
85 QMAKE_DEL_FILE = rm -f 85 QMAKE_DEL_FILE = rm -f
86 QMAKE_DEL_DIR = rmdir 86 QMAKE_DEL_DIR = rmdir
87 QMAKE_CHK_DIR_EXISTS= test -d
88 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/solaris-g++/qplatformdefs.h b/mkspecs/solaris-g++/qplatformdefs.h
index a4ca615..02ab5b4 100644
--- a/mkspecs/solaris-g++/qplatformdefs.h
+++ b/mkspecs/solaris-g++/qplatformdefs.h
@@ -7,4 +7,7 @@
7 7
8// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs 8// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
9#ifndef _POSIX_PTHREAD_SEMANTICS
10#define _POSIX_PTHREAD_SEMANTICS
11#endif
9 12
10#include <unistd.h> 13#include <unistd.h>
@@ -78,11 +81,14 @@
78 81
79#if !defined(_XOPEN_UNIX) 82#if !defined(_XOPEN_UNIX)
80// Function usleep() is in C library but not in header files on Solaris 2.5.1. 83// Function usleep() is defined in C library but not declared in header files
81// Not really a surprise, usleep() is specified by XPG4v2 and XPG4v2 is only 84// on Solaris 2.5.1. Not really a surprise, usleep() is specified by XPG4v2
82// supported by Solaris 2.6 and better. 85// and XPG4v2 is only supported by Solaris 2.6 and better.
86// Function gethostname() is defined in C library but not declared in <unistd.h>
87// on Solaris 2.5.1.
83// So we are trying to detect Solaris 2.5.1 using macro _XOPEN_UNIX which is 88// So we are trying to detect Solaris 2.5.1 using macro _XOPEN_UNIX which is
84// not defined by <unistd.h> when XPG4v2 is not supported. 89// not defined by <unistd.h> when XPG4v2 is not supported.
85typedef unsigned int useconds_t; 90typedef unsigned int useconds_t;
86extern "C" int usleep(useconds_t); 91extern "C" int usleep(useconds_t);
92extern "C" int gethostname(char *, int);
87#endif 93#endif
88 94
diff --git a/mkspecs/solaris-kcc/qmake.conf b/mkspecs/solaris-kcc/qmake.conf
index e2a523d..231b270 100644
--- a/mkspecs/solaris-kcc/qmake.conf
+++ b/mkspecs/solaris-kcc/qmake.conf
@@ -25,9 +25,9 @@ QMAKE_LEXFLAGS =
25 QMAKE_YACC = yacc 25 QMAKE_YACC = yacc
26 QMAKE_YACCFLAGS = -d 26 QMAKE_YACCFLAGS = -d
27 QMAKE_CFLAGS = --c --display_error_number $(CFLAGS_EXTRA) 27 QMAKE_CFLAGS = --c --display_error_number $(CFLAGS_EXTRA) $(CFLAGS_EXTRA)
28 QMAKE_CFLAGS_DEPS= -M 28 QMAKE_CFLAGS_DEPS= -M
29 QMAKE_CFLAGS_WARN_ON= 29 QMAKE_CFLAGS_WARN_ON=
30 QMAKE_CFLAGS_WARN_OFF= -w 30 QMAKE_CFLAGS_WARN_OFF= -w
31 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), +K2) 31 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), +K2))
32 QMAKE_CFLAGS_DEBUG= +K0 32 QMAKE_CFLAGS_DEBUG= +K0
33 QMAKE_CFLAGS_SHLIB= -KPIC 33 QMAKE_CFLAGS_SHLIB= -KPIC
@@ -36,5 +36,5 @@ QMAKE_CFLAGS_THREAD = -mt
36 36
37 QMAKE_CXX = KCC 37 QMAKE_CXX = KCC
38 QMAKE_CXXFLAGS = --display_error_number --diag_suppress 611,1142 $(CXXFLAGS_EXTRA) 38 QMAKE_CXXFLAGS = --display_error_number --diag_suppress 611,1142 $(CXXFLAGS_EXTRA) $(CXXFLAGS_EXTRA)
39 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS 39 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
40 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 40 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
@@ -57,5 +57,5 @@ QMAKE_LIBDIR_OPENGL = /usr/openwin/lib
57 QMAKE_LINK = KCC 57 QMAKE_LINK = KCC
58 QMAKE_LINK_SHLIB= KCC 58 QMAKE_LINK_SHLIB= KCC
59 QMAKE_LFLAGS = $(LFLAGS_EXTRA) 59 QMAKE_LFLAGS = $(LFLAGS_EXTRA) $(LFLAGS_EXTRA)
60 QMAKE_LFLAGS_RELEASE= 60 QMAKE_LFLAGS_RELEASE=
61 QMAKE_LFLAGS_DEBUG= 61 QMAKE_LFLAGS_DEBUG=
@@ -66,5 +66,5 @@ QMAKE_LFLAGS_THREAD = -mt
66 QMAKE_RPATH = -R$$LITERAL_WHITESPACE 66 QMAKE_RPATH = -R$$LITERAL_WHITESPACE
67 67
68 QMAKE_LIBS = $(LIBS_EXTRA) 68 QMAKE_LIBS = $(LIBS_EXTRA) $(LIBS_EXTRA)
69 QMAKE_LIBS_DYNLOAD= -ldl 69 QMAKE_LIBS_DYNLOAD= -ldl
70 QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl 70 QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl
diff --git a/mkspecs/tru64-cxx/qmake.conf b/mkspecs/tru64-cxx/qmake.conf
index 2a1163a..6e45e8b 100644
--- a/mkspecs/tru64-cxx/qmake.conf
+++ b/mkspecs/tru64-cxx/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt warn_on release link_prl plugin_no_soname
10 10
11 QMAKE_CC = cxx 11 QMAKE_CC = cxx
@@ -55,7 +55,7 @@ QMAKE_LFLAGS_SONAME = -soname$$LITERAL_WHITESPACE
55QMAKE_RPATH = -rpath$$LITERAL_WHITESPACE 55QMAKE_RPATH = -rpath$$LITERAL_WHITESPACE
56 56
57 QMAKE_LIBS = $(LIBS_EXTRA) 57 QMAKE_LIBS = -lm $(LIBS_EXTRA)
58 QMAKE_LIBS_DYNLOAD= 58 QMAKE_LIBS_DYNLOAD=
59 QMAKE_LIBS_X11 = -lXext -lX11 -lm 59 QMAKE_LIBS_X11 = -lXext -lX11
60 QMAKE_LIBS_X11SM= -lSM -lICE 60 QMAKE_LIBS_X11SM= -lSM -lICE
61 QMAKE_LIBS_QT = -lqt 61 QMAKE_LIBS_QT = -lqt
@@ -63,5 +63,5 @@ QMAKE_LIBS_QT_THREAD = -lqt-mt
63 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu 63 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
64 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 64 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
65 QMAKE_LIBS_THREAD= 65 QMAKE_LIBS_THREAD= -lrt
66 66
67 QMAKE_MOC = $(QTDIR)/bin/moc 67 QMAKE_MOC = $(QTDIR)/bin/moc
@@ -78,2 +78,4 @@ QMAKE_MOVE = mv -f
78 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
79 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/tru64-g++/qmake.conf b/mkspecs/tru64-g++/qmake.conf
index 72b3d58..12447e0 100644
--- a/mkspecs/tru64-g++/qmake.conf
+++ b/mkspecs/tru64-g++/qmake.conf
@@ -7,5 +7,5 @@
7 MAKEFILE_GENERATOR= UNIX 7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 8 TEMPLATE = app
9 CONFIG += qt warn_on release 9 CONFIG += qt warn_on release link_prl plugin_no_soname
10 10
11 QMAKE_CC = gcc 11 QMAKE_CC = gcc
@@ -63,5 +63,5 @@ QMAKE_LIBS_QT_THREAD = -lqt-mt
63 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu 63 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
64 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 64 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
65 QMAKE_LIBS_THREAD= -lpthread -lexc 65 QMAKE_LIBS_THREAD= -lpthread -lexc -lrt
66 66
67 QMAKE_MOC = $(QTDIR)/bin/moc 67 QMAKE_MOC = $(QTDIR)/bin/moc
@@ -78,2 +78,4 @@ QMAKE_MOVE = mv -f
78 QMAKE_DEL_FILE = rm -f 78 QMAKE_DEL_FILE = rm -f
79 QMAKE_DEL_DIR = rmdir 79 QMAKE_DEL_DIR = rmdir
80 QMAKE_CHK_DIR_EXISTS= test -d
81 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/ultrix-g++/qmake.conf b/mkspecs/ultrix-g++/qmake.conf
index d8754c0..01434b4 100644
--- a/mkspecs/ultrix-g++/qmake.conf
+++ b/mkspecs/ultrix-g++/qmake.conf
@@ -14,9 +14,9 @@ QMAKE_LEXFLAGS =
14 QMAKE_YACC = yacc 14 QMAKE_YACC = yacc
15 QMAKE_YACCFLAGS = -d 15 QMAKE_YACCFLAGS = -d
16 QMAKE_CFLAGS = $(CFLAGS_EXTRA) 16 QMAKE_CFLAGS = $(CFLAGS_EXTRA) $(CFLAGS_EXTRA)
17 QMAKE_CFLAGS_DEPS= -M 17 QMAKE_CFLAGS_DEPS= -M
18 QMAKE_CFLAGS_WARN_ON= -Wall -W 18 QMAKE_CFLAGS_WARN_ON= -Wall -W
19 QMAKE_CFLAGS_WARN_OFF= -w 19 QMAKE_CFLAGS_WARN_OFF= -w
20 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) 20 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2))
21 QMAKE_CFLAGS_DEBUG= -g 21 QMAKE_CFLAGS_DEBUG= -g
22 QMAKE_CFLAGS_SHLIB= 22 QMAKE_CFLAGS_SHLIB=
@@ -24,5 +24,5 @@ QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
24 24
25 QMAKE_CXX = g++ 25 QMAKE_CXX = g++
26 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA) 26 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA) $(CXXFLAGS_EXTRA)
27 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS 27 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
28 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 28 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
@@ -44,5 +44,5 @@ QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib
44 QMAKE_LINK = g++ 44 QMAKE_LINK = g++
45 #QMAKE_LINK_SHLIB= g++ 45 #QMAKE_LINK_SHLIB= g++
46 QMAKE_LFLAGS = $(LFLAGS_EXTRA) 46 QMAKE_LFLAGS = $(LFLAGS_EXTRA) $(LFLAGS_EXTRA)
47 QMAKE_LFLAGS_RELEASE= 47 QMAKE_LFLAGS_RELEASE=
48 QMAKE_LFLAGS_DEBUG= 48 QMAKE_LFLAGS_DEBUG=
@@ -51,5 +51,5 @@ QMAKE_LFLAGS_DEBUG =
51 #QMAKE_LFLAGS_SONAME= -Wl,-soname, 51 #QMAKE_LFLAGS_SONAME= -Wl,-soname,
52 52
53 QMAKE_LIBS = $(LIBS_EXTRA) 53 QMAKE_LIBS = $(LIBS_EXTRA) $(LIBS_EXTRA)
54 QMAKE_LIBS_DYNLOAD= -ldl 54 QMAKE_LIBS_DYNLOAD= -ldl
55 QMAKE_LIBS_X11 = -lXext -lX11 -lm 55 QMAKE_LIBS_X11 = -lXext -lX11 -lm
diff --git a/mkspecs/unixware-cc/qmake.conf b/mkspecs/unixware-cc/qmake.conf
index 5efb1a9..a6f1288 100644
--- a/mkspecs/unixware-cc/qmake.conf
+++ b/mkspecs/unixware-cc/qmake.conf
@@ -2,5 +2,7 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for UnixWare 7 or Open UNIX 8 with UDK or OUDK 4# qmake configuration for unixware-cc
5#
6# Written for UnixWare 7 or Open UNIX 8 with UDK or OUDK.
5# 7#
6# -Wf,--diag_suppress,838 8# -Wf,--diag_suppress,838
@@ -10,5 +12,5 @@
10 MAKEFILE_GENERATOR= UNIX 12 MAKEFILE_GENERATOR= UNIX
11 TEMPLATE = app 13 TEMPLATE = app
12 CONFIG += qt warn_on release 14 CONFIG += qt warn_on release link_prl
13 15
14 QMAKE_CC = cc 16 QMAKE_CC = cc
@@ -54,4 +56,5 @@ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
54 QMAKE_LFLAGS_SONAME= -h$$LITERAL_WHITESPACE 56 QMAKE_LFLAGS_SONAME= -h$$LITERAL_WHITESPACE
55 QMAKE_LFLAGS_THREAD= -Kthread 57 QMAKE_LFLAGS_THREAD= -Kthread
58 QMAKE_RPATH = -R
56 59
57 QMAKE_LIBS = $(LIBS_EXTRA) 60 QMAKE_LIBS = $(LIBS_EXTRA)
@@ -62,5 +65,5 @@ QMAKE_LIBS_QT = -lqt
62 QMAKE_LIBS_QT_THREAD= -lqt-mt 65 QMAKE_LIBS_QT_THREAD= -lqt-mt
63 66
64 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lXt -lSM -lICE 67 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lXt
65 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 68 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
66 69
@@ -80,2 +83,4 @@ QMAKE_MOVE = mv -f
80 QMAKE_DEL_FILE = rm -f 83 QMAKE_DEL_FILE = rm -f
81 QMAKE_DEL_DIR = rmdir 84 QMAKE_DEL_DIR = rmdir
85 QMAKE_CHK_DIR_EXISTS= test -d
86 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/unixware-g++/qmake.conf b/mkspecs/unixware-g++/qmake.conf
index 0298eef..45a351c 100644
--- a/mkspecs/unixware-g++/qmake.conf
+++ b/mkspecs/unixware-g++/qmake.conf
@@ -2,10 +2,12 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for UnixWare 7 or Open UNIX 8 with OSTK 4# qmake configuration for unixware-g++
5#
6# Written for UnixWare 7 or Open UNIX 8 with OSTK.
5# 7#
6 8
7 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
10 12
11 QMAKE_CC = gcc 13 QMAKE_CC = gcc
@@ -53,4 +55,5 @@ QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
53 QMAKE_LFLAGS_SONAME= 55 QMAKE_LFLAGS_SONAME=
54 QMAKE_LFLAGS_THREAD= 56 QMAKE_LFLAGS_THREAD=
57 QMAKE_RPATH = -Wl,-R,
55 58
56 QMAKE_LIBS = $(LIBS_EXTRA) 59 QMAKE_LIBS = $(LIBS_EXTRA)
@@ -60,8 +63,6 @@ QMAKE_LIBS_X11SM = -lSM -lICE
60 QMAKE_LIBS_QT = -lqt 63 QMAKE_LIBS_QT = -lqt
61 QMAKE_LIBS_QT_THREAD= -lqt-mt 64 QMAKE_LIBS_QT_THREAD= -lqt-mt
62 65 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lXt
63 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lXt -lSM -lICE
64 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu 66 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
65
66 QMAKE_LIBS_THREAD= -lthread 67 QMAKE_LIBS_THREAD= -lthread
67 68
@@ -79,2 +80,4 @@ QMAKE_MOVE = mv -f
79 QMAKE_DEL_FILE = rm -f 80 QMAKE_DEL_FILE = rm -f
80 QMAKE_DEL_DIR = rmdir 81 QMAKE_DEL_DIR = rmdir
82 QMAKE_CHK_DIR_EXISTS= test -d
83 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/win32-borland/qmake.conf b/mkspecs/win32-borland/qmake.conf
index c5d3ea5..7aed9e8 100644
--- a/mkspecs/win32-borland/qmake.conf
+++ b/mkspecs/win32-borland/qmake.conf
@@ -2,10 +2,12 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Win32/Borland C++ 4# qmake configuration for win32-borland
5#
6# Written for Borland C++.
5# 7#
6 8
7 MAKEFILE_GENERATOR= BMAKE 9 MAKEFILE_GENERATOR= BMAKE
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
10 DEFINES += UNICODE 12 DEFINES += UNICODE
11 QMAKE_NOFORCE = 1 13 QMAKE_NOFORCE = 1
@@ -31,11 +33,10 @@ QMAKE_CFLAGS_MT_DLLDBG = -tWM
31 QMAKE_CFLAGS_YACC= 33 QMAKE_CFLAGS_YACC=
32 QMAKE_CFLAGS_CONSOLE= -tWC 34 QMAKE_CFLAGS_CONSOLE= -tWC
33 35 QMAKE_CFLAGS_STL_ON=
34!contains(CONFIG,exceptions){ 36 QMAKE_CFLAGS_STL_OFF=
35 QMAKE_CFLAGS += -x- 37 QMAKE_CFLAGS_RTTI_ON=
36} 38 QMAKE_CFLAGS_RTTI_OFF= -RT-
37!contains(CONFIG,rtti){ 39QMAKE_CFLAGS_EXCEPTIONS_ON =
38 QMAKE_CFLAGS+= -RT- $(CFLAGS_EXTRA) 40QMAKE_CFLAGS_EXCEPTIONS_OFF = -x-
39}
40 41
41 QMAKE_CXX = $$QMAKE_CC 42 QMAKE_CXX = $$QMAKE_CC
@@ -51,4 +52,10 @@ QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG
51 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC 52 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
52 QMAKE_CXXFLAGS_CONSOLE= $$QMAKE_CFLAGS_CONSOLE 53 QMAKE_CXXFLAGS_CONSOLE= $$QMAKE_CFLAGS_CONSOLE
54 QMAKE_CXXFLAGS_STL_ON= $$QMAKE_CFLAGS_STL_ON
55 QMAKE_CXXFLAGS_STL_OFF= $$QMAKE_CFLAGS_STL_OFF
56 QMAKE_CXXFLAGS_RTTI_ON= $$QMAKE_CFLAGS_RTTI_ON
57 QMAKE_CXXFLAGS_RTTI_OFF= $$QMAKE_CFLAGS_RTTI_OFF
58QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON
59QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF
53 60
54 QMAKE_INCDIR = 61 QMAKE_INCDIR =
@@ -71,5 +78,5 @@ QMAKE_LFLAGS_CONSOLE_DLL= -Gi -ap -Tpd c0d32.obj
71QMAKE_LFLAGS_WINDOWS_DLL= -Gi -aa -Tpd c0d32.obj 78QMAKE_LFLAGS_WINDOWS_DLL= -Gi -aa -Tpd c0d32.obj
72 79
73 QMAKE_LIBS = $(LIBS_EXTRA) 80 QMAKE_LIBS = import32.lib $(LIBS_EXTRA)
74 QMAKE_LIBS_RT = cw32i.lib 81 QMAKE_LIBS_RT = cw32i.lib
75 QMAKE_LIBS_RTMT = cw32mti.lib 82 QMAKE_LIBS_RTMT = cw32mti.lib
@@ -89,5 +96,5 @@ QMAKE_IDC = $(QTDIR)\bin\idc.exe
89 QMAKE_IDL = midl 96 QMAKE_IDL = midl
90 QMAKE_LIB = tlib /C /P256 97 QMAKE_LIB = tlib /C /P256
91 QMAKE_RC = brcc32 98 QMAKE_RC = brcc32 -dQ_CC_BOR
92 99
93 QMAKE_ZIP = zip -r -9 100 QMAKE_ZIP = zip -r -9
@@ -95,3 +102,6 @@ QMAKE_ZIP = zip -r -9
95 QMAKE_COPY = copy 102 QMAKE_COPY = copy
96 QMAKE_MOVE = move 103 QMAKE_MOVE = move
97 QMAKE_DEL = del 104 QMAKE_DEL_FILE = del
105 QMAKE_DEL_DIR = rmdir
106 QMAKE_CHK_DIR_EXISTS= if not exist
107 QMAKE_MKDIR = mkdir
diff --git a/mkspecs/win32-borland/qplatformdefs.h b/mkspecs/win32-borland/qplatformdefs.h
index 5babada..121f863 100644
--- a/mkspecs/win32-borland/qplatformdefs.h
+++ b/mkspecs/win32-borland/qplatformdefs.h
@@ -29,102 +29,116 @@
29 29
30#if __BORLANDC__ >= 0x550 30#if __BORLANDC__ >= 0x550
31#ifdef QT_LARGE_FILE_SUPPORT 31// Borland Builder 6
32 #define QT_STATBUF struct stati64 // non-ANSI defs 32
33 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs 33#ifdef QT_LARGEFILE_SUPPORT
34 #define QT_STAT ::stati64 34 # define QT_STATBUF struct stati64 // non-ANSI defs
35 #define QT_FSTAT ::fstati64 35 # define QT_STATBUF4TSTAT struct stati64 // non-ANSI defs
36 # define QT_STAT ::_stati64
37 # define QT_FSTAT ::fstati64
38 # define QT_LSEEK ::_lseeki64
39 # define QT_TSTAT ::_tstati64
36#else 40#else
37 #define QT_STATBUF struct stat // non-ANSI defs 41 # define QT_STATBUF struct stat // non-ANSI defs
38 #define QT_STATBUF4TSTAT struct _stat // non-ANSI defs 42 # define QT_STATBUF4TSTAT struct _stat // non-ANSI defs
39 #define QT_STAT ::stat 43 # define QT_STAT ::stat
40 #define QT_FSTAT ::fstat 44 # define QT_FSTAT ::fstat
45 # define QT_LSEEK ::_lseek
46 # define QT_TSTAT ::_tstat
41#endif 47#endif
42 # define QT_STAT_REG _S_IFREG 48
43 # define QT_STAT_DIR _S_IFDIR 49 #define QT_STAT_REG _S_IFREG
44 # define QT_STAT_MASK _S_IFMT 50 #define QT_STAT_DIR _S_IFDIR
45# if defined(_S_IFLNK) 51 #define QT_STAT_MASK _S_IFMT
52
53#if defined(_S_IFLNK)
46 # define QT_STAT_LNK _S_IFLNK 54 # define QT_STAT_LNK _S_IFLNK
47# endif
48 # define QT_FILENO _fileno
49 # define QT_OPEN ::open
50 # define QT_CLOSE ::_close
51#ifdef QT_LARGE_FILE_SUPPORT
52 #define QT_LSEEK ::_lseeki64
53 #define QT_TSTAT ::_tstati64
54#else
55 #define QT_LSEEK ::_lseek
56 #define QT_TSTAT ::_tstat
57#endif 55#endif
58 # define QT_READ ::_read 56
59 # define QT_WRITE ::_write 57 #define QT_FILENO _fileno
60 # define QT_ACCESS ::_access 58 #define QT_OPEN ::open
61 # define QT_GETCWD ::_getcwd 59 #define QT_CLOSE ::_close
62 # define QT_CHDIR ::chdir 60
63 # define QT_MKDIR ::_mkdir 61 #define QT_READ ::_read
64 # define QT_RMDIR ::_rmdir 62 #define QT_WRITE ::_write
65 # define QT_OPEN_RDONLY _O_RDONLY 63 #define QT_ACCESS ::_access
66 # define QT_OPEN_WRONLY _O_WRONLY 64 #define QT_GETCWD ::_getcwd
67 # define QT_OPEN_RDWR _O_RDWR 65 #define QT_CHDIR ::chdir
68 # define QT_OPEN_CREAT _O_CREAT 66 #define QT_MKDIR ::_mkdir
69 # define QT_OPEN_TRUNC _O_TRUNC 67 #define QT_RMDIR ::_rmdir
70 # define QT_OPEN_APPEND _O_APPEND 68 #define QT_OPEN_RDONLY _O_RDONLY
71# if defined(O_TEXT) 69 #define QT_OPEN_WRONLY _O_WRONLY
70 #define QT_OPEN_RDWR _O_RDWR
71 #define QT_OPEN_CREAT _O_CREAT
72 #define QT_OPEN_TRUNC _O_TRUNC
73 #define QT_OPEN_APPEND _O_APPEND
74
75#if defined(O_TEXT)
72 # define QT_OPEN_TEXT _O_TEXT 76 # define QT_OPEN_TEXT _O_TEXT
73 # define QT_OPEN_BINARY_O_BINARY 77 # define QT_OPEN_BINARY_O_BINARY
74# endif 78#endif
75 #else // all other systems 79
76#ifdef QT_LARGE_FILE_SUPPORT
77 #define QT_STATBUF struct stati64 // non-ANSI defs
78 #define QT_STATBUF4TSTAT struct stati64 // non-ANSI defs
79 #define QT_STAT ::stati64
80 #define QT_FSTAT ::fstati64
81#else 80#else
82 #define QT_STATBUF struct stat // non-ANSI defs 81// Borland Builder 5
83 #define QT_STATBUF4TSTAT struct stat // non-ANSI defs 82
84 #define QT_STAT ::stat 83#ifdef QT_LARGEFILE_SUPPORT
85 #define QT_FSTAT ::fstat 84 # define QT_STATBUF struct stati64 // non-ANSI defs
85 # define QT_STATBUF4TSTAT struct stati64 // non-ANSI defs
86 # define QT_STAT ::stati64
87 # define QT_FSTAT ::fstati64
88 # define QT_LSEEK ::lseeki64
89 # define QT_TSTAT ::tstati64
90#else
91 # define QT_STATBUF struct stat // non-ANSI defs
92 # define QT_STATBUF4TSTAT struct stat // non-ANSI defs
93 # define QT_STAT ::stat
94 # define QT_FSTAT ::fstat
95 # define QT_LSEEK ::lseek
96 # define QT_TSTAT ::tstat
86#endif 97#endif
87 # define QT_STAT_REG S_IFREG 98
88 # define QT_STAT_DIR S_IFDIR 99 #define QT_STAT_REG S_IFREG
89 # define QT_STAT_MASK S_IFMT 100 #define QT_STAT_DIR S_IFDIR
90# if defined(S_IFLNK) 101 #define QT_STAT_MASK S_IFMT
102
103#if defined(S_IFLNK)
91 # define QT_STAT_LNK S_IFLNK 104 # define QT_STAT_LNK S_IFLNK
92# endif
93 # define QT_FILENO fileno
94 # define QT_OPEN ::open
95 # define QT_CLOSE ::close
96#ifdef QT_LARGE_FILE_SUPPORT
97 #define QT_LSEEK ::lseeki64
98 #define QT_TSTAT ::tstati64
99#else
100 #define QT_LSEEK ::lseek
101 #define QT_TSTAT ::tstat
102#endif 105#endif
103 # define QT_READ ::read 106
104 # define QT_WRITE ::write 107 #define QT_FILENO fileno
105 # define QT_ACCESS ::access 108 #define QT_OPEN ::open
106# if defined(Q_OS_OS2EMX) 109 #define QT_CLOSE ::close
107// This is documented in the un*x to OS/2-EMX Porting FAQ: 110
108 // http://homepages.tu-darmstadt.de/~st002279/os2/porting.html 111 #define QT_READ ::read
112 #define QT_WRITE ::write
113 #define QT_ACCESS ::access
114
115#if defined(Q_OS_OS2EMX)
116 // This is documented in the un*x to OS/2-EMX Porting FAQ:
117 // http://homepages.tu-darmstadt.de/~st002279/os2/porting.html
109 # define QT_GETCWD ::_getcwd2 118 # define QT_GETCWD ::_getcwd2
110 # define QT_CHDIR ::_chdir2 119 # define QT_CHDIR ::_chdir2
111# else 120#else
112 # define QT_GETCWD ::getcwd 121 # define QT_GETCWD ::getcwd
113 # define QT_CHDIR ::chdir 122 # define QT_CHDIR ::chdir
114# endif 123#endif
115 # define QT_MKDIR ::mkdir 124
116 # define QT_RMDIR ::rmdir 125 #define QT_MKDIR ::mkdir
117 # define QT_OPEN_RDONLY O_RDONLY 126 #define QT_RMDIR ::rmdir
118 # define QT_OPEN_WRONLY O_WRONLY 127 #define QT_OPEN_RDONLY O_RDONLY
119 # define QT_OPEN_RDWR O_RDWR 128 #define QT_OPEN_WRONLY O_WRONLY
120 # define QT_OPEN_CREAT O_CREAT 129 #define QT_OPEN_RDWR O_RDWR
121 # define QT_OPEN_TRUNC O_TRUNC 130 #define QT_OPEN_CREAT O_CREAT
122 # define QT_OPEN_APPEND O_APPEND 131 #define QT_OPEN_TRUNC O_TRUNC
123# if defined(O_TEXT) 132 #define QT_OPEN_APPEND O_APPEND
133
134#if defined(O_TEXT)
124 # define QT_OPEN_TEXT O_TEXT 135 # define QT_OPEN_TEXT O_TEXT
125 # define QT_OPEN_BINARYO_BINARY 136 # define QT_OPEN_BINARYO_BINARY
126# endif
127#endif 137#endif
128 138
139#endif // __BORLANDC__ >= 0x550
140
141// Borland Builder 5 and 6
142
129 #define QT_SIGNAL_ARGS int 143 #define QT_SIGNAL_ARGS int
130 144
diff --git a/mkspecs/win32-g++/qmake.conf b/mkspecs/win32-g++/qmake.conf
index 4bc603c..1347c44 100644
--- a/mkspecs/win32-g++/qmake.conf
+++ b/mkspecs/win32-g++/qmake.conf
@@ -2,10 +2,17 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Win32/g++ (Cygnus gnu-win32) 4# qmake configuration for win32-g++
5#
6# Written for MinGW
5# 7#
6 8
7 MAKEFILE_GENERATOR= UNIX 9 MAKEFILE_GENERATOR= MINGW
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release 11 CONFIG += qt warn_on release link_prl
12 DEFINES += UNICODE
13
14exists( $(QTDIR)\.qtwinconfig ) {
15 include( $(QTDIR)\.qtwinconfig )
16}
10 17
11 QMAKE_CC = gcc 18 QMAKE_CC = gcc
@@ -14,11 +21,16 @@ QMAKE_LEXFLAGS =
14 QMAKE_YACC = byacc 21 QMAKE_YACC = byacc
15 QMAKE_YACCFLAGS = -d 22 QMAKE_YACCFLAGS = -d
16 QMAKE_CFLAGS = -fvtable-thunks $(CFLAGS_EXTRA) 23 QMAKE_CFLAGS = $(CFLAGS_EXTRA)
17 QMAKE_CFLAGS_DEPS= -M 24 QMAKE_CFLAGS_DEPS= -M
18 QMAKE_CFLAGS_WARN_ON= 25 QMAKE_CFLAGS_WARN_ON= -Wall
19 QMAKE_CFLAGS_WARN_OFF= 26 QMAKE_CFLAGS_WARN_OFF= -w
20 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O) 27 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)
21 QMAKE_CFLAGS_DEBUG= -g 28 QMAKE_CFLAGS_DEBUG= -g
22 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses 29 QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses
30 QMAKE_CFLAGS_THREAD= -mthreads
31 QMAKE_CFLAGS_RTTI_ON= -frtti
32 QMAKE_CFLAGS_RTTI_OFF= -fno-rtti
33QMAKE_CFLAGS_EXCEPTIONS_ON = -fexceptions
34QMAKE_CFLAGS_EXCEPTIONS_OFF = -fno-exceptions
23 35
24 QMAKE_CXX = g++ 36 QMAKE_CXX = g++
@@ -30,7 +42,13 @@ QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
30 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG 42 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
31 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC 43 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
44 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
45 QMAKE_CXXFLAGS_RTTI_ON= $$QMAKE_CFLAGS_RTTI_ON
46 QMAKE_CXXFLAGS_RTTI_OFF= $$QMAKE_CFLAGS_RTTI_OFF
47QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON
48QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF
32 49
33 QMAKE_INCDIR = 50 QMAKE_INCDIR =
34 QMAKE_INCDIR_QT = $(QTDIR)/include 51 QMAKE_INCDIR_QT = $(QTDIR)\include
52 QMAKE_LIBDIR_QT = $(QTDIR)\lib
35 53
36 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src 54 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src
@@ -40,26 +58,32 @@ QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
40 58
41 QMAKE_LINK = g++ 59 QMAKE_LINK = g++
42 QMAKE_LFLAGS = $(LFLAGS_EXTRA) 60 QMAKE_LFLAGS = -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc $(LFLAGS_EXTRA)
43 QMAKE_LFLAGS_RELEASE= 61 QMAKE_LFLAGS_RELEASE= -Wl,-s
44 QMAKE_LFLAGS_DEBUG= 62 QMAKE_LFLAGS_DEBUG=
63 QMAKE_LFLAGS_THREAD= -mthreads
45 QMAKE_LFLAGS_CONSOLE= -Wl,-subsystem,console 64 QMAKE_LFLAGS_CONSOLE= -Wl,-subsystem,console
46 QMAKE_LFLAGS_WINDOWS= -Wl,-subsystem,windows 65 QMAKE_LFLAGS_WINDOWS= -Wl,-subsystem,windows -e __Z19QtWinMainCRTStartupv
47QMAKE_LFLAGS_CONSOLE_DLL= -Wl,-subsystem,console 66QMAKE_LFLAGS_CONSOLE_DLL= -Wl,-subsystem,console -shared -Wl,--export-all-symbols
48QMAKE_LFLAGS_WINDOWS_DLL= -Wl,-subsystem,windows 67QMAKE_LFLAGS_WINDOWS_DLL= -Wl,-subsystem,windows -shared -Wl,--export-all-symbols
68 QMAKE_LINK_OBJECT_MAX= 10
69QMAKE_LINK_OBJECT_SCRIPT= object_ld_script
70QMAKE_LINK_OBJMOC_SCRIPT= objmoc_ld_script
49 71
50 QMAKE_LIBS = $(LIBS_EXTRA) 72 QMAKE_LIBS = $(LIBS_EXTRA)
51 QMAKE_LIBS_CONSOLE= 73 QMAKE_LIBS_CONSOLE=
52 QMAKE_LIBS_WINDOWS= -luser32 -lgdi32 -lcomdlg32 -lwinmm -limm32 -lole32 -luuid -lwsock32 74 QMAKE_LIBS_WINDOWS= -lkernel32 -luser32 -lgdi32 -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -limm32 -lwinmm -lwsock32 -lwinspool
53 QMAKE_LIBS_QT = -L$(QTDIR)/lib -lqt 75 QMAKE_LIBS_QT = -lqt
76 QMAKE_LIBS_QT_THREAD= -lqt-mt
54 QMAKE_LIBS_QT_ENTRY= -lqtmain 77 QMAKE_LIBS_QT_ENTRY= -lqtmain
55 78
56 QMAKE_LIBS_OPENGL= -lopengl32 79 QMAKE_LIBS_OPENGL= -lopengl32 -lglu32
57 80
58 QMAKE_MOC = $(QTDIR)/bin/moc.exe 81 QMAKE_MOC = $(QTDIR)\bin\moc.exe
59 QMAKE_UIC = $(QTDIR)/bin/uic.exe 82 QMAKE_UIC = $(QTDIR)\bin\uic.exe
60 QMAKE_IDC = $(QTDIR)/bin/idc.exe 83 QMAKE_IDC = $(QTDIR)\bin\idc.exe
61 84
62 QMAKE_AR = ar cqs 85 QMAKE_IDL = midl
63 QMAKE_RANLIB = 86 QMAKE_LIB = ar -ru
87 QMAKE_RC = windres
64 88
65 QMAKE_ZIP = zip -r -9 89 QMAKE_ZIP = zip -r -9
@@ -68,3 +92,7 @@ QMAKE_COPY = copy
68 QMAKE_MOVE = move 92 QMAKE_MOVE = move
69 QMAKE_DEL_FILE = del 93 QMAKE_DEL_FILE = del
70 QMAKE_DEL_DIR = deltree 94 QMAKE_DEL_DIR = rmdir
95 QMAKE_STRIP = strip
96 QMAKE_STRIPFLAGS_LIB += --strip-unneeded
97 QMAKE_CHK_DIR_EXISTS= if not exist
98 QMAKE_MKDIR = mkdir
diff --git a/mkspecs/win32-g++/qplatformdefs.h b/mkspecs/win32-g++/qplatformdefs.h
new file mode 100644
index 0000000..9f4d318
--- a/dev/null
+++ b/mkspecs/win32-g++/qplatformdefs.h
@@ -0,0 +1,96 @@
1#ifndef QPLATFORMDEFS_H
2#define QPLATFORMDEFS_H
3
4#ifdef UNICODE
5#ifndef _UNICODE
6#define _UNICODE
7#endif
8#endif
9
10// Get Qt defines/settings
11
12#include "qglobal.h"
13
14#include <tchar.h>
15#include <io.h>
16#include <direct.h>
17#include <stdio.h>
18#include <fcntl.h>
19#include <errno.h>
20#include <sys/stat.h>
21#include <stdlib.h>
22#include <windows.h>
23
24#if !defined(_WIN32_WINNT) || (_WIN32_WINNT-0 < 0x0500)
25typedef enum {
26 NameUnknown = 0,
27 NameFullyQualifiedDN = 1,
28 NameSamCompatible = 2,
29 NameDisplay = 3,
30 NameUniqueId = 6,
31 NameCanonical = 7,
32 NameUserPrincipal = 8,
33 NameCanonicalEx = 9,
34 NameServicePrincipal = 10,
35 NameDnsDomain = 12
36} EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;
37#endif
38
39#define Q_FS_FAT
40#ifdef QT_LARGEFILE_SUPPORT
41 #define QT_STATBUF struct _stati64 // non-ANSI defs
42 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
43 #define QT_STAT ::_stati64
44 #define QT_FSTAT ::_fstati64
45#else
46 #define QT_STATBUF struct _stat // non-ANSI defs
47 #define QT_STATBUF4TSTAT struct _stat // non-ANSI defs
48 #define QT_STAT ::_stat
49 #define QT_FSTAT ::_fstat
50#endif
51 #define QT_STAT_REG _S_IFREG
52 #define QT_STAT_DIR _S_IFDIR
53 #define QT_STAT_MASK _S_IFMT
54#if defined(_S_IFLNK)
55 # define QT_STAT_LNK _S_IFLNK
56#endif
57 #define QT_FILENO _fileno
58 #define QT_OPEN ::_open
59 #define QT_CLOSE ::_close
60#ifdef QT_LARGEFILE_SUPPORT
61 #define QT_LSEEK ::_lseeki64
62 #define QT_TSTAT ::_tstati64
63#else
64 #define QT_LSEEK ::_lseek
65 #define QT_TSTAT ::_tstat
66#endif
67 #define QT_READ ::_read
68 #define QT_WRITE ::_write
69 #define QT_ACCESS ::_access
70 #define QT_GETCWD ::_getcwd
71 #define QT_CHDIR ::_chdir
72 #define QT_MKDIR ::_mkdir
73 #define QT_RMDIR ::_rmdir
74 #define QT_OPEN_RDONLY _O_RDONLY
75 #define QT_OPEN_WRONLY _O_WRONLY
76 #define QT_OPEN_RDWR _O_RDWR
77 #define QT_OPEN_CREAT _O_CREAT
78 #define QT_OPEN_TRUNC _O_TRUNC
79 #define QT_OPEN_APPEND _O_APPEND
80#if defined(O_TEXT)
81 # define QT_OPEN_TEXT _O_TEXT
82 # define QT_OPEN_BINARY _O_BINARY
83#endif
84
85 #define QT_SIGNAL_ARGS int
86
87 #define QT_VSNPRINTF ::_vsnprintf
88 #define QT_SNPRINTF ::_snprintf
89
90 # define F_OK0
91 # define X_OK1
92 # define W_OK2
93 # define R_OK4
94
95
96#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/win32-g++/qtcrtentrypoint.cpp b/mkspecs/win32-g++/qtcrtentrypoint.cpp
new file mode 100644
index 0000000..87b7bcc
--- a/dev/null
+++ b/mkspecs/win32-g++/qtcrtentrypoint.cpp
@@ -0,0 +1,231 @@
1
2//This code is need to get the WinMain function called. Current MinGW runtimes tries to call main
3//before WinMain. Untill such time as MinGw runtime has been changed this is need.
4//Most of this code is taken from the MinGw runtime sources.
5
6
7#include <signal.h>
8#include <process.h>
9#include <float.h>
10#include <io.h>
11
12
13/*
14 * Setup the default file handles to have the _CRT_fmode mode, as well as
15 * any new files created by the user.
16 */
17
18extern int _fmode;
19extern "C" int* __p__fmode(void); /* To access the dll _fmode */
20extern int _CRT_fmode;
21
22static void _mingw32_init_fmode ()
23{
24 /* Don't set the std file mode if the user hasn't set any value for it. */
25 if (_CRT_fmode)
26 {
27 _fmode = _CRT_fmode;
28
29 /*
30 * This overrides the default file mode settings for stdin,
31 * stdout and stderr. At first I thought you would have to
32 * test with isatty, but it seems that the DOS console at
33 * least is smart enough to handle _O_BINARY stdout and
34 * still display correctly.
35 */
36 if (stdin)
37 {
38 _setmode (_fileno (stdin), _CRT_fmode);
39 }
40 if (stdout)
41 {
42 _setmode (_fileno (stdout), _CRT_fmode);
43 }
44 if (stderr)
45 {
46 _setmode (_fileno (stderr), _CRT_fmode);
47 }
48 }
49
50 /* Now sync the dll _fmode to the one for this .exe. */
51 *__p__fmode() = _fmode;
52
53}
54
55/* This function will be called when a trap occurs. Thanks to Jacob
56 Navia for his contribution. */
57static CALLBACK long _gnu_exception_handler (EXCEPTION_POINTERS * exception_data)
58{
59 void (*old_handler) (int);
60 long action = EXCEPTION_CONTINUE_SEARCH;
61 int reset_fpu = 0;
62
63 switch (exception_data->ExceptionRecord->ExceptionCode)
64 {
65 case EXCEPTION_ACCESS_VIOLATION:
66 /* test if the user has set SIGSEGV */
67 old_handler = signal (SIGSEGV, SIG_DFL);
68 if (old_handler == SIG_IGN)
69 {
70 /* this is undefined if the signal was raised by anything other
71 than raise (). */
72 signal (SIGSEGV, SIG_IGN);
73 action = EXCEPTION_CONTINUE_EXECUTION;
74 }
75 else if (old_handler != SIG_DFL)
76 {
77 /* This means 'old' is a user defined function. Call it */
78 (*old_handler) (SIGSEGV);
79 action = EXCEPTION_CONTINUE_EXECUTION;
80 }
81 break;
82
83 case EXCEPTION_FLT_INVALID_OPERATION:
84 case EXCEPTION_FLT_DIVIDE_BY_ZERO:
85 case EXCEPTION_FLT_DENORMAL_OPERAND:
86 case EXCEPTION_FLT_OVERFLOW:
87 case EXCEPTION_FLT_UNDERFLOW:
88 case EXCEPTION_FLT_INEXACT_RESULT:
89 reset_fpu = 1;
90 /* fall through. */
91
92 case EXCEPTION_INT_DIVIDE_BY_ZERO:
93 /* test if the user has set SIGFPE */
94 old_handler = signal (SIGFPE, SIG_DFL);
95 if (old_handler == SIG_IGN)
96 {
97 signal (SIGFPE, SIG_IGN);
98 if (reset_fpu)
99 _fpreset ();
100 action = EXCEPTION_CONTINUE_EXECUTION;
101 }
102 else if (old_handler != SIG_DFL)
103 {
104 /* This means 'old' is a user defined function. Call it */
105 (*old_handler) (SIGFPE);
106 action = EXCEPTION_CONTINUE_EXECUTION;
107 }
108 break;
109
110 default:
111 break;
112 }
113 return action;
114}
115
116
117extern char __RUNTIME_PSEUDO_RELOC_LIST__;
118extern char __RUNTIME_PSEUDO_RELOC_LIST_END__;
119extern char _image_base__;
120
121typedef struct {
122 DWORD addend;
123 DWORD target;
124} runtime_pseudo_reloc;
125
126static void do_pseudo_reloc (void* start, void* end, void* base)
127{
128 DWORD reloc_target;
129 runtime_pseudo_reloc* r;
130 for (r = (runtime_pseudo_reloc*) start; r < (runtime_pseudo_reloc*) end; r++) {
131 reloc_target = (DWORD) base + r->target;
132 *((DWORD*) reloc_target) += r->addend;
133 }
134}
135
136void _pei386_runtime_relocator ()
137{
138 do_pseudo_reloc (&__RUNTIME_PSEUDO_RELOC_LIST__,
139 &__RUNTIME_PSEUDO_RELOC_LIST_END__,
140 &_image_base__);
141}
142
143
144#ifdef __MSVCRT__
145#define __UNKNOWN_APP 0
146#define __CONSOLE_APP 1
147#define __GUI_APP 2
148extern "C" void __set_app_type(int);
149#endif /* __MSVCRT__ */
150
151 #define ISSPACE(a)(a == ' ' || a == '\t')
152
153int QtWinMainCRTStartup()
154{
155#ifdef __MSVCRT__
156 __set_app_type (__GUI_APP);
157#endif
158
159 SetUnhandledExceptionFilter (_gnu_exception_handler);
160
161 /*
162 * Initialize floating point unit.
163 */
164 _fpreset (); /* Supplied by the runtime library. */
165
166 /*
167 * Sets the default file mode.
168 * If _CRT_fmode is set, also set mode for stdin, stdout
169 * and stderr, as well
170 * NOTE: DLLs don't do this because that would be rude!
171 */
172 _mingw32_init_fmode ();
173
174 /* Adust references to dllimported data that have non-zero offsets. */
175 _pei386_runtime_relocator ();
176
177 char *szCmd;
178 STARTUPINFO startinfo;
179 int nRet;
180
181 /* Get the command line passed to the process. */
182 szCmd = GetCommandLineA ();
183 GetStartupInfo (&startinfo);
184
185 /* Strip off the name of the application and any leading
186 * whitespace. */
187 if (szCmd) {
188
189 while (ISSPACE (*szCmd)) {
190 szCmd++;
191 }
192
193 /* On my system I always get the app name enclosed
194 * in quotes... */
195 if (*szCmd == '\"') {
196 do {
197 szCmd++;
198 } while (*szCmd != '\"' && *szCmd != '\0');
199
200 if (*szCmd == '\"') {
201 szCmd++;
202 }
203 } else {
204 /* If no quotes then assume first token is program
205 * name. */
206 while (!ISSPACE (*szCmd) && *szCmd != '\0') {
207 szCmd++;
208 }
209 }
210
211 while (ISSPACE (*szCmd)) {
212 szCmd++;
213 }
214 }
215
216 nRet = WinMain (GetModuleHandle (NULL), NULL, szCmd,
217 (startinfo.dwFlags & STARTF_USESHOWWINDOW) ?
218 startinfo.wShowWindow : SW_SHOWDEFAULT);
219
220 /*
221 * Perform exit processing for the C library. This means
222 * flushing output and calling 'atexit' registered functions.
223 */
224 _cexit ();
225
226 ExitProcess (nRet);
227
228 return 0;
229
230}
231
diff --git a/mkspecs/win32-icc/qmake.conf b/mkspecs/win32-icc/qmake.conf
index f7b43b9..088c7f5 100644
--- a/mkspecs/win32-icc/qmake.conf
+++ b/mkspecs/win32-icc/qmake.conf
@@ -2,10 +2,12 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Win32/Intel C++ 4# qmake configuration for win32-icc
5#
6# Written for Intel C++ 5.0.1, 6.0.1, and 7.0 for Windows.
5# 7#
6 8
7 MAKEFILE_GENERATOR= MSVC 9 MAKEFILE_GENERATOR= MSVC
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release incremental 11 CONFIG += qt warn_on release incremental link_prl
10 DEFINES += UNICODE 12 DEFINES += UNICODE
11 13
@@ -22,6 +24,6 @@ QMAKE_CFLAGS = -nologo -Zm200 $(CFLAGS_EXTRA)
22 QMAKE_CFLAGS_WARN_ON= -W3 24 QMAKE_CFLAGS_WARN_ON= -W3
23 QMAKE_CFLAGS_WARN_OFF= -W0 25 QMAKE_CFLAGS_WARN_OFF= -W0
24 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -Od -Ob1s) 26 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), )
25 QMAKE_CFLAGS_DEBUG= -Zi 27 QMAKE_CFLAGS_DEBUG= -Zi -Od
26 QMAKE_CFLAGS_MT = -MD 28 QMAKE_CFLAGS_MT = -MD
27 QMAKE_CFLAGS_MT_DBG= -MDd 29 QMAKE_CFLAGS_MT_DBG= -MDd
@@ -29,14 +31,10 @@ QMAKE_CFLAGS_MT_DLL = -MD
29 QMAKE_CFLAGS_MT_DLLDBG= -MDd 31 QMAKE_CFLAGS_MT_DLLDBG= -MDd
30 QMAKE_CFLAGS_YACC= 32 QMAKE_CFLAGS_YACC=
31 33 QMAKE_CFLAGS_STL_ON= -GX
32contains(CONFIG,stl){ 34 QMAKE_CFLAGS_STL_OFF=
33 QMAKE_CFLAGS+= -GX $(CFLAGS_EXTRA) 35 QMAKE_CFLAGS_RTTI_ON= -GR
34} 36 QMAKE_CFLAGS_RTTI_OFF=
35contains(CONFIG,exceptions){ 37QMAKE_CFLAGS_EXCEPTIONS_ON = -GX
36 QMAKE_CFLAGS += -GX 38QMAKE_CFLAGS_EXCEPTIONS_OFF =
37}
38contains(CONFIG,rtti){
39 QMAKE_CFLAGS+= -GR $(CFLAGS_EXTRA)
40}
41 39
42 QMAKE_CXX = $$QMAKE_CC 40 QMAKE_CXX = $$QMAKE_CC
@@ -51,5 +49,10 @@ QMAKE_CXXFLAGS_MT_DLL = $$QMAKE_CFLAGS_MT_DLL
51QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG 49QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG
52 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC 50 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
53 QMAKE_CXXFLAGS_STL= $$QMAKE_CFLAGS_STL 51 QMAKE_CXXFLAGS_STL_ON= $$QMAKE_CFLAGS_STL_ON
52 QMAKE_CXXFLAGS_STL_OFF= $$QMAKE_CFLAGS_STL_OFF
53 QMAKE_CXXFLAGS_RTTI_ON= $$QMAKE_CFLAGS_RTTI_ON
54 QMAKE_CXXFLAGS_RTTI_OFF= $$QMAKE_CFLAGS_RTTI_OFF
55QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON
56QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF
54 57
55 QMAKE_INCDIR = 58 QMAKE_INCDIR =
@@ -59,6 +62,8 @@ QMAKE_LIBDIR_QT = $(QTDIR)\lib
59 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src 62 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src
60 QMAKE_RUN_CC_IMP= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< 63 QMAKE_RUN_CC_IMP= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<
64 QMAKE_RUN_CC_IMP_BATCH= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<<
61 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src 65 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src
62 QMAKE_RUN_CXX_IMP= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< 66 QMAKE_RUN_CXX_IMP= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $<
67 QMAKE_RUN_CXX_IMP_BATCH= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<<
63 68
64 QMAKE_LINK = link 69 QMAKE_LINK = link
@@ -75,7 +80,7 @@ QMAKE_LIBS = $(LIBS_EXTRA)
75 QMAKE_LIBS_CONSOLE= 80 QMAKE_LIBS_CONSOLE=
76 QMAKE_LIBS_WINDOWS= kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib 81 QMAKE_LIBS_WINDOWS= kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib
77 QMAKE_LIBS_QT = $(QTDIR)\lib\qt.lib 82 QMAKE_LIBS_QT = qt.lib
78 QMAKE_LIBS_QT_THREAD= $(QTDIR)\lib\qt-mt.lib 83 QMAKE_LIBS_QT_THREAD= qt-mt.lib
79 QMAKE_LIBS_QT_ENTRY= $(QTDIR)\lib\qtmain.lib 84 QMAKE_LIBS_QT_ENTRY= qtmain.lib
80 85
81 QMAKE_LIBS_OPENGL= opengl32.lib glu32.lib delayimp.lib 86 QMAKE_LIBS_OPENGL= opengl32.lib glu32.lib delayimp.lib
@@ -95,5 +100,7 @@ QMAKE_COPY = copy
95 QMAKE_MOVE = move 100 QMAKE_MOVE = move
96 QMAKE_DEL_FILE = del 101 QMAKE_DEL_FILE = del
97 QMAKE_DEL_DIR = deltree 102 QMAKE_DEL_DIR = rmdir
103 QMAKE_CHK_DIR_EXISTS= if not exist
104 QMAKE_MKDIR = mkdir
98 105
99 DSP_EXTENSION = .dsp 106 DSP_EXTENSION = .dsp
diff --git a/mkspecs/win32-icc/qplatformdefs.h b/mkspecs/win32-icc/qplatformdefs.h
index 1d72e8a..d828db8 100644
--- a/mkspecs/win32-icc/qplatformdefs.h
+++ b/mkspecs/win32-icc/qplatformdefs.h
@@ -27,5 +27,5 @@
27 27
28#define Q_FS_FAT 28#define Q_FS_FAT
29#ifdef QT_LARGE_FILE_SUPPORT 29#ifdef QT_LARGEFILE_SUPPORT
30 #define QT_STATBUF struct _stati64 // non-ANSI defs 30 #define QT_STATBUF struct _stati64 // non-ANSI defs
31 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs 31 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
@@ -47,5 +47,5 @@
47 #define QT_OPEN ::_open 47 #define QT_OPEN ::_open
48 #define QT_CLOSE ::_close 48 #define QT_CLOSE ::_close
49#ifdef QT_LARGE_FILE_SUPPORT 49#ifdef QT_LARGEFILE_SUPPORT
50 #define QT_LSEEK ::_lseeki64 50 #define QT_LSEEK ::_lseeki64
51 #define QT_TSTAT ::_tstati64 51 #define QT_TSTAT ::_tstati64
@@ -82,4 +82,6 @@
82 # define R_OK4 82 # define R_OK4
83 83
84typedef int mode_t;
85
84 86
85#endif // QPLATFORMDEFS_H 87#endif // QPLATFORMDEFS_H
diff --git a/mkspecs/win32-msvc.net/qmake.conf b/mkspecs/win32-msvc.net/qmake.conf
index 92f7cc6..de8460d 100644
--- a/mkspecs/win32-msvc.net/qmake.conf
+++ b/mkspecs/win32-msvc.net/qmake.conf
@@ -2,11 +2,13 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Win32/Microsoft C++.NET 4# qmake configuration for win32-msvc.net
5#
6# Written for Microsoft C++.NET.
5# 7#
6 8
7 MAKEFILE_GENERATOR= MSVC.NET 9 MAKEFILE_GENERATOR= MSVC.NET
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release incremental 11 CONFIG += qt warn_on release incremental flat link_prl precompile_header
10 DEFINES += UNICODE WIN32 NDEBUG 12 DEFINES += UNICODE WIN32
11 13
12exists( $(QTDIR)\.qtwinconfig ) { 14exists( $(QTDIR)\.qtwinconfig ) {
@@ -23,26 +25,20 @@ QMAKE_CFLAGS_WARN_ON = -W3
23 QMAKE_CFLAGS_WARN_OFF= -W0 25 QMAKE_CFLAGS_WARN_OFF= -W0
24 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O1) 26 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O1)
25 QMAKE_CFLAGS_DEBUG= -Z7 27 QMAKE_CFLAGS_DEBUG= -Zi -Gm
26 QMAKE_CFLAGS_MT = -MD 28 QMAKE_CFLAGS_MT = -MD
27 QMAKE_CFLAGS_MT_DBG= -MD 29 QMAKE_CFLAGS_MT_DBG= -MDd
28 QMAKE_CFLAGS_MT_DLL= -MD 30 QMAKE_CFLAGS_MT_DLL= -MD
29 QMAKE_CFLAGS_MT_DLLDBG= -MD 31 QMAKE_CFLAGS_MT_DLLDBG= -MDd
30 QMAKE_CFLAGS_ST = -ML
31 QMAKE_CFLAGS_ST_DBG= -MLd
32 QMAKE_CFLAGS_YACC= 32 QMAKE_CFLAGS_YACC=
33 33 QMAKE_CFLAGS_STL_ON= -GX
34contains(CONFIG,stl){ 34 QMAKE_CFLAGS_STL_OFF=
35 QMAKE_CFLAGS+= -GX $(CFLAGS_EXTRA) 35 QMAKE_CFLAGS_RTTI_ON= -GR
36} 36 QMAKE_CFLAGS_RTTI_OFF=
37contains(CONFIG,exceptions){ 37QMAKE_CFLAGS_EXCEPTIONS_ON = -GX
38 QMAKE_CFLAGS += -GX 38QMAKE_CFLAGS_EXCEPTIONS_OFF =
39}
40contains(CONFIG,rtti){
41 QMAKE_CFLAGS+= -GR $(CFLAGS_EXTRA)
42}
43 39
44 QMAKE_CXX = $$QMAKE_CC 40 QMAKE_CXX = $$QMAKE_CC
45 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA) 41 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA)
46 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 42 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON -w34100 -w34189
47 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF 43 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
48 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE 44 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
@@ -52,8 +48,11 @@ QMAKE_CXXFLAGS_MT_DBG = $$QMAKE_CFLAGS_MT_DBG
52 QMAKE_CXXFLAGS_MT_DLL= $$QMAKE_CFLAGS_MT_DLL 48 QMAKE_CXXFLAGS_MT_DLL= $$QMAKE_CFLAGS_MT_DLL
53QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG 49QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG
54 QMAKE_CXXFLAGS_ST= $$QMAKE_CFLAGS_ST
55 QMAKE_CXXFLAGS_ST_DBG= $$QMAKE_CFLAGS_ST_DBG
56 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC 50 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
57 QMAKE_CXXFLAGS_STL= $$QMAKE_CFLAGS_STL 51 QMAKE_CXXFLAGS_STL_ON= $$QMAKE_CFLAGS_STL_ON
52 QMAKE_CXXFLAGS_STL_OFF= $$QMAKE_CFLAGS_STL_OFF
53 QMAKE_CXXFLAGS_RTTI_ON= $$QMAKE_CFLAGS_RTTI_ON
54 QMAKE_CXXFLAGS_RTTI_OFF= $$QMAKE_CFLAGS_RTTI_OFF
55QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON
56QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF
58 57
59 QMAKE_INCDIR = 58 QMAKE_INCDIR =
@@ -63,6 +62,8 @@ QMAKE_LIBDIR_QT = $(QTDIR)\lib
63 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src 62 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src
64 QMAKE_RUN_CC_IMP= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< 63 QMAKE_RUN_CC_IMP= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<
64 QMAKE_RUN_CC_IMP_BATCH= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<<
65 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src 65 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src
66 QMAKE_RUN_CXX_IMP= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< 66 QMAKE_RUN_CXX_IMP= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $<
67 QMAKE_RUN_CXX_IMP_BATCH= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<<
67 68
68 QMAKE_LINK = link 69 QMAKE_LINK = link
@@ -78,10 +79,10 @@ QMAKE_LFLAGS_QT_DLL = /BASE:0x39D00000
78 QMAKE_LIBS = $(LIBS_EXTRA) 79 QMAKE_LIBS = $(LIBS_EXTRA)
79 QMAKE_LIBS_CONSOLE= 80 QMAKE_LIBS_CONSOLE=
80 QMAKE_LIBS_WINDOWS= kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib 81 QMAKE_LIBS_WINDOWS= kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib delayimp.lib
81 QMAKE_LIBS_QT = qt.lib 82 QMAKE_LIBS_QT = qt.lib
82 QMAKE_LIBS_QT_THREAD= qt-mt.lib 83 QMAKE_LIBS_QT_THREAD= qt-mt.lib
83 QMAKE_LIBS_QT_ENTRY= qtmain.lib 84 QMAKE_LIBS_QT_ENTRY= qtmain.lib
84 85
85 QMAKE_LIBS_OPENGL= opengl32.lib glu32.lib delayimp.lib 86 QMAKE_LIBS_OPENGL= opengl32.lib glu32.lib
86 QMAKE_LFLAGS_OPENGL= /DELAYLOAD:opengl32.dll 87 QMAKE_LFLAGS_OPENGL= /DELAYLOAD:opengl32.dll
87 88
@@ -99,6 +100,8 @@ QMAKE_COPY = copy
99 QMAKE_MOVE = move 100 QMAKE_MOVE = move
100 QMAKE_DEL_FILE = del 101 QMAKE_DEL_FILE = del
101 QMAKE_DEL_DIR = deltree 102 QMAKE_DEL_DIR = rmdir
103 QMAKE_CHK_DIR_EXISTS= if not exist
104 QMAKE_MKDIR = mkdir
102 105
103 VCPROJ_EXTENSION= .vcproj 106 VCPROJ_EXTENSION= .vcproj
104 VCSOLUTION_EXTENSION= .vcs 107 VCSOLUTION_EXTENSION= .sln
diff --git a/mkspecs/win32-msvc.net/qplatformdefs.h b/mkspecs/win32-msvc.net/qplatformdefs.h
index 76ed8af..d828db8 100644
--- a/mkspecs/win32-msvc.net/qplatformdefs.h
+++ b/mkspecs/win32-msvc.net/qplatformdefs.h
@@ -27,5 +27,5 @@
27 27
28#define Q_FS_FAT 28#define Q_FS_FAT
29#ifdef QT_LARGE_FILE_SUPPORT 29#ifdef QT_LARGEFILE_SUPPORT
30 #define QT_STATBUF struct _stati64 // non-ANSI defs 30 #define QT_STATBUF struct _stati64 // non-ANSI defs
31 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs 31 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
@@ -47,5 +47,5 @@
47 #define QT_OPEN ::_open 47 #define QT_OPEN ::_open
48 #define QT_CLOSE ::_close 48 #define QT_CLOSE ::_close
49#ifdef QT_LARGE_FILE_SUPPORT 49#ifdef QT_LARGEFILE_SUPPORT
50 #define QT_LSEEK ::_lseeki64 50 #define QT_LSEEK ::_lseeki64
51 #define QT_TSTAT ::_tstati64 51 #define QT_TSTAT ::_tstati64
diff --git a/mkspecs/win32-msvc/qmake.conf b/mkspecs/win32-msvc/qmake.conf
index 6175be3..2d0c6da 100644
--- a/mkspecs/win32-msvc/qmake.conf
+++ b/mkspecs/win32-msvc/qmake.conf
@@ -2,10 +2,12 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Win32/Microsoft C++ 4# qmake configuration for win32-msvc
5#
6# Written for Microsoft C++.
5# 7#
6 8
7 MAKEFILE_GENERATOR= MSVC 9 MAKEFILE_GENERATOR= MSVC
8 TEMPLATE = app 10 TEMPLATE = app
9 CONFIG += qt warn_on release incremental flat 11 CONFIG += qt warn_on release incremental flat link_prl precompile_header
10 DEFINES += UNICODE 12 DEFINES += UNICODE
11 13
@@ -16,5 +18,5 @@ exists( $(QTDIR)\.qtwinconfig ) {
16 QMAKE_CC = cl 18 QMAKE_CC = cl
17 QMAKE_LEX = flex 19 QMAKE_LEX = flex
18 QMAKE_LEXFLAGS = 20 QMAKE_LEXFLAGS =
19 QMAKE_YACC = byacc 21 QMAKE_YACC = byacc
20 QMAKE_YACCFLAGS = -d 22 QMAKE_YACCFLAGS = -d
@@ -29,14 +31,10 @@ QMAKE_CFLAGS_MT_DLL = -MD
29 QMAKE_CFLAGS_MT_DLLDBG= -MDd 31 QMAKE_CFLAGS_MT_DLLDBG= -MDd
30 QMAKE_CFLAGS_YACC= 32 QMAKE_CFLAGS_YACC=
31 33 QMAKE_CFLAGS_STL_ON= -GX
32contains(CONFIG,stl){ 34 QMAKE_CFLAGS_STL_OFF=
33 QMAKE_CFLAGS+= -GX $(CFLAGS_EXTRA) 35 QMAKE_CFLAGS_RTTI_ON= -GR
34} 36 QMAKE_CFLAGS_RTTI_OFF=
35contains(CONFIG,exceptions){ 37QMAKE_CFLAGS_EXCEPTIONS_ON = -GX
36 QMAKE_CFLAGS += -GX 38QMAKE_CFLAGS_EXCEPTIONS_OFF =
37}
38contains(CONFIG,rtti){
39 QMAKE_CFLAGS+= -GR $(CFLAGS_EXTRA)
40}
41 39
42 QMAKE_CXX = $$QMAKE_CC 40 QMAKE_CXX = $$QMAKE_CC
@@ -51,5 +49,10 @@ QMAKE_CXXFLAGS_MT_DLL = $$QMAKE_CFLAGS_MT_DLL
51QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG 49QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG
52 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC 50 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
53 QMAKE_CXXFLAGS_STL= $$QMAKE_CFLAGS_STL 51 QMAKE_CXXFLAGS_STL_ON= $$QMAKE_CFLAGS_STL_ON
52 QMAKE_CXXFLAGS_STL_OFF= $$QMAKE_CFLAGS_STL_OFF
53 QMAKE_CXXFLAGS_RTTI_ON= $$QMAKE_CFLAGS_RTTI_ON
54 QMAKE_CXXFLAGS_RTTI_OFF= $$QMAKE_CFLAGS_RTTI_OFF
55QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON
56QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF
54 57
55 QMAKE_INCDIR = 58 QMAKE_INCDIR =
@@ -59,6 +62,8 @@ QMAKE_LIBDIR_QT = $(QTDIR)\lib
59 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src 62 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src
60 QMAKE_RUN_CC_IMP= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< 63 QMAKE_RUN_CC_IMP= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<
64 QMAKE_RUN_CC_IMP_BATCH= $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<<
61 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src 65 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src
62 QMAKE_RUN_CXX_IMP= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< 66 QMAKE_RUN_CXX_IMP= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $<
67 QMAKE_RUN_CXX_IMP_BATCH= $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<<
63 68
64 QMAKE_LINK = link 69 QMAKE_LINK = link
@@ -95,5 +100,7 @@ QMAKE_COPY = copy
95 QMAKE_MOVE = move 100 QMAKE_MOVE = move
96 QMAKE_DEL_FILE = del 101 QMAKE_DEL_FILE = del
97 QMAKE_DEL_DIR = deltree 102 QMAKE_DEL_DIR = rmdir
103 QMAKE_CHK_DIR_EXISTS= if not exist
104 QMAKE_MKDIR = mkdir
98 105
99 DSP_EXTENSION = .dsp 106 DSP_EXTENSION = .dsp
diff --git a/mkspecs/win32-msvc/qplatformdefs.h b/mkspecs/win32-msvc/qplatformdefs.h
index 76ed8af..d828db8 100644
--- a/mkspecs/win32-msvc/qplatformdefs.h
+++ b/mkspecs/win32-msvc/qplatformdefs.h
@@ -27,5 +27,5 @@
27 27
28#define Q_FS_FAT 28#define Q_FS_FAT
29#ifdef QT_LARGE_FILE_SUPPORT 29#ifdef QT_LARGEFILE_SUPPORT
30 #define QT_STATBUF struct _stati64 // non-ANSI defs 30 #define QT_STATBUF struct _stati64 // non-ANSI defs
31 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs 31 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
@@ -47,5 +47,5 @@
47 #define QT_OPEN ::_open 47 #define QT_OPEN ::_open
48 #define QT_CLOSE ::_close 48 #define QT_CLOSE ::_close
49#ifdef QT_LARGE_FILE_SUPPORT 49#ifdef QT_LARGEFILE_SUPPORT
50 #define QT_LSEEK ::_lseeki64 50 #define QT_LSEEK ::_lseeki64
51 #define QT_TSTAT ::_tstati64 51 #define QT_TSTAT ::_tstati64
diff --git a/mkspecs/win32-msvc/win32app.dsp b/mkspecs/win32-msvc/win32app.dsp
index d09aa86..61d6a4a 100644
--- a/mkspecs/win32-msvc/win32app.dsp
+++ b/mkspecs/win32-msvc/win32app.dsp
@@ -42,5 +42,5 @@ RSC=rc.exe
42# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" 42# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL"
43# PROP Target_Dir "" 43# PROP Target_Dir ""
44# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE 44# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "$$MSVCDSP_WINCONDEF" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE $$PRECOMPILED_FLAGS_REL
45# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 45# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
46# ADD RSC /l 0x409 /d "NDEBUG" 46# ADD RSC /l 0x409 /d "NDEBUG"
@@ -48,6 +48,6 @@ BSC32=bscmake.exe
48# ADD BSC32 /nologo 48# ADD BSC32 /nologo
49LINK32=link.exe 49LINK32=link.exe
50# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION /subsystem:$$MSVCDSP_SUBSYSTEM $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE 50# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE $$PRECOMPILED_OBJECT
51$$MSVCDSP_REGSVR_REL 51$$MSVCDSP_POST_LINK_REL
52 52
53!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" 53!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug"
@@ -63,5 +63,5 @@ $$MSVCDSP_REGSVR_REL
63# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" 63# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB"
64# PROP Target_Dir "" 64# PROP Target_Dir ""
65# ADD CPP $$MSVCDSP_MTDEFD /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG 65# ADD CPP $$MSVCDSP_MTDEFD /W3 $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "$$MSVCDSP_WINCONDEF" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG $$PRECOMPILED_FLAGS_DEB
66# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 66# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
67# ADD RSC /l 0x409 /d "_DEBUG" 67# ADD RSC /l 0x409 /d "_DEBUG"
@@ -69,6 +69,6 @@ BSC32=bscmake.exe
69# ADD BSC32 /nologo 69# ADD BSC32 /nologo
70LINK32=link.exe 70LINK32=link.exe
71# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION /subsystem:$$MSVCDSP_SUBSYSTEM $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG 71# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG $$PRECOMPILED_OBJECT
72$$MSVCDSP_REGSVR_DBG 72$$MSVCDSP_POST_LINK_DBG
73 73
74!ENDIF 74!ENDIF
diff --git a/mkspecs/win32-msvc/win32dll.dsp b/mkspecs/win32-msvc/win32dll.dsp
index 78b68d5..c619db4 100644
--- a/mkspecs/win32-msvc/win32dll.dsp
+++ b/mkspecs/win32-msvc/win32dll.dsp
@@ -43,5 +43,5 @@ RSC=rc.exe
43# PROP Ignore_Export_Lib 1 43# PROP Ignore_Export_Lib 1
44# PROP Target_Dir "" 44# PROP Target_Dir ""
45# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE 45# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE $$PRECOMPILED_FLAGS_REL
46# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 46# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
47# ADD RSC /l 0x409 /d "NDEBUG" 47# ADD RSC /l 0x409 /d "NDEBUG"
@@ -49,6 +49,6 @@ BSC32=bscmake.exe
49# ADD BSC32 /nologo 49# ADD BSC32 /nologo
50LINK32=link.exe 50LINK32=link.exe
51# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE 51# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE $$PRECOMPILED_OBJECT
52$$MSVCDSP_COPY_DLL_REL 52$$MSVCDSP_POST_LINK_REL
53 53
54!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" 54!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug"
@@ -65,5 +65,5 @@ $$MSVCDSP_COPY_DLL_REL
65# PROP Ignore_Export_Lib 1 65# PROP Ignore_Export_Lib 1
66# PROP Target_Dir "" 66# PROP Target_Dir ""
67# ADD CPP $$MSVCDSP_MTDEFD /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG 67# ADD CPP $$MSVCDSP_MTDEFD /W3 $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG $$PRECOMPILED_FLAGS_DEB
68# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 68# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
69# ADD RSC /l 0x409 /d "_DEBUG" 69# ADD RSC /l 0x409 /d "_DEBUG"
@@ -71,6 +71,6 @@ BSC32=bscmake.exe
71# ADD BSC32 /nologo 71# ADD BSC32 /nologo
72LINK32=link.exe 72LINK32=link.exe
73# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG 73# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG $$PRECOMPILED_OBJECT
74$$MSVCDSP_COPY_DLL_DBG 74$$MSVCDSP_POST_LINK_DBG
75 75
76!ENDIF 76!ENDIF
diff --git a/mkspecs/win32-msvc/win32lib.dsp b/mkspecs/win32-msvc/win32lib.dsp
index 70263c0..81d9f5a 100644
--- a/mkspecs/win32-msvc/win32lib.dsp
+++ b/mkspecs/win32-msvc/win32lib.dsp
@@ -41,10 +41,11 @@ RSC=rc.exe
41# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" 41# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL"
42# PROP Target_Dir "" 42# PROP Target_Dir ""
43# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE 43# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_LIB" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE $$PRECOMPILED_FLAGS_REL
44# ADD RSC /l 0x409 /d "NDEBUG" 44# ADD RSC /l 0x409 /d "NDEBUG"
45BSC32=bscmake.exe 45BSC32=bscmake.exe
46# ADD BSC32 /nologo 46# ADD BSC32 /nologo
47LIB32=link.exe -lib 47LIB32=link.exe -lib
48# ADD LIB32 /nologo $$MSVCDSP_TARGET 48# ADD LIB32 /nologo $$MSVCDSP_TARGET $$PRECOMPILED_OBJECT
49$$MSVCDSP_POST_LINK_REL
49 50
50!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" 51!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug"
@@ -60,10 +61,11 @@ LIB32=link.exe -lib
60# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" 61# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB"
61# PROP Target_Dir "" 62# PROP Target_Dir ""
62# ADD CPP $$MSVCDSP_MTDEFD /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG 63# ADD CPP $$MSVCDSP_MTDEFD /W3 $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_LIB" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG $$PRECOMPILED_FLAGS_DEB
63# ADD RSC /l 0x409 /d "_DEBUG" 64# ADD RSC /l 0x409 /d "_DEBUG"
64BSC32=bscmake.exe 65BSC32=bscmake.exe
65# ADD BSC32 /nologo 66# ADD BSC32 /nologo
66LIB32=link.exe -lib 67LIB32=link.exe -lib
67# ADD LIB32 /nologo $$MSVCDSP_TARGET 68# ADD LIB32 /nologo $$MSVCDSP_TARGET $$PRECOMPILED_OBJECT
69$$MSVCDSP_POST_LINK_DBG
68 70
69!ENDIF 71!ENDIF
diff --git a/mkspecs/win32-visage/qmake.conf b/mkspecs/win32-visage/qmake.conf
index cbd0a7f..2db104d 100644
--- a/mkspecs/win32-visage/qmake.conf
+++ b/mkspecs/win32-visage/qmake.conf
@@ -13,13 +13,13 @@ QMAKE_LEXFLAGS =
13 QMAKE_YACC = byacc 13 QMAKE_YACC = byacc
14 QMAKE_YACCFLAGS = -d 14 QMAKE_YACCFLAGS = -d
15 QMAKE_CFLAGS = -Q -Ft -Gd -Gm+ -qrtti=all $(CFLAGS_EXTRA) 15 QMAKE_CFLAGS = -Q -Ft -Gd -Gm+ -qrtti=all $(CFLAGS_EXTRA) $(CFLAGS_EXTRA)
16 QMAKE_CFLAGS_WARN_ON= -W3 16 QMAKE_CFLAGS_WARN_ON= -W3
17 QMAKE_CFLAGS_WARN_OFF= -W0 17 QMAKE_CFLAGS_WARN_OFF= -W0
18 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -Gl+ -O -Oc+) 18 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -Gl+ -O -Oc+))
19 QMAKE_CFLAGS_DEBUG= -Fb* -Ti -Tm 19 QMAKE_CFLAGS_DEBUG= -Fb* -Ti -Tm
20 QMAKE_CFLAGS_YACC= 20 QMAKE_CFLAGS_YACC=
21 21
22 QMAKE_CXX = $$QMAKE_CC 22 QMAKE_CXX = $$QMAKE_CC
23 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA) 23 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(CXXFLAGS_EXTRA) $(CXXFLAGS_EXTRA)
24 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON 24 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
25 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF 25 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
@@ -37,5 +37,5 @@ QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo"$@" $<
37 37
38 QMAKE_LINK = icc -Tdp $(CFLAGS) 38 QMAKE_LINK = icc -Tdp $(CFLAGS)
39 QMAKE_LFLAGS = -nologo -code:RX -data:RW -def -noe $(LFLAGS_EXTRA) 39 QMAKE_LFLAGS = -nologo -code:RX -data:RW -def -noe $(LFLAGS_EXTRA) $(LFLAGS_EXTRA)
40 QMAKE_LFLAGS_RELEASE= -OPTF 40 QMAKE_LFLAGS_RELEASE= -OPTF
41 QMAKE_LFLAGS_DEBUG= -de -br 41 QMAKE_LFLAGS_DEBUG= -de -br
@@ -45,5 +45,5 @@ QMAKE_LFLAGS_CONSOLE_DLL= -DLL
45QMAKE_LFLAGS_WINDOWS_DLL= -DLL 45QMAKE_LFLAGS_WINDOWS_DLL= -DLL
46 46
47 QMAKE_LIBS = $(LIBS_EXTRA) 47 QMAKE_LIBS = $(LIBS_EXTRA) $(LIBS_EXTRA)
48 QMAKE_LIBS_CONSOLE= 48 QMAKE_LIBS_CONSOLE=
49 QMAKE_LIBS_WINDOWS= user32.lib gdi32.lib comdlg32.lib imm32.lib winmm.lib ole32.lib uuid.lib wsock32.lib 49 QMAKE_LIBS_WINDOWS= user32.lib gdi32.lib comdlg32.lib imm32.lib winmm.lib ole32.lib uuid.lib wsock32.lib
diff --git a/mkspecs/win32-watcom/qmake.conf b/mkspecs/win32-watcom/qmake.conf
index fe6f3ed..cbe07bb 100644
--- a/mkspecs/win32-watcom/qmake.conf
+++ b/mkspecs/win32-watcom/qmake.conf
@@ -2,9 +2,11 @@
2# $Id$ 2# $Id$
3# 3#
4# qmake configuration for Win32/Watcom C++ 4# qmake configuration for win32-watcom
5#
6# Written for Watcom C++, now OpenWatcom.
5# 7#
6 8
7 TEMPLATE = app 9 TEMPLATE = app
8 CONFIG += qt warn_on release 10 CONFIG += qt warn_on release link_prl
9 11
10 QMAKE_CC = wcl386 12 QMAKE_CC = wcl386
@@ -63,3 +65,5 @@ QMAKE_COPY = copy
63 QMAKE_MOVE = move 65 QMAKE_MOVE = move
64 QMAKE_DEL_FILE = del 66 QMAKE_DEL_FILE = del
65 QMAKE_DEL_DIR = deltree 67 QMAKE_DEL_DIR = rmdir
68 QMAKE_CHK_DIR_EXISTS= test -d
69 QMAKE_MKDIR = mkdir -p