author | zecke <zecke> | 2004-07-18 19:32:20 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-07-18 19:32:20 (UTC) |
commit | 8795812a0d763742a5273f356c35313af0fed84d (patch) (unidiff) | |
tree | 34b7259e1595e53e1fa2069d7d79bbdef67293e8 | |
parent | 8e8fcd65b8d8657650728bae604c5a34dc31338e (diff) | |
download | opie-8795812a0d763742a5273f356c35313af0fed84d.zip opie-8795812a0d763742a5273f356c35313af0fed84d.tar.gz opie-8795812a0d763742a5273f356c35313af0fed84d.tar.bz2 |
-CHECK if DIR exist added to qmake.conf's
-use arm-linux-g++ for linking now
hopefully not removed anything important
Added python tool to opiefy mkspecs
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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -54,2 +54,3 @@ 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 | ||
@@ -78 +79,3 @@ 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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -17,3 +17,5 @@ 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 | ||
20 | QMAKE_CFLAGS_WARN_ON = | ||
19 | QMAKE_CFLAGS_WARN_OFF= | 21 | QMAKE_CFLAGS_WARN_OFF= |
@@ -23,3 +25,3 @@ 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 | ||
@@ -61,2 +63,3 @@ 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 | ||
@@ -85 +88,3 @@ 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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -23,3 +23,3 @@ 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 | ||
@@ -51,4 +51,4 @@ QMAKE_LINK_SHLIB_CMD = makeC++SharedLib -p 0 \ | |||
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) |
@@ -61,2 +61,3 @@ 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 | ||
@@ -85 +86,3 @@ 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 | |||
@@ -97,3 +97,3 @@ | |||
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 |
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 | |||
@@ -10,3 +10,3 @@ 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 | ||
@@ -82 +82,3 @@ 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 | |||
@@ -5,2 +5,4 @@ | |||
5 | # | 5 | # |
6 | # Written for Qt/X11 on Cygwin, using the POSIX API. | ||
7 | # | ||
6 | 8 | ||
@@ -8,3 +10,3 @@ 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 |
10 | QMAKE_INCREMENTAL_STYLE = sublib | 12 | QMAKE_INCREMENTAL_STYLE = sublib |
@@ -14,3 +16,3 @@ 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 |
@@ -56,3 +58,5 @@ 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) |
@@ -80 +84,3 @@ 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 | |||
@@ -44,5 +44,6 @@ | |||
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> |
@@ -50,2 +51,3 @@ | |||
50 | #include <sys/wait.h> | 51 | #include <sys/wait.h> |
52 | #include <windows.h> | ||
51 | 53 | ||
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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -8,3 +10,5 @@ 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 | ||
13 | DEFINES += __DARWIN_X11__ | ||
10 | 14 | ||
@@ -19,3 +23,3 @@ 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 |
@@ -23,2 +27,3 @@ 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 |
@@ -51,5 +56,10 @@ QMAKE_LFLAGS_RELEASE = | |||
51 | QMAKE_LFLAGS_DEBUG= | 56 | QMAKE_LFLAGS_DEBUG= |
52 | QMAKE_LFLAGS_SHLIB= -dynamiclib | 57 | QMAKE_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 | |||
62 | QMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE} | ||
63 | QMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE} | ||
64 | |||
55 | QMAKE_RPATH = | 65 | QMAKE_RPATH = |
@@ -80 +90,3 @@ 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 | |||
@@ -81,2 +81,4 @@ | |||
81 | 81 | ||
82 | #define QT_AOUT_UNDERSCORE | ||
83 | |||
82 | 84 | ||
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 | |||
@@ -10,3 +10,3 @@ 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 | ||
@@ -75 +75,3 @@ 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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -80 +80,3 @@ 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 | |||
@@ -51,3 +51,3 @@ 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 | ||
@@ -60,3 +60,3 @@ 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) |
@@ -68,3 +68,4 @@ QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE | |||
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 |
@@ -90,4 +91,4 @@ 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 |
@@ -96,5 +97,7 @@ 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 |
@@ -103,4 +106,4 @@ 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 |
@@ -121 +124,3 @@ 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 | |||
@@ -24,5 +24,3 @@ | |||
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 | ||
@@ -39,3 +37,11 @@ | |||
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. |
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 | |||
@@ -51,3 +51,3 @@ 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 | ||
@@ -68,3 +68,3 @@ QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE | |||
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 |
@@ -95,4 +95,6 @@ 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 |
@@ -121 +123,3 @@ 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 | |||
@@ -39,3 +39,11 @@ | |||
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. |
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 | |||
@@ -30,3 +30,3 @@ 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 | ||
@@ -37,8 +37,8 @@ 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= |
@@ -47,3 +47,4 @@ QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE | |||
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 |
@@ -69,3 +70,3 @@ 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 |
@@ -75,4 +76,6 @@ 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 |
@@ -82,4 +85,4 @@ 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 |
@@ -100 +103,3 @@ 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 | |||
@@ -39,3 +39,11 @@ | |||
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. |
@@ -85,2 +93,3 @@ extern "C" int res_init(); | |||
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 | |||
@@ -31,3 +31,3 @@ 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 | ||
@@ -47,3 +47,3 @@ QMAKE_CFLAGS_YACC = | |||
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 |
@@ -74,4 +74,5 @@ 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 |
@@ -97 +98,3 @@ 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 | |||
@@ -5,5 +5,4 @@ | |||
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 | # |
@@ -12,3 +11,3 @@ 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 | ||
@@ -30,3 +29,3 @@ QMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE | |||
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 |
@@ -42,3 +41,3 @@ 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 |
@@ -57,3 +56,6 @@ 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 | ||
@@ -64,7 +66,7 @@ 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 | ||
@@ -83 +85,3 @@ 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 | |||
@@ -39,5 +39,11 @@ | |||
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. |
@@ -86,2 +92,3 @@ extern "C" int res_init(); | |||
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. | ||
50 | extern "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. | ||
50 | extern "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 | |||
@@ -6,3 +6,3 @@ | |||
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 | # |
@@ -11,3 +11,3 @@ 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 | ||
@@ -76,2 +76,3 @@ 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 | |||
@@ -3,3 +3,3 @@ | |||
3 | # | 3 | # |
4 | # qmake configuration for irix-64 | 4 | # qmake configuration for irix-cc-64 |
5 | # | 5 | # |
@@ -40,3 +40,3 @@ 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 | ||
@@ -58,3 +58,3 @@ QMAKE_CFLAGS_THREAD = | |||
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 |
@@ -113 +113,3 @@ 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 | |||
@@ -77,3 +77,7 @@ | |||
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 | ||
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 | |||
@@ -3,3 +3,3 @@ | |||
3 | # | 3 | # |
4 | # qmake configuration for irix-o32 | 4 | # qmake configuration for irix-cc-o32 |
5 | # | 5 | # |
@@ -14,3 +14,3 @@ 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 | ||
@@ -22,3 +22,3 @@ 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 |
@@ -87 +87,3 @@ 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 | |||
@@ -3,3 +3,3 @@ | |||
3 | # | 3 | # |
4 | # qmake configuration for irix-n32 | 4 | # qmake configuration for irix-cc |
5 | # | 5 | # |
@@ -40,3 +40,3 @@ 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 | ||
@@ -58,3 +58,3 @@ QMAKE_CFLAGS_THREAD = | |||
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 |
@@ -113 +113,3 @@ 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 | |||
@@ -77,3 +77,7 @@ | |||
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 | ||
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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -50,3 +50,3 @@ 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 |
@@ -56,3 +56,3 @@ 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= |
@@ -65,3 +65,3 @@ QMAKE_LIBS_QT_THREAD = -lqt-mt | |||
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 |
@@ -84 +84,3 @@ 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 | |||
@@ -81,3 +81,7 @@ | |||
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 | ||
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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -8,3 +10,3 @@ 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 | ||
@@ -75 +77,3 @@ 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 | ||
13 | QMAKE_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 | ||
82 | QMAKE_COPY_FILE = $(COPY) | ||
83 | QMAKE_COPY_DIR = $(COPY) -r | ||
84 | QMAKE_MOVE = mv -f | ||
85 | QMAKE_DEL_FILE = rm -f | ||
86 | QMAKE_DEL_DIR = rmdir | ||
87 | QMAKE_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 | |||
@@ -8,4 +8,4 @@ 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 |
10 | QMAKE_INCREMENTAL_STYLE = sublib | 10 | QMAKE_INCREMENTAL_STYLE = sublib |
11 | 11 | ||
@@ -16,2 +16,5 @@ QMAKE_YACC = yacc | |||
16 | QMAKE_YACCFLAGS = -d | 16 | QMAKE_YACCFLAGS = -d |
17 | QMAKE_YACCFLAGS_MANGLE = -p $base -b $base | ||
18 | QMAKE_YACC_HEADER = $base.tab.h | ||
19 | QMAKE_YACC_SOURCE = $base.tab.c | ||
17 | QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) | 20 | QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) |
@@ -78,2 +81,4 @@ QMAKE_GZIP = gzip -9f | |||
78 | QMAKE_COPY = cp -f | 81 | QMAKE_COPY = cp -f |
82 | QMAKE_COPY_FILE = $(COPY) | ||
83 | QMAKE_COPY_DIR = $(COPY) -r | ||
79 | QMAKE_MOVE = mv -f | 84 | QMAKE_MOVE = mv -f |
@@ -82 +87,4 @@ QMAKE_DEL_DIR = rmdir | |||
82 | QMAKE_STRIP = strip | 87 | QMAKE_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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -8,3 +10,3 @@ 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 | ||
@@ -82 +84,3 @@ 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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -15,3 +17,3 @@ 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 | ||
@@ -89 +91,3 @@ 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 | ||
82 | QMAKE_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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -8,3 +10,3 @@ 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 | ||
@@ -80 +82,3 @@ 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 | ||
12 | QMAKE_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 | ||
84 | QMAKE_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 | |||
@@ -5,3 +5,3 @@ | |||
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> |
@@ -12,2 +12,4 @@ | |||
12 | <string>ttxt</string> | 12 | <string>ttxt</string> |
13 | <key>CFBundleExecutable</key> | ||
14 | <string>@EXECUTABLE@</string> | ||
13 | <key>NOTE</key> | 15 | <key>NOTE</key> |
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 | |||
@@ -8,6 +8,6 @@ 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 |
10 | QMAKE_INCREMENTAL_STYLE = sublibs | 10 | QMAKE_INCREMENTAL_STYLE = sublibs |
11 | 11 | ||
12 | QMAKE_CC = $(TB)cc | 12 | QMAKE_CC = cc |
13 | QMAKE_LEX = flex | 13 | QMAKE_LEX = flex |
@@ -16,2 +16,5 @@ QMAKE_YACC = yacc | |||
16 | QMAKE_YACCFLAGS = -d | 16 | QMAKE_YACCFLAGS = -d |
17 | QMAKE_YACCFLAGS_MANGLE = -p $base -b $base | ||
18 | QMAKE_YACC_HEADER = $base.tab.h | ||
19 | QMAKE_YACC_SOURCE = $base.tab.c | ||
17 | QMAKE_RESOURCE = /Developer/Tools/Rez | 20 | QMAKE_RESOURCE = /Developer/Tools/Rez |
@@ -21,3 +24,3 @@ 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 |
@@ -27,3 +30,3 @@ 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) |
@@ -37,3 +40,2 @@ QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC | |||
37 | 40 | ||
38 | QMAKE_INCDIR = /usr/local/include | ||
39 | QMAKE_LIBDIR = | 41 | QMAKE_LIBDIR = |
@@ -46,12 +48,18 @@ 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 |
53 | QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace | 55 | QMAKE_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 | |||
62 | QMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE} | ||
63 | QMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE} | ||
64 | |||
57 | QMAKE_RPATH = | 65 | QMAKE_RPATH = |
@@ -80 +88,3 @@ 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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -18,3 +18,3 @@ 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 |
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 | |||
@@ -5,3 +5,3 @@ | |||
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> |
@@ -12,2 +12,4 @@ | |||
12 | <string>ttxt</string> | 12 | <string>ttxt</string> |
13 | <key>CFBundleExecutable</key> | ||
14 | <string>@EXECUTABLE@</string> | ||
13 | <key>NOTE</key> | 15 | <key>NOTE</key> |
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 | |||
@@ -8,5 +8,5 @@ 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 |
@@ -20,3 +20,3 @@ 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 |
@@ -26,3 +26,3 @@ 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) |
@@ -49,7 +49,7 @@ 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 |
52 | QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace | 52 | QMAKE_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= |
@@ -79 +79,3 @@ 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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -80 +80,3 @@ 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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -81 +81,3 @@ 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 @@ | |||
1 | import 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 | |||
12 | add_map = { "QMAKE_CFLAGS" : "$(CFLAGS_EXTRA)", | ||
13 | "QMAKE_CXXFLAGS" : "$(CXXFLAGS_EXTRA)", | ||
14 | "QMAKE_LFLAGS" : "$(LFLAGS_EXTRA)", | ||
15 | "QMAKE_LIBS" : "$(LIBS_EXTRA)" } | ||
16 | |||
17 | rep_map = { "QMAKE_CFLAGS_RELEASE" : ["$(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE),", ")"] } | ||
18 | |||
19 | |||
20 | def 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 | |||
33 | def 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 | |||
58 | def 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 | |||
74 | def 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 | |||
81 | if __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 | |||
@@ -5,3 +5,3 @@ | |||
5 | # | 5 | # |
6 | # QNX RTOS v6 with X11 | 6 | # Written for QNX RTOS v6 with X11. |
7 | # | 7 | # |
@@ -10,3 +10,3 @@ 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 | ||
@@ -58,3 +58,3 @@ 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 |
@@ -81 +81,3 @@ 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 | |||
@@ -8,3 +8,3 @@ MAKEFILE_GENERATOR = UNIX | |||
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt warn_on release | 9 | CONFIG += qt link_prl |
10 | 10 | ||
@@ -41,2 +41,4 @@ 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 | ||
@@ -57,2 +59,3 @@ QMAKE_LIBS_QT_THREAD = -lqte-mt | |||
57 | QMAKE_LIBS_THREAD = | 59 | QMAKE_LIBS_THREAD = |
60 | QMAKE_LIBS_QTOPIA= -lqtopia -lqpe | ||
58 | 61 | ||
@@ -71 +74,3 @@ 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 | |||
@@ -8,3 +8,3 @@ MAKEFILE_GENERATOR = UNIX | |||
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt warn_on release | 9 | CONFIG += qt link_prl |
10 | 10 | ||
@@ -42,5 +42,7 @@ 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) |
@@ -61,2 +63,3 @@ 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 |
@@ -76 +79,3 @@ 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 | |||
@@ -8,3 +8,3 @@ MAKEFILE_GENERATOR = UNIX | |||
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt warn_on release | 9 | CONFIG += qt link_prl |
10 | 10 | ||
@@ -42,2 +42,4 @@ 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 | ||
@@ -61,2 +63,3 @@ 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 |
@@ -76 +79,4 @@ QMAKE_DEL_FILE = rm -f | |||
76 | QMAKE_DEL_DIR = rmdir | 79 | QMAKE_DEL_DIR = rmdir |
80 | QMAKE_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 | |||
@@ -8,3 +8,3 @@ MAKEFILE_GENERATOR = UNIX | |||
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt warn_on release | 9 | CONFIG += qt link_prl |
10 | 10 | ||
@@ -42,5 +42,7 @@ 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) |
@@ -52,3 +54,3 @@ QMAKE_LFLAGS_SONAME = -Wl,-soname, | |||
52 | QMAKE_LFLAGS_THREAD = | 54 | QMAKE_LFLAGS_THREAD = |
53 | QMAKE_RPATH = -Wl,-rpath-link, | 55 | QMAKE_RPATH = -Wl,-rpath, |
54 | 56 | ||
@@ -61,2 +63,3 @@ 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 |
@@ -76 +79,3 @@ 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 | |||
@@ -8,3 +8,3 @@ MAKEFILE_GENERATOR = UNIX | |||
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt warn_on release | 9 | CONFIG += qt link_prl |
10 | 10 | ||
@@ -42,2 +42,4 @@ 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 | ||
@@ -61,2 +63,3 @@ 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 |
@@ -76 +79,3 @@ 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 | |||
@@ -22,3 +22,3 @@ 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 |
@@ -52,3 +52,3 @@ 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= |
@@ -61,3 +61,3 @@ QMAKE_RPATH = -Wl,-rpath, | |||
61 | 61 | ||
62 | QMAKE_LIBS = $(LIBS_EXTRA) | 62 | QMAKE_LIBS = $(LIBS_EXTRA) |
63 | QMAKE_LIBS_DYNLOAD = -ldl | 63 | QMAKE_LIBS_DYNLOAD = -ldl |
@@ -83 +83,4 @@ QMAKE_DEL_FILE = rm -f | |||
83 | QMAKE_DEL_DIR = rmdir | 83 | QMAKE_DEL_DIR = rmdir |
84 | QMAKE_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 | |||
@@ -8,3 +8,3 @@ MAKEFILE_GENERATOR = UNIX | |||
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt warn_on release | 9 | CONFIG += qt link_prl |
10 | 10 | ||
@@ -24,3 +24,3 @@ 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) |
@@ -42,5 +42,7 @@ 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) |
@@ -61,2 +63,3 @@ 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 |
@@ -76 +79,3 @@ 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 | |||
@@ -15,3 +15,3 @@ 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 |
@@ -25,3 +25,3 @@ QMAKE_CFLAGS_THREAD = -D_REENTRANT | |||
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 |
@@ -45,3 +45,3 @@ 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= |
@@ -54,3 +54,3 @@ QMAKE_RPATH = -Wl,-rpath, | |||
54 | 54 | ||
55 | QMAKE_LIBS = $(LIBS_EXTRA) | 55 | QMAKE_LIBS = $(LIBS_EXTRA) |
56 | QMAKE_LIBS_DYNLOAD = -ldl | 56 | QMAKE_LIBS_DYNLOAD = -ldl |
@@ -76 +76,3 @@ 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 | |||
@@ -8,3 +8,3 @@ MAKEFILE_GENERATOR = UNIX | |||
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt warn_on release | 9 | CONFIG += qt link_prl |
10 | 10 | ||
@@ -42,2 +42,4 @@ 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 | ||
@@ -61,2 +63,3 @@ 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 |
@@ -76 +79,3 @@ 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 | |||
@@ -15,3 +15,3 @@ 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 |
@@ -76 +76,3 @@ 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/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 | |||
@@ -8,3 +8,3 @@ 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 |
@@ -26,3 +26,4 @@ QMAKE_CFLAGS_THREAD = -D_REENTRANT | |||
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) |
28 | DEFINES += QWS | ||
28 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | 29 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON |
@@ -43,2 +44,4 @@ 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 | ||
@@ -60,5 +63,5 @@ 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= |
@@ -78,4 +81,3 @@ 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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -18,3 +18,3 @@ QMAKE_CFLAGS_WARN_ON = -w1 | |||
18 | QMAKE_CFLAGS_WARN_OFF = -w0 | 18 | QMAKE_CFLAGS_WARN_OFF = -w0 |
19 | QMAKE_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 |
@@ -25,3 +25,3 @@ QMAKE_CFLAGS_THREAD = -D_REENTRANT -WC,-bm | |||
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 |
@@ -39,2 +39,4 @@ 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 | ||
@@ -42,3 +44,3 @@ 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= |
@@ -51,3 +53,3 @@ QMAKE_RPATH = | |||
51 | 53 | ||
52 | QMAKE_LIBS = $(LIBS_EXTRA) | 54 | QMAKE_LIBS = -lsocket $(LIBS_EXTRA) |
53 | QMAKE_LIBS_DYNLOAD= | 55 | QMAKE_LIBS_DYNLOAD= |
@@ -55,2 +57,3 @@ 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= |
@@ -70 +73,3 @@ 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 | |||
@@ -8,3 +8,3 @@ MAKEFILE_GENERATOR = UNIX | |||
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt warn_on release | 9 | CONFIG += qt link_prl |
10 | 10 | ||
@@ -42,2 +42,4 @@ 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 | ||
@@ -45,3 +47,3 @@ 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= |
@@ -54,3 +56,3 @@ 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= |
@@ -61,2 +63,3 @@ 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 |
@@ -76,2 +79,3 @@ 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 | |||
@@ -8,3 +8,3 @@ MAKEFILE_GENERATOR = UNIX | |||
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt warn_on release | 9 | CONFIG += qt link_prl |
10 | 10 | ||
@@ -42,2 +42,4 @@ 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 | ||
@@ -45,3 +47,3 @@ 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= |
@@ -54,3 +56,3 @@ 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= |
@@ -61,2 +63,3 @@ 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 |
@@ -76,2 +79,3 @@ 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 | |||
@@ -8,3 +8,3 @@ MAKEFILE_GENERATOR = UNIX | |||
8 | TEMPLATE = app | 8 | TEMPLATE = app |
9 | CONFIG += qt warn_on release | 9 | CONFIG += qt link_prl |
10 | 10 | ||
@@ -42,2 +42,4 @@ 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 | ||
@@ -54,3 +56,3 @@ 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 |
@@ -61,2 +63,3 @@ 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 |
@@ -76 +79,3 @@ 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 | |||
@@ -8,2 +8,5 @@ | |||
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 | ||
@@ -79,5 +82,7 @@ | |||
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 |
@@ -86,2 +91,3 @@ typedef unsigned int useconds_t; | |||
86 | extern "C" int usleep(useconds_t); | 91 | extern "C" int usleep(useconds_t); |
92 | extern "C" int gethostname(char *, int); | ||
87 | #endif | 93 | #endif |
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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -8,3 +10,3 @@ 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 | ||
@@ -54,3 +56,3 @@ 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 | ||
@@ -81 +83,3 @@ 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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -8,3 +10,3 @@ 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 | ||
@@ -54,3 +56,3 @@ 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 | ||
@@ -81 +83,3 @@ 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 | |||
@@ -5,2 +5,4 @@ | |||
5 | # | 5 | # |
6 | # Written for SCO OpenServer with UDK. | ||
7 | # | ||
6 | # -Wf,--diag_suppress,838 | 8 | # -Wf,--diag_suppress,838 |
@@ -11,3 +13,3 @@ 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 | ||
@@ -25,3 +27,2 @@ 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 | ||
@@ -35,3 +36,2 @@ 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 | ||
@@ -54,3 +54,2 @@ 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 | ||
@@ -61,9 +60,6 @@ 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 |
@@ -71,3 +67,3 @@ QMAKE_UIC = $(QTDIR)/bin/uic | |||
71 | 67 | ||
72 | QMAKE_AR = ar cqs | 68 | QMAKE_AR = ar cq |
73 | QMAKE_RANLIB = | 69 | QMAKE_RANLIB = |
@@ -81 +77,3 @@ 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 | |||
@@ -9,7 +9,2 @@ | |||
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> |
@@ -33,2 +28,3 @@ | |||
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> |
@@ -82,3 +78,3 @@ | |||
82 | 78 | ||
83 | #define QT_SOCKLEN_T int | 79 | #define QT_SOCKLEN_T size_t |
84 | 80 | ||
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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -23,3 +23,2 @@ 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 | ||
@@ -34,3 +33,2 @@ 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 | ||
@@ -76 +74,3 @@ 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 | |||
@@ -89,2 +89,6 @@ | |||
89 | 89 | ||
90 | // SCO OpenServer redefines raise -> kill | ||
91 | #if defined(raise) | ||
92 | # undef raise | ||
93 | #endif | ||
90 | 94 | ||
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 | |||
@@ -3,4 +3,5 @@ | |||
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 | # |
@@ -26,3 +27,3 @@ 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 | ||
@@ -30,3 +31,3 @@ 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 |
@@ -83,3 +84,3 @@ 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 | ||
@@ -100 +101,3 @@ 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 | |||
@@ -3,4 +3,5 @@ | |||
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 | # |
@@ -9,3 +10,3 @@ 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 | ||
@@ -13,3 +14,3 @@ 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 |
@@ -66,3 +67,3 @@ 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 | ||
@@ -83 +84,3 @@ 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 | |||
@@ -8,2 +8,3 @@ | |||
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 | ||
@@ -79,5 +80,7 @@ | |||
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 |
@@ -86,2 +89,3 @@ typedef unsigned int useconds_t; | |||
86 | extern "C" int usleep(useconds_t); | 89 | extern "C" int usleep(useconds_t); |
90 | extern "C" int gethostname(char *, int); | ||
87 | #endif | 91 | #endif |
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 | |||
@@ -10,3 +10,3 @@ | |||
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: |
@@ -31,3 +31,3 @@ 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 | ||
@@ -35,3 +35,3 @@ 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 |
@@ -62,3 +62,3 @@ 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 |
@@ -66,3 +66,3 @@ 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 | ||
@@ -88,3 +88,3 @@ 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 | ||
@@ -103 +103,3 @@ 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 | |||
@@ -8,2 +8,5 @@ | |||
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 | ||
@@ -16,3 +19,3 @@ | |||
16 | #ifdef QT_THREAD_SUPPORT | 19 | #ifdef QT_THREAD_SUPPORT |
17 | #include <thread.h> | 20 | #include <pthread.h> |
18 | #endif | 21 | #endif |
@@ -24,2 +27,3 @@ | |||
24 | #include <signal.h> | 27 | #include <signal.h> |
28 | #include <dlfcn.h> | ||
25 | 29 | ||
@@ -45,2 +49,3 @@ | |||
45 | 49 | ||
50 | #if !defined(QT_NO_COMPAT) | ||
46 | #define QT_STATBUF struct stat | 51 | #define QT_STATBUF struct stat |
@@ -70,2 +75,3 @@ | |||
70 | #define QT_OPEN_APPEND O_APPEND | 75 | #define QT_OPEN_APPEND O_APPEND |
76 | #endif | ||
71 | 77 | ||
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 | |||
@@ -10,3 +10,3 @@ | |||
10 | # because we don't use -isystem. | 10 | # because we don't use -isystem. |
11 | # | 11 | # |
12 | 12 | ||
@@ -14,3 +14,3 @@ 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 | ||
@@ -18,3 +18,3 @@ 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 |
@@ -71,3 +71,3 @@ 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 | ||
@@ -86 +86,3 @@ 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 | |||
@@ -8,2 +8,5 @@ | |||
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 | ||
@@ -79,5 +82,7 @@ | |||
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 |
@@ -86,2 +91,3 @@ typedef unsigned int useconds_t; | |||
86 | extern "C" int usleep(useconds_t); | 91 | extern "C" int usleep(useconds_t); |
92 | extern "C" int gethostname(char *, int); | ||
87 | #endif | 93 | #endif |
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 | |||
@@ -26,3 +26,3 @@ 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 |
@@ -30,3 +30,3 @@ 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 |
@@ -37,3 +37,3 @@ QMAKE_CFLAGS_THREAD = -mt | |||
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 |
@@ -58,3 +58,3 @@ 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= |
@@ -67,3 +67,3 @@ 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 |
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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -56,5 +56,5 @@ QMAKE_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 |
@@ -64,3 +64,3 @@ 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 | ||
@@ -79 +79,3 @@ 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 | |||
@@ -8,3 +8,3 @@ 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 | ||
@@ -64,3 +64,3 @@ 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 | ||
@@ -79 +79,3 @@ 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 | |||
@@ -15,3 +15,3 @@ 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 |
@@ -19,3 +19,3 @@ 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 |
@@ -25,3 +25,3 @@ QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses | |||
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 |
@@ -45,3 +45,3 @@ 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= |
@@ -52,3 +52,3 @@ QMAKE_LFLAGS_DEBUG = | |||
52 | 52 | ||
53 | QMAKE_LIBS = $(LIBS_EXTRA) | 53 | QMAKE_LIBS = $(LIBS_EXTRA) $(LIBS_EXTRA) |
54 | QMAKE_LIBS_DYNLOAD= -ldl | 54 | QMAKE_LIBS_DYNLOAD= -ldl |
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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -11,3 +13,3 @@ 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 | ||
@@ -55,2 +57,3 @@ QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE | |||
55 | QMAKE_LFLAGS_THREAD= -Kthread | 57 | QMAKE_LFLAGS_THREAD= -Kthread |
58 | QMAKE_RPATH = -R | ||
56 | 59 | ||
@@ -63,3 +66,3 @@ 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 |
@@ -81 +84,3 @@ 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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -8,3 +10,3 @@ 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 | ||
@@ -54,2 +56,3 @@ QMAKE_LFLAGS_SONAME = | |||
54 | QMAKE_LFLAGS_THREAD= | 56 | QMAKE_LFLAGS_THREAD= |
57 | QMAKE_RPATH = -Wl,-R, | ||
55 | 58 | ||
@@ -61,6 +64,4 @@ 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 |
@@ -80 +81,3 @@ 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 | |||
@@ -3,3 +3,5 @@ | |||
3 | # | 3 | # |
4 | # qmake configuration for Win32/Borland C++ | 4 | # qmake configuration for win32-borland |
5 | # | ||
6 | # Written for Borland C++. | ||
5 | # | 7 | # |
@@ -8,3 +10,3 @@ 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 |
@@ -32,9 +34,8 @@ 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){ | 39 | QMAKE_CFLAGS_EXCEPTIONS_ON = |
38 | QMAKE_CFLAGS+= -RT- $(CFLAGS_EXTRA) | 40 | QMAKE_CFLAGS_EXCEPTIONS_OFF = -x- |
39 | } | ||
40 | 41 | ||
@@ -52,2 +53,8 @@ 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 | ||
58 | QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON | ||
59 | QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF | ||
53 | 60 | ||
@@ -72,3 +79,3 @@ QMAKE_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 |
@@ -90,3 +97,3 @@ 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 | ||
@@ -96,2 +103,5 @@ 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 | |||
@@ -30,100 +30,114 @@ | |||
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 |
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 | |||
@@ -3,8 +3,15 @@ | |||
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 | |||
14 | exists( $(QTDIR)\.qtwinconfig ) { | ||
15 | include( $(QTDIR)\.qtwinconfig ) | ||
16 | } | ||
10 | 17 | ||
@@ -15,9 +22,14 @@ 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 | ||
33 | QMAKE_CFLAGS_EXCEPTIONS_ON = -fexceptions | ||
34 | QMAKE_CFLAGS_EXCEPTIONS_OFF = -fno-exceptions | ||
23 | 35 | ||
@@ -31,5 +43,11 @@ 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 | ||
47 | QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON | ||
48 | QMAKE_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 | ||
@@ -41,9 +59,13 @@ QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | |||
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 |
47 | QMAKE_LFLAGS_CONSOLE_DLL= -Wl,-subsystem,console | 66 | QMAKE_LFLAGS_CONSOLE_DLL= -Wl,-subsystem,console -shared -Wl,--export-all-symbols |
48 | QMAKE_LFLAGS_WINDOWS_DLL= -Wl,-subsystem,windows | 67 | QMAKE_LFLAGS_WINDOWS_DLL= -Wl,-subsystem,windows -shared -Wl,--export-all-symbols |
68 | QMAKE_LINK_OBJECT_MAX= 10 | ||
69 | QMAKE_LINK_OBJECT_SCRIPT= object_ld_script | ||
70 | QMAKE_LINK_OBJMOC_SCRIPT= objmoc_ld_script | ||
49 | 71 | ||
@@ -51,14 +73,16 @@ 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 | ||
@@ -69,2 +93,6 @@ 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) | ||
25 | typedef 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 | |||
18 | extern int _fmode; | ||
19 | extern "C" int* __p__fmode(void); /* To access the dll _fmode */ | ||
20 | extern int _CRT_fmode; | ||
21 | |||
22 | static 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. */ | ||
57 | static 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 | |||
117 | extern char __RUNTIME_PSEUDO_RELOC_LIST__; | ||
118 | extern char __RUNTIME_PSEUDO_RELOC_LIST_END__; | ||
119 | extern char _image_base__; | ||
120 | |||
121 | typedef struct { | ||
122 | DWORD addend; | ||
123 | DWORD target; | ||
124 | } runtime_pseudo_reloc; | ||
125 | |||
126 | static 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 | |||
136 | void _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 | ||
148 | extern "C" void __set_app_type(int); | ||
149 | #endif /* __MSVCRT__ */ | ||
150 | |||
151 | #define ISSPACE(a)(a == ' ' || a == '\t') | ||
152 | |||
153 | int 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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -8,3 +10,3 @@ 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 |
@@ -23,4 +25,4 @@ 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 |
@@ -30,12 +32,8 @@ QMAKE_CFLAGS_MT_DLLDBG = -MDd | |||
30 | QMAKE_CFLAGS_YACC= | 32 | QMAKE_CFLAGS_YACC= |
31 | 33 | QMAKE_CFLAGS_STL_ON= -GX | |
32 | contains(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= |
35 | contains(CONFIG,exceptions){ | 37 | QMAKE_CFLAGS_EXCEPTIONS_ON = -GX |
36 | QMAKE_CFLAGS += -GX | 38 | QMAKE_CFLAGS_EXCEPTIONS_OFF = |
37 | } | ||
38 | contains(CONFIG,rtti){ | ||
39 | QMAKE_CFLAGS+= -GR $(CFLAGS_EXTRA) | ||
40 | } | ||
41 | 39 | ||
@@ -52,3 +50,8 @@ QMAKE_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 | ||
55 | QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON | ||
56 | QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF | ||
54 | 57 | ||
@@ -60,4 +63,6 @@ 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 | ||
@@ -76,5 +81,5 @@ 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 | ||
@@ -96,3 +101,5 @@ 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 | ||
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 | |||
@@ -28,3 +28,3 @@ | |||
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 |
@@ -48,3 +48,3 @@ | |||
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 |
@@ -83,2 +83,4 @@ | |||
83 | 83 | ||
84 | typedef int mode_t; | ||
85 | |||
84 | 86 | ||
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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -8,4 +10,4 @@ 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 | ||
@@ -24,20 +26,14 @@ 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 | |
34 | contains(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= |
37 | contains(CONFIG,exceptions){ | 37 | QMAKE_CFLAGS_EXCEPTIONS_ON = -GX |
38 | QMAKE_CFLAGS += -GX | 38 | QMAKE_CFLAGS_EXCEPTIONS_OFF = |
39 | } | ||
40 | contains(CONFIG,rtti){ | ||
41 | QMAKE_CFLAGS+= -GR $(CFLAGS_EXTRA) | ||
42 | } | ||
43 | 39 | ||
@@ -45,3 +41,3 @@ 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 |
@@ -53,6 +49,9 @@ QMAKE_CXXFLAGS_MT_DLL = $$QMAKE_CFLAGS_MT_DLL | |||
53 | QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG | 49 | QMAKE_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 | ||
55 | QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON | ||
56 | QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF | ||
58 | 57 | ||
@@ -64,4 +63,6 @@ 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 | ||
@@ -79,3 +80,3 @@ 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 |
@@ -84,3 +85,3 @@ 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 |
@@ -100,5 +101,7 @@ 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 | |||
@@ -28,3 +28,3 @@ | |||
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 |
@@ -48,3 +48,3 @@ | |||
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 |
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 | |||
@@ -3,3 +3,5 @@ | |||
3 | # | 3 | # |
4 | # qmake configuration for Win32/Microsoft C++ | 4 | # qmake configuration for win32-msvc |
5 | # | ||
6 | # Written for Microsoft C++. | ||
5 | # | 7 | # |
@@ -8,3 +10,3 @@ 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 |
@@ -17,3 +19,3 @@ 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 |
@@ -30,12 +32,8 @@ QMAKE_CFLAGS_MT_DLLDBG = -MDd | |||
30 | QMAKE_CFLAGS_YACC= | 32 | QMAKE_CFLAGS_YACC= |
31 | 33 | QMAKE_CFLAGS_STL_ON= -GX | |
32 | contains(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= |
35 | contains(CONFIG,exceptions){ | 37 | QMAKE_CFLAGS_EXCEPTIONS_ON = -GX |
36 | QMAKE_CFLAGS += -GX | 38 | QMAKE_CFLAGS_EXCEPTIONS_OFF = |
37 | } | ||
38 | contains(CONFIG,rtti){ | ||
39 | QMAKE_CFLAGS+= -GR $(CFLAGS_EXTRA) | ||
40 | } | ||
41 | 39 | ||
@@ -52,3 +50,8 @@ QMAKE_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 | ||
55 | QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON | ||
56 | QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF | ||
54 | 57 | ||
@@ -60,4 +63,6 @@ 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 | ||
@@ -96,3 +101,5 @@ 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 | ||
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 | |||
@@ -28,3 +28,3 @@ | |||
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 |
@@ -48,3 +48,3 @@ | |||
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 |
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 | |||
@@ -43,3 +43,3 @@ RSC=rc.exe | |||
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 |
@@ -49,4 +49,4 @@ BSC32=bscmake.exe | |||
49 | LINK32=link.exe | 49 | LINK32=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 | ||
@@ -64,3 +64,3 @@ $$MSVCDSP_REGSVR_REL | |||
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 |
@@ -70,4 +70,4 @@ BSC32=bscmake.exe | |||
70 | LINK32=link.exe | 70 | LINK32=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 | ||
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 | |||
@@ -44,3 +44,3 @@ RSC=rc.exe | |||
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 |
@@ -50,4 +50,4 @@ BSC32=bscmake.exe | |||
50 | LINK32=link.exe | 50 | LINK32=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 | ||
@@ -66,3 +66,3 @@ $$MSVCDSP_COPY_DLL_REL | |||
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 |
@@ -72,4 +72,4 @@ BSC32=bscmake.exe | |||
72 | LINK32=link.exe | 72 | LINK32=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 | ||
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 | |||
@@ -42,3 +42,3 @@ RSC=rc.exe | |||
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" |
@@ -47,3 +47,4 @@ BSC32=bscmake.exe | |||
47 | LIB32=link.exe -lib | 47 | LIB32=link.exe -lib |
48 | # ADD LIB32 /nologo $$MSVCDSP_TARGET | 48 | # ADD LIB32 /nologo $$MSVCDSP_TARGET $$PRECOMPILED_OBJECT |
49 | $$MSVCDSP_POST_LINK_REL | ||
49 | 50 | ||
@@ -61,3 +62,3 @@ LIB32=link.exe -lib | |||
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" |
@@ -66,3 +67,4 @@ BSC32=bscmake.exe | |||
66 | LIB32=link.exe -lib | 67 | LIB32=link.exe -lib |
67 | # ADD LIB32 /nologo $$MSVCDSP_TARGET | 68 | # ADD LIB32 /nologo $$MSVCDSP_TARGET $$PRECOMPILED_OBJECT |
69 | $$MSVCDSP_POST_LINK_DBG | ||
68 | 70 | ||
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 | |||
@@ -14,6 +14,6 @@ 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 |
@@ -22,3 +22,3 @@ QMAKE_CFLAGS_YACC = | |||
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 |
@@ -38,3 +38,3 @@ QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo"$@" $< | |||
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 |
@@ -46,3 +46,3 @@ QMAKE_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= |
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 | |||
@@ -3,3 +3,5 @@ | |||
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 | # |
@@ -7,3 +9,3 @@ | |||
7 | TEMPLATE = app | 9 | TEMPLATE = app |
8 | CONFIG += qt warn_on release | 10 | CONFIG += qt warn_on release link_prl |
9 | 11 | ||
@@ -64,2 +66,4 @@ 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 | ||