summaryrefslogtreecommitdiff
path: root/mkspecs/linux-ecc-64
Unidiff
Diffstat (limited to 'mkspecs/linux-ecc-64') (more/less context) (ignore whitespace changes)
-rw-r--r--mkspecs/linux-ecc-64/qmake.conf86
-rw-r--r--mkspecs/linux-ecc-64/qplatformdefs.h106
2 files changed, 192 insertions, 0 deletions
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