summaryrefslogtreecommitdiff
path: root/mkspecs/irix-cc-o32
authorkergoth <kergoth>2002-11-01 00:24:02 (UTC)
committer kergoth <kergoth>2002-11-01 00:24:02 (UTC)
commit4c5b7d437a5bf71c17941202395c7e56cdcc900b (patch) (unidiff)
tree86e50799cc73d68c54e8f7a73d4ee4790c119584 /mkspecs/irix-cc-o32
parent5042e3cf0d3514552769e441f5aad590c8eaf967 (diff)
downloadopie-4c5b7d437a5bf71c17941202395c7e56cdcc900b.zip
opie-4c5b7d437a5bf71c17941202395c7e56cdcc900b.tar.gz
opie-4c5b7d437a5bf71c17941202395c7e56cdcc900b.tar.bz2
Adding spec files for qmake :)
Diffstat (limited to 'mkspecs/irix-cc-o32') (more/less context) (ignore whitespace changes)
-rw-r--r--mkspecs/irix-cc-o32/qmake.conf87
-rw-r--r--mkspecs/irix-cc-o32/qplatformdefs.h88
2 files changed, 175 insertions, 0 deletions
diff --git a/mkspecs/irix-cc-o32/qmake.conf b/mkspecs/irix-cc-o32/qmake.conf
new file mode 100644
index 0000000..b04ce09
--- a/dev/null
+++ b/mkspecs/irix-cc-o32/qmake.conf
@@ -0,0 +1,87 @@
1#
2# $Id$
3#
4# qmake configuration for irix-o32
5#
6# From cc(1):
7 # -o32 or -32
8 # Generates an (old) 32-bit object. See the o32(5) man page for
9 # option descriptions and details. This defaults to -mips2 if
10 # -mips1 has not been specified.
11#
12
13 MAKEFILE_GENERATOR= UNIX
14 TEMPLATE = app
15 CONFIG += qt warn_on release
16
17 QMAKE_CC = cc
18 QMAKE_LEX = flex
19 QMAKE_LEXFLAGS =
20 QMAKE_YACC = yacc
21 QMAKE_YACCFLAGS = -d
22 QMAKE_CFLAGS_DEPS= -M
23 QMAKE_CFLAGS = -o32 -woff 3203,3260,3672
24 QMAKE_CFLAGS_WARN_ON= -fullwarn
25 QMAKE_CFLAGS_WARN_OFF=
26 QMAKE_CFLAGS_RELEASE= -O2 -Olimit 3000
27 QMAKE_CFLAGS_DEBUG= -g
28 QMAKE_CFLAGS_SHLIB=
29 QMAKE_CFLAGS_YACC= -woff 3203,3262
30 QMAKE_CFLAGS_THREAD=
31
32 QMAKE_CXX = CC
33 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
34 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
35 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
36 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
37 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
38 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
39 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
40 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
41 QMAKE_CXXFLAGS_THREAD=
42
43 QMAKE_INCDIR =
44 QMAKE_LIBDIR =
45 QMAKE_INCDIR_X11=
46 QMAKE_LIBDIR_X11=
47 QMAKE_INCDIR_QT = $(QTDIR)/include
48 QMAKE_LIBDIR_QT = $(QTDIR)/lib
49 QMAKE_INCDIR_OPENGL=
50 QMAKE_LIBDIR_OPENGL=
51
52 QMAKE_LINK = CC
53 QMAKE_LINK_SHLIB= CC
54 QMAKE_LFLAGS = -o32
55 QMAKE_LFLAGS_RELEASE=
56 QMAKE_LFLAGS_DEBUG=
57 QMAKE_LFLAGS_SHLIB= -shared
58 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
59 QMAKE_LFLAGS_SONAME= -Wl,-soname,
60 QMAKE_LFLAGS_THREAD=
61 QMAKE_RPATH = -Wl,-rpath,
62
63 QMAKE_LIBS =
64 QMAKE_LIBS_DYNLOAD=
65 QMAKE_LIBS_X11 = -lXext -lX11 -lm
66 QMAKE_LIBS_X11SM= -lSM -lICE
67 QMAKE_LIBS_QT = -lqt
68 QMAKE_LIBS_QT_THREAD= -lqt-mt
69 QMAKE_LIBS_OPENGL= -lGLU -lGL -lXmu -lm
70 QMAKE_LIBS_OPENGL_QT= -lGL -lXmu
71 QMAKE_LIBS_THREAD= -lpthread
72
73 QMAKE_MOC = $(QTDIR)/bin/moc
74 QMAKE_UIC = $(QTDIR)/bin/uic
75
76 QMAKE_AR = ar cq
77 QMAKE_RANLIB =
78
79 QMAKE_CLEAN = -r $(OBJECTS_DIR)so_locations $(OBJECTS_DIR)ii_files
80
81 QMAKE_TAR = tar -cf
82 QMAKE_GZIP = gzip -9f
83
84 QMAKE_COPY = cp -f
85 QMAKE_MOVE = mv -f
86 QMAKE_DEL_FILE = rm -f
87 QMAKE_DEL_DIR = rmdir
diff --git a/mkspecs/irix-cc-o32/qplatformdefs.h b/mkspecs/irix-cc-o32/qplatformdefs.h
new file mode 100644
index 0000000..c6eaa2f
--- a/dev/null
+++ b/mkspecs/irix-cc-o32/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