-rw-r--r-- | mkspecs/irix-cc/qmake.conf | 8 | ||||
-rw-r--r-- | mkspecs/irix-cc/qplatformdefs.h | 4 |
2 files changed, 9 insertions, 3 deletions
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 | |||
@@ -1,113 +1,115 @@ | |||
1 | # | 1 | # |
2 | # $Id$ | 2 | # $Id$ |
3 | # | 3 | # |
4 | # qmake configuration for irix-n32 | 4 | # qmake configuration for irix-cc |
5 | # | 5 | # |
6 | # From cc(1): | 6 | # From cc(1): |
7 | # -n32 | 7 | # -n32 |
8 | # Generates a (new) 32-bit object. This defaults to -mips3 if | 8 | # Generates a (new) 32-bit object. This defaults to -mips3 if |
9 | # -mips4 has not been specified. | 9 | # -mips4 has not been specified. |
10 | # -LANG: ... | 10 | # -LANG: ... |
11 | # The language feature option group controls the source language | 11 | # The language feature option group controls the source language |
12 | # interpretation assumed by the compiler. The individual controls | 12 | # interpretation assumed by the compiler. The individual controls |
13 | # in this group are as follows: | 13 | # in this group are as follows: |
14 | # ansi-for-init-scope [ = ( ON|OFF ) ] | 14 | # ansi-for-init-scope [ = ( ON|OFF ) ] |
15 | # Enables or disables the ANSI scoping rules for for-init | 15 | # Enables or disables the ANSI scoping rules for for-init |
16 | # declarations (the scope of the name declared extends to | 16 | # declarations (the scope of the name declared extends to |
17 | # the end of the for statement). This enables the behavior | 17 | # the end of the for statement). This enables the behavior |
18 | # that is required by the C++ standard. The default value | 18 | # that is required by the C++ standard. The default value |
19 | # is OFF, which is the ARM behavior (the scope of the name | 19 | # is OFF, which is the ARM behavior (the scope of the name |
20 | # declared extends to the end of the block enclosing the for | 20 | # declared extends to the end of the block enclosing the for |
21 | # statement). | 21 | # statement). |
22 | # bool [ = ( ON|OFF ) ] | 22 | # bool [ = ( ON|OFF ) ] |
23 | # Enables or disables the predefined bool data type, along | 23 | # Enables or disables the predefined bool data type, along |
24 | # with the predefined values true and false. Use this option | 24 | # with the predefined values true and false. Use this option |
25 | # only to suppress this type in old code that defines bool | 25 | # only to suppress this type in old code that defines bool |
26 | # itself. Because this option changes the mangling of function | 26 | # itself. Because this option changes the mangling of function |
27 | # names with bool parameters, all files comprising a program | 27 | # names with bool parameters, all files comprising a program |
28 | # should be compiled with consistent options. | 28 | # should be compiled with consistent options. |
29 | # Default is ON. | 29 | # Default is ON. |
30 | # The _BOOL feature macro can be used in #ifdefs to do conditional | 30 | # The _BOOL feature macro can be used in #ifdefs to do conditional |
31 | # compilation based on whether or not this option is enabled. | 31 | # compilation based on whether or not this option is enabled. |
32 | # std | 32 | # std |
33 | # Enables use of the standard C++ library and standard- | 33 | # Enables use of the standard C++ library and standard- |
34 | # conforming iostream library. Specifying this flag also | 34 | # conforming iostream library. Specifying this flag also |
35 | # triggers other standard-conforming behavior, such as the | 35 | # triggers other standard-conforming behavior, such as the |
36 | # new rules for the scope of for loop initializers. | 36 | # new rules for the scope of for loop initializers. |
37 | # | 37 | # |
38 | 38 | ||
39 | MAKEFILE_GENERATOR= UNIX | 39 | MAKEFILE_GENERATOR= UNIX |
40 | TEMPLATE = app | 40 | TEMPLATE = app |
41 | CONFIG += qt warn_on release | 41 | CONFIG += qt warn_on release link_prl |
42 | 42 | ||
43 | QMAKE_CC = cc | 43 | QMAKE_CC = cc |
44 | QMAKE_LEX = flex | 44 | QMAKE_LEX = flex |
45 | QMAKE_LEXFLAGS = | 45 | QMAKE_LEXFLAGS = |
46 | QMAKE_YACC = yacc | 46 | QMAKE_YACC = yacc |
47 | QMAKE_YACCFLAGS = -d | 47 | QMAKE_YACCFLAGS = -d |
48 | QMAKE_CFLAGS = -n32 -woff 1021,1209,1233,1314,1355,1375,1506 $(CFLAGS_EXTRA) | 48 | QMAKE_CFLAGS = -n32 -woff 1021,1209,1233,1314,1355,1375,1506 $(CFLAGS_EXTRA) |
49 | QMAKE_CFLAGS_DEPS= -M | 49 | QMAKE_CFLAGS_DEPS= -M |
50 | QMAKE_CFLAGS_WARN_ON= -fullwarn | 50 | QMAKE_CFLAGS_WARN_ON= -fullwarn |
51 | QMAKE_CFLAGS_WARN_OFF= | 51 | QMAKE_CFLAGS_WARN_OFF= |
52 | QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2 -OPT:Olimit=3000) | 52 | QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2 -OPT:Olimit=3000) |
53 | QMAKE_CFLAGS_DEBUG= -g | 53 | QMAKE_CFLAGS_DEBUG= -g |
54 | QMAKE_CFLAGS_SHLIB= | 54 | QMAKE_CFLAGS_SHLIB= |
55 | QMAKE_CFLAGS_YACC= -woff 1110,1174,3262 | 55 | QMAKE_CFLAGS_YACC= -woff 1110,1174,3262 |
56 | QMAKE_CFLAGS_THREAD= | 56 | QMAKE_CFLAGS_THREAD= |
57 | 57 | ||
58 | QMAKE_CXX = CC | 58 | QMAKE_CXX = CC |
59 | QMAKE_CXXFLAGS = -n32 -woff 1021,1209,1233,1314,1355,1375,1506,1681,1682,3496 $(CXXFLAGS_EXTRA) | 59 | QMAKE_CXXFLAGS = -n32 -woff 1021,1209,1233,1314,1355,1375,1424,1506,1681,1682,3496 $(CXXFLAGS_EXTRA) |
60 | QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS | 60 | QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS |
61 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | 61 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON |
62 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | 62 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF |
63 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | 63 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE |
64 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | 64 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG |
65 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | 65 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB |
66 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | 66 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC |
67 | QMAKE_CXXFLAGS_THREAD= | 67 | QMAKE_CXXFLAGS_THREAD= |
68 | 68 | ||
69 | QMAKE_INCDIR = | 69 | QMAKE_INCDIR = |
70 | QMAKE_LIBDIR = | 70 | QMAKE_LIBDIR = |
71 | QMAKE_INCDIR_X11= | 71 | QMAKE_INCDIR_X11= |
72 | QMAKE_LIBDIR_X11= | 72 | QMAKE_LIBDIR_X11= |
73 | QMAKE_INCDIR_QT = $(QTDIR)/include | 73 | QMAKE_INCDIR_QT = $(QTDIR)/include |
74 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | 74 | QMAKE_LIBDIR_QT = $(QTDIR)/lib |
75 | QMAKE_INCDIR_OPENGL= | 75 | QMAKE_INCDIR_OPENGL= |
76 | QMAKE_LIBDIR_OPENGL= | 76 | QMAKE_LIBDIR_OPENGL= |
77 | 77 | ||
78 | QMAKE_LINK = CC | 78 | QMAKE_LINK = CC |
79 | QMAKE_LINK_SHLIB= CC | 79 | QMAKE_LINK_SHLIB= CC |
80 | QMAKE_LFLAGS = -n32 $(LFLAGS_EXTRA) | 80 | QMAKE_LFLAGS = -n32 $(LFLAGS_EXTRA) |
81 | QMAKE_LFLAGS_RELEASE= | 81 | QMAKE_LFLAGS_RELEASE= |
82 | QMAKE_LFLAGS_DEBUG= | 82 | QMAKE_LFLAGS_DEBUG= |
83 | QMAKE_LFLAGS_SHLIB= -shared | 83 | QMAKE_LFLAGS_SHLIB= -shared |
84 | QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB | 84 | QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB |
85 | QMAKE_LFLAGS_SONAME= -Wl,-soname, | 85 | QMAKE_LFLAGS_SONAME= -Wl,-soname, |
86 | QMAKE_LFLAGS_THREAD= | 86 | QMAKE_LFLAGS_THREAD= |
87 | QMAKE_RPATH = -Wl,-rpath, | 87 | QMAKE_RPATH = -Wl,-rpath, |
88 | 88 | ||
89 | QMAKE_LIBS = $(LIBS_EXTRA) | 89 | QMAKE_LIBS = $(LIBS_EXTRA) |
90 | QMAKE_LIBS_DYNLOAD= | 90 | QMAKE_LIBS_DYNLOAD= |
91 | QMAKE_LIBS_X11 = -lXext -lX11 -lm | 91 | QMAKE_LIBS_X11 = -lXext -lX11 -lm |
92 | QMAKE_LIBS_X11SM= -lSM -lICE | 92 | QMAKE_LIBS_X11SM= -lSM -lICE |
93 | QMAKE_LIBS_QT = -lqt | 93 | QMAKE_LIBS_QT = -lqt |
94 | QMAKE_LIBS_QT_THREAD= -lqt-mt | 94 | QMAKE_LIBS_QT_THREAD= -lqt-mt |
95 | QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lm | 95 | QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lm |
96 | QMAKE_LIBS_OPENGL_QT= -lGL -lXmu | 96 | QMAKE_LIBS_OPENGL_QT= -lGL -lXmu |
97 | QMAKE_LIBS_THREAD= -lpthread | 97 | QMAKE_LIBS_THREAD= -lpthread |
98 | 98 | ||
99 | QMAKE_MOC = $(QTDIR)/bin/moc | 99 | QMAKE_MOC = $(QTDIR)/bin/moc |
100 | QMAKE_UIC = $(QTDIR)/bin/uic | 100 | QMAKE_UIC = $(QTDIR)/bin/uic |
101 | 101 | ||
102 | QMAKE_AR = CC -ar -o | 102 | QMAKE_AR = CC -ar -o |
103 | QMAKE_RANLIB = | 103 | QMAKE_RANLIB = |
104 | 104 | ||
105 | QMAKE_CLEAN = -r $(OBJECTS_DIR)so_locations $(OBJECTS_DIR)ii_files | 105 | QMAKE_CLEAN = -r $(OBJECTS_DIR)so_locations $(OBJECTS_DIR)ii_files |
106 | 106 | ||
107 | QMAKE_TAR = tar -cf | 107 | QMAKE_TAR = tar -cf |
108 | QMAKE_GZIP = gzip -9f | 108 | QMAKE_GZIP = gzip -9f |
109 | 109 | ||
110 | QMAKE_COPY = cp -f | 110 | QMAKE_COPY = cp -f |
111 | QMAKE_MOVE = mv -f | 111 | QMAKE_MOVE = mv -f |
112 | QMAKE_DEL_FILE = rm -f | 112 | QMAKE_DEL_FILE = rm -f |
113 | QMAKE_DEL_DIR = rmdir | 113 | QMAKE_DEL_DIR = rmdir |
114 | QMAKE_CHK_DIR_EXISTS= test -d | ||
115 | QMAKE_MKDIR = mkdir -p | ||
diff --git a/mkspecs/irix-cc/qplatformdefs.h b/mkspecs/irix-cc/qplatformdefs.h index c6eaa2f..8666daf 100644 --- a/mkspecs/irix-cc/qplatformdefs.h +++ b/mkspecs/irix-cc/qplatformdefs.h | |||
@@ -14,75 +14,79 @@ | |||
14 | 14 | ||
15 | 15 | ||
16 | #ifdef QT_THREAD_SUPPORT | 16 | #ifdef QT_THREAD_SUPPORT |
17 | #include <pthread.h> | 17 | #include <pthread.h> |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | #include <dirent.h> | 20 | #include <dirent.h> |
21 | #include <fcntl.h> | 21 | #include <fcntl.h> |
22 | #include <grp.h> | 22 | #include <grp.h> |
23 | #include <pwd.h> | 23 | #include <pwd.h> |
24 | #include <signal.h> | 24 | #include <signal.h> |
25 | #include <dlfcn.h> | 25 | #include <dlfcn.h> |
26 | 26 | ||
27 | #include <sys/types.h> | 27 | #include <sys/types.h> |
28 | #include <sys/ioctl.h> | 28 | #include <sys/ioctl.h> |
29 | #include <sys/ipc.h> | 29 | #include <sys/ipc.h> |
30 | #include <sys/time.h> | 30 | #include <sys/time.h> |
31 | #include <sys/shm.h> | 31 | #include <sys/shm.h> |
32 | #include <sys/socket.h> | 32 | #include <sys/socket.h> |
33 | #include <sys/stat.h> | 33 | #include <sys/stat.h> |
34 | #include <sys/wait.h> | 34 | #include <sys/wait.h> |
35 | 35 | ||
36 | // DNS header files are not fully covered by X/Open specifications. | 36 | // DNS header files are not fully covered by X/Open specifications. |
37 | // In particular nothing is said about res_* :/ | 37 | // In particular nothing is said about res_* :/ |
38 | // On IRIX header files <netinet/in.h> and <arpa/nameser.h> are not | 38 | // On IRIX header files <netinet/in.h> and <arpa/nameser.h> are not |
39 | // included by <resolv.h>. Note that <arpa/nameser.h> must be included | 39 | // included by <resolv.h>. Note that <arpa/nameser.h> must be included |
40 | // before <resolv.h>. | 40 | // before <resolv.h>. |
41 | #include <netinet/in.h> | 41 | #include <netinet/in.h> |
42 | #include <arpa/nameser.h> | 42 | #include <arpa/nameser.h> |
43 | #include <resolv.h> | 43 | #include <resolv.h> |
44 | 44 | ||
45 | 45 | ||
46 | #if !defined(QT_NO_COMPAT) | 46 | #if !defined(QT_NO_COMPAT) |
47 | #define QT_STATBUF struct stat | 47 | #define QT_STATBUF struct stat |
48 | #define QT_STATBUF4TSTATstruct stat | 48 | #define QT_STATBUF4TSTATstruct stat |
49 | #define QT_STAT ::stat | 49 | #define QT_STAT ::stat |
50 | #define QT_FSTAT ::fstat | 50 | #define QT_FSTAT ::fstat |
51 | #define QT_STAT_REG S_IFREG | 51 | #define QT_STAT_REG S_IFREG |
52 | #define QT_STAT_DIR S_IFDIR | 52 | #define QT_STAT_DIR S_IFDIR |
53 | #define QT_STAT_MASK S_IFMT | 53 | #define QT_STAT_MASK S_IFMT |
54 | #define QT_STAT_LNK S_IFLNK | 54 | #define QT_STAT_LNK S_IFLNK |
55 | #define QT_FILENO fileno | 55 | #define QT_FILENO fileno |
56 | #define QT_OPEN ::open | 56 | #define QT_OPEN ::open |
57 | #define QT_CLOSE ::close | 57 | #define QT_CLOSE ::close |
58 | #define QT_LSEEK ::lseek | 58 | #define QT_LSEEK ::lseek |
59 | #define QT_READ ::read | 59 | #define QT_READ ::read |
60 | #define QT_WRITE ::write | 60 | #define QT_WRITE ::write |
61 | #define QT_ACCESS ::access | 61 | #define QT_ACCESS ::access |
62 | #define QT_GETCWD ::getcwd | 62 | #define QT_GETCWD ::getcwd |
63 | #define QT_CHDIR ::chdir | 63 | #define QT_CHDIR ::chdir |
64 | #define QT_MKDIR ::mkdir | 64 | #define QT_MKDIR ::mkdir |
65 | #define QT_RMDIR ::rmdir | 65 | #define QT_RMDIR ::rmdir |
66 | #define QT_OPEN_RDONLY O_RDONLY | 66 | #define QT_OPEN_RDONLY O_RDONLY |
67 | #define QT_OPEN_WRONLY O_WRONLY | 67 | #define QT_OPEN_WRONLY O_WRONLY |
68 | #define QT_OPEN_RDWR O_RDWR | 68 | #define QT_OPEN_RDWR O_RDWR |
69 | #define QT_OPEN_CREAT O_CREAT | 69 | #define QT_OPEN_CREAT O_CREAT |
70 | #define QT_OPEN_TRUNC O_TRUNC | 70 | #define QT_OPEN_TRUNC O_TRUNC |
71 | #define QT_OPEN_APPEND O_APPEND | 71 | #define QT_OPEN_APPEND O_APPEND |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #define QT_SIGNAL_RETTYPEvoid | 74 | #define QT_SIGNAL_RETTYPEvoid |
75 | #define QT_SIGNAL_ARGS int | 75 | #define QT_SIGNAL_ARGS int |
76 | #define QT_SIGNAL_IGNORESIG_IGN | 76 | #define QT_SIGNAL_IGNORESIG_IGN |
77 | 77 | ||
78 | #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500) | ||
79 | #define QT_SOCKLEN_T size_t | ||
80 | #else | ||
78 | #define QT_SOCKLEN_T int | 81 | #define QT_SOCKLEN_T int |
82 | #endif | ||
79 | 83 | ||
80 | #if 0 | 84 | #if 0 |
81 | // on Irix 6.5 and better only - but how to check for it? | 85 | // on Irix 6.5 and better only - but how to check for it? |
82 | #if defined(_SGIAPI) | 86 | #if defined(_SGIAPI) |
83 | #define QT_SNPRINTF ::snprintf | 87 | #define QT_SNPRINTF ::snprintf |
84 | #define QT_VSNPRINTF ::vsnprintf | 88 | #define QT_VSNPRINTF ::vsnprintf |
85 | #endif | 89 | #endif |
86 | #endif | 90 | #endif |
87 | 91 | ||
88 | #endif // QPLATFORMDEFS_H | 92 | #endif // QPLATFORMDEFS_H |