summaryrefslogtreecommitdiff
path: root/mkspecs/linux-kylix
authorzecke <zecke>2004-07-18 19:32:20 (UTC)
committer zecke <zecke>2004-07-18 19:32:20 (UTC)
commit8795812a0d763742a5273f356c35313af0fed84d (patch) (unidiff)
tree34b7259e1595e53e1fa2069d7d79bbdef67293e8 /mkspecs/linux-kylix
parent8e8fcd65b8d8657650728bae604c5a34dc31338e (diff)
downloadopie-8795812a0d763742a5273f356c35313af0fed84d.zip
opie-8795812a0d763742a5273f356c35313af0fed84d.tar.gz
opie-8795812a0d763742a5273f356c35313af0fed84d.tar.bz2
-CHECK if DIR exist added to qmake.conf's
-use arm-linux-g++ for linking now hopefully not removed anything important Added python tool to opiefy mkspecs
Diffstat (limited to 'mkspecs/linux-kylix') (more/less context) (ignore whitespace changes)
-rw-r--r--mkspecs/linux-kylix/qmake.conf84
-rw-r--r--mkspecs/linux-kylix/qplatformdefs.h106
2 files changed, 190 insertions, 0 deletions
diff --git a/mkspecs/linux-kylix/qmake.conf b/mkspecs/linux-kylix/qmake.conf
new file mode 100644
index 0000000..dfbf8e7
--- a/dev/null
+++ b/mkspecs/linux-kylix/qmake.conf
@@ -0,0 +1,84 @@
1#
2# $Id$
3#
4# qmake configuration for linux-kylix
5#
6
7 MAKEFILE_GENERATOR= UNIX
8 TEMPLATE = app
9 CONFIG += qt warn_on release incremental link_prl
10 QMAKE_INCREMENTAL_STYLE= sublib
11
12 QMAKE_CC = bc++
13 QMAKE_LEX = flex
14 QMAKE_LEXFLAGS =
15 QMAKE_YACC = yacc
16 QMAKE_YACCFLAGS = -d
17 QMAKE_CFLAGS = $(CFLAGS_EXTRA)
18 QMAKE_CFLAGS_DEPS= -m
19 QMAKE_CFLAGS_WARN_ON= -w
20 QMAKE_CFLAGS_WARN_OFF= -w-
21 QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)
22 QMAKE_CFLAGS_DEBUG= -v -y
23 QMAKE_CFLAGS_SHLIB=
24 QMAKE_CFLAGS_YACC=
25 QMAKE_CFLAGS_THREAD=
26
27 QMAKE_CXX = bc++
28 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -P $(CXXFLAGS_EXTRA)
29 QMAKE_CXXFLAGS_DEPS= $$QMAKE_CFLAGS_DEPS
30 QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON
31 QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF
32 QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE
33 QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG
34 QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB
35 QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC
36 QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD
37
38 QMAKE_INCDIR =
39 QMAKE_LIBDIR =
40 QMAKE_INCDIR_X11= /usr/X11R6/include
41 QMAKE_LIBDIR_X11= /usr/X11R6/lib
42 QMAKE_INCDIR_QT = $(QTDIR)/include
43 QMAKE_LIBDIR_QT = $(QTDIR)/lib
44 QMAKE_INCDIR_OPENGL= /usr/X11R6/include
45 QMAKE_LIBDIR_OPENGL= /usr/X11R6/lib
46
47 QMAKE_LINK = bc++
48 QMAKE_LINK_SHLIB= bc++
49 QMAKE_LFLAGS = $(LFLAGS_EXTRA)
50 QMAKE_LFLAGS_RELEASE=
51 QMAKE_LFLAGS_DEBUG= -lv -ly
52 QMAKE_LFLAGS_SHLIB= -ltD -lTpd
53 QMAKE_LFLAGS_PLUGIN= $$QMAKE_LFLAGS_SHLIB
54 QMAKE_LFLAGS_SONAME= -lN
55 QMAKE_LFLAGS_THREAD=
56 QMAKE_RPATH =
57
58 QMAKE_LIBS = $(LIBS_EXTRA)
59 QMAKE_LIBS_DYNLOAD= -llibdl
60 QMAKE_LIBS_X11 = -llibXext -llibX11 -llibm
61 QMAKE_LIBS_X11SM= -llibSM -llibICE
62 QMAKE_LIBS_NIS = -llibnsl
63 QMAKE_LIBS_QT = -llibqt
64 QMAKE_LIBS_QT_THREAD= -llibqt-mt
65 QMAKE_LIBS_OPENGL= -llibGLU -llibGL -llibXmu
66 QMAKE_LIBS_OPENGL_QT= -llibGL -llibXmu
67 QMAKE_LIBS_THREAD= -llibpthread
68
69 QMAKE_MOC = $(QTDIR)/bin/moc
70 QMAKE_UIC = $(QTDIR)/bin/uic
71
72 QMAKE_AR = ar cqs
73 QMAKE_RANLIB =
74
75 QMAKE_TAR = tar -cf
76 QMAKE_GZIP = gzip -9f
77
78 QMAKE_COPY = cp -f
79 QMAKE_MOVE = mv -f
80 QMAKE_DEL_FILE = rm -f
81 QMAKE_DEL_DIR = rmdir
82QMAKE_STRIP = strip
83 QMAKE_CHK_DIR_EXISTS= test -d
84 QMAKE_MKDIR = mkdir -p
diff --git a/mkspecs/linux-kylix/qplatformdefs.h b/mkspecs/linux-kylix/qplatformdefs.h
new file mode 100644
index 0000000..e25bc1e
--- a/dev/null
+++ b/mkspecs/linux-kylix/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