-rw-r--r-- | mkspecs/solaris-cc-64/qmake.conf | 100 | ||||
-rw-r--r-- | mkspecs/solaris-cc-64/qplatformdefs.h | 87 |
2 files changed, 187 insertions, 0 deletions
diff --git a/mkspecs/solaris-cc-64/qmake.conf b/mkspecs/solaris-cc-64/qmake.conf new file mode 100644 index 0000000..17b26b0 --- a/dev/null +++ b/mkspecs/solaris-cc-64/qmake.conf | |||
@@ -0,0 +1,100 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for Sun WorkShop 5.0, Forte Developer 6, | ||
5 | # and Sun ONE Studio 7 on Solaris | ||
6 | # | ||
7 | # From the standards(5) manual page: | ||
8 | # The XNS4 specification is safe for use only in ILP32 (32-bit) | ||
9 | # environments and should not be used for LP64 (64-bit) | ||
10 | # application environments. Use XNS5, which has LP64-clean | ||
11 | # interfaces that are portable across ILP32 and LP64 environments. | ||
12 | # [...] | ||
13 | # For platforms supporting the LP64 (64-bit) programming environment | ||
14 | # where the SC5.0 Compilers have been installed, SUSv2-conforming LP64 | ||
15 | # applications using XNS5 library calls should be built with command | ||
16 | # lines of the form: | ||
17 | # c89 $(getconf XBS5_LP64_OFF64_CFLAGS) -D_XOPEN_SOURCE=500 \ | ||
18 | # $(getconf XBS5_LP64_OFF64_LDFLAGS) foo.c -o foo \ | ||
19 | # $(getconf XBS5_LP64_OFF64_LIBS) -lxnet | ||
20 | # So it appears that _XOPEN_SOURCE=500 should be defined when building | ||
21 | # 64-bit applications (on Solaris 7 and better). But then __EXTENSIONS__ | ||
22 | # should be defined as well to recover all the default system interface. | ||
23 | # | ||
24 | |||
25 | MAKEFILE_GENERATOR= UNIX | ||
26 | TEMPLATE = app | ||
27 | CONFIG += qt warn_on release | ||
28 | |||
29 | QMAKE_CC = cc | ||
30 | QMAKE_LEX = flex | ||
31 | QMAKE_LEXFLAGS = | ||
32 | QMAKE_YACC = yacc | ||
33 | QMAKE_YACCFLAGS = -d | ||
34 | QMAKE_CFLAGS = -xarch=v9 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ | ||
35 | QMAKE_CFLAGS_DEPS= -xM | ||
36 | QMAKE_CFLAGS_WARN_ON= | ||
37 | QMAKE_CFLAGS_WARN_OFF= -w | ||
38 | QMAKE_CFLAGS_RELEASE= -O | ||
39 | QMAKE_CFLAGS_DEBUG= -g | ||
40 | QMAKE_CFLAGS_SHLIB= -KPIC | ||
41 | QMAKE_CFLAGS_YACC= | ||
42 | QMAKE_CFLAGS_THREAD= -mt | ||
43 | |||
44 | QMAKE_CXX = CC | ||
45 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS | ||
46 | QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS | ||
47 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
48 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
49 | QMAKE_CXXFLAGS_RELEASE= -O2 | ||
50 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
51 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
52 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
53 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
54 | |||
55 | QMAKE_INCDIR = | ||
56 | QMAKE_LIBDIR = | ||
57 | QMAKE_INCDIR_X11= /usr/openwin/include | ||
58 | QMAKE_LIBDIR_X11= /usr/openwin/lib | ||
59 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
60 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
61 | QMAKE_INCDIR_OPENGL= /usr/openwin/include | ||
62 | QMAKE_LIBDIR_OPENGL= /usr/openwin/lib | ||
63 | |||
64 | QMAKE_LINK = CC | ||
65 | QMAKE_LINK_SHLIB= CC | ||
66 | QMAKE_LFLAGS = -xarch=v9 | ||
67 | QMAKE_LFLAGS_RELEASE= | ||
68 | QMAKE_LFLAGS_DEBUG= | ||
69 | QMAKE_LFLAGS_SHLIB= -G | ||
70 | QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB | ||
71 | QMAKE_LFLAGS_SONAME= -h$$LITERAL_WHITESPACE | ||
72 | QMAKE_LFLAGS_THREAD= -mt | ||
73 | QMAKE_RPATH = -R | ||
74 | |||
75 | QMAKE_LIBS = | ||
76 | QMAKE_LIBS_DYNLOAD= -ldl | ||
77 | QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl | ||
78 | QMAKE_LIBS_X11SM= -lSM -lICE | ||
79 | QMAKE_LIBS_NIS = | ||
80 | QMAKE_LIBS_QT = -lqt | ||
81 | QMAKE_LIBS_QT_THREAD= -lqt-mt | ||
82 | QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu | ||
83 | QMAKE_LIBS_OPENGL_QT= -lGL -lXmu | ||
84 | QMAKE_LIBS_THREAD= -lpthread | ||
85 | |||
86 | QMAKE_MOC = $(QTDIR)/bin/moc | ||
87 | QMAKE_UIC = $(QTDIR)/bin/uic | ||
88 | |||
89 | QMAKE_AR = CC -xar -o | ||
90 | QMAKE_RANLIB = | ||
91 | |||
92 | QMAKE_CLEAN = -r $(OBJECTS_DIR)Templates.DB $(OBJECTS_DIR)SunWS_cache | ||
93 | |||
94 | QMAKE_TAR = tar -cf | ||
95 | QMAKE_GZIP = gzip -9f | ||
96 | |||
97 | QMAKE_COPY = cp -f | ||
98 | QMAKE_MOVE = mv -f | ||
99 | QMAKE_DEL_FILE = rm -f | ||
100 | QMAKE_DEL_DIR = rmdir | ||
diff --git a/mkspecs/solaris-cc-64/qplatformdefs.h b/mkspecs/solaris-cc-64/qplatformdefs.h new file mode 100644 index 0000000..30bc56d --- a/dev/null +++ b/mkspecs/solaris-cc-64/qplatformdefs.h | |||
@@ -0,0 +1,87 @@ | |||
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/filio.h> | ||
30 | #include <sys/ipc.h> | ||
31 | #include <sys/time.h> | ||
32 | #include <sys/shm.h> | ||
33 | #include <sys/socket.h> | ||
34 | #include <sys/stat.h> | ||
35 | #include <sys/wait.h> | ||
36 | |||
37 | // DNS header files are not fully covered by X/Open specifications. | ||
38 | // In particular nothing is said about res_* :/ | ||
39 | // On Solaris header files <netinet/in.h> and <arpa/nameser.h> are not | ||
40 | // included by <resolv.h>. Note that <arpa/nameser.h> must be included | ||
41 | // before <resolv.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 | // On 64-bit platforms (Solaris 7 and better) sockets use socklen_t. | ||
80 | #define QT_SOCKLEN_T socklen_t | ||
81 | |||
82 | // Supported on 64-bit platforms (Solaris 7 and better). | ||
83 | #define QT_SNPRINTF ::snprintf | ||
84 | #define QT_VSNPRINTF ::vsnprintf | ||
85 | |||
86 | |||
87 | #endif // QPLATFORMDEFS_H | ||