summaryrefslogtreecommitdiff
path: root/mkspecs/linux-icc
authorkergoth <kergoth>2002-11-01 00:24:02 (UTC)
committer kergoth <kergoth>2002-11-01 00:24:02 (UTC)
commit4c5b7d437a5bf71c17941202395c7e56cdcc900b (patch) (unidiff)
tree86e50799cc73d68c54e8f7a73d4ee4790c119584 /mkspecs/linux-icc
parent5042e3cf0d3514552769e441f5aad590c8eaf967 (diff)
downloadopie-4c5b7d437a5bf71c17941202395c7e56cdcc900b.zip
opie-4c5b7d437a5bf71c17941202395c7e56cdcc900b.tar.gz
opie-4c5b7d437a5bf71c17941202395c7e56cdcc900b.tar.bz2
Adding spec files for qmake :)
Diffstat (limited to 'mkspecs/linux-icc') (more/less context) (ignore whitespace changes)
-rw-r--r--mkspecs/linux-icc/qmake.conf82
-rw-r--r--mkspecs/linux-icc/qplatformdefs.h106
2 files changed, 188 insertions, 0 deletions
diff --git a/mkspecs/linux-icc/qmake.conf b/mkspecs/linux-icc/qmake.conf
new file mode 100644
index 0000000..29ef3e7
--- a/dev/null
+++ b/mkspecs/linux-icc/qmake.conf
@@ -0,0 +1,82 @@
1#
2# $Id$
3#
4# qmake configuration for Intel C++ 5.0.1, 6.0, and 7.0 for Linux
5#
6
7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app
9 CONFIG += qt warn_on release
10
11 QMAKE_CC = icc
12 QMAKE_LEX = flex
13 QMAKE_LEXFLAGS =
14 QMAKE_YACC = yacc
15 QMAKE_YACCFLAGS = -d
16 QMAKE_CFLAGS =
17 QMAKE_CFLAGS_DEPS= -M
18 QMAKE_CFLAGS_WARN_ON=
19 QMAKE_CFLAGS_WARN_OFF= -w
20 QMAKE_CFLAGS_RELEASE= -O2
21 QMAKE_CFLAGS_DEBUG= -g
22 QMAKE_CFLAGS_SHLIB= -KPIC
23 QMAKE_CFLAGS_YACC=
24 QMAKE_CFLAGS_THREAD= -D_REENTRANT
25
26 QMAKE_CXX = icpc
27 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
28 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
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 = icpc
47 QMAKE_LINK_SHLIB= icpc
48 QMAKE_LFLAGS =
49 QMAKE_LFLAGS_RELEASE=
50 QMAKE_LFLAGS_DEBUG=
51 QMAKE_LFLAGS_SHLIB= -shared
52 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
53 QMAKE_LFLAGS_SONAME= -Qoption,ld,-soname,
54 QMAKE_LFLAGS_THREAD=
55 QMAKE_RPATH = -Qoption,ld,-rpath,
56
57 QMAKE_LIBS =
58 QMAKE_LIBS_DYNLOAD= -ldl
59 QMAKE_LIBS_X11 = -lXext -lX11 -lm
60 QMAKE_LIBS_X11SM= -lSM -lICE
61 QMAKE_LIBS_NIS = -lnsl
62 QMAKE_LIBS_QT = -lqt
63 QMAKE_LIBS_QT_THREAD= -lqt-mt
64 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu
65 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
66 QMAKE_LIBS_THREAD= -lpthread
67
68 QMAKE_MOC = $(QTDIR)/bin/moc
69 QMAKE_UIC = $(QTDIR)/bin/uic
70
71 QMAKE_AR = ar cqs
72 QMAKE_RANLIB =
73
74 QMAKE_CLEAN = -r $(OBJECTS_DIR)/ti_files
75
76 QMAKE_TAR = tar -cf
77 QMAKE_GZIP = gzip -9f
78
79 QMAKE_COPY = cp -f
80 QMAKE_MOVE = mv -f
81 QMAKE_DEL_FILE = rm -f
82 QMAKE_DEL_DIR = rmdir
diff --git a/mkspecs/linux-icc/qplatformdefs.h b/mkspecs/linux-icc/qplatformdefs.h
new file mode 100644
index 0000000..e25bc1e
--- a/dev/null
+++ b/mkspecs/linux-icc/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