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