diff options
Diffstat (limited to 'tqtinterface/qt4/mkspecs')
130 files changed, 12693 insertions, 0 deletions
diff --git a/tqtinterface/qt4/mkspecs/aix-g++-64/qmake.conf b/tqtinterface/qt4/mkspecs/aix-g++-64/qmake.conf new file mode 100755 index 0000000..b67c6fc --- /dev/null +++ b/tqtinterface/qt4/mkspecs/aix-g++-64/qmake.conf @@ -0,0 +1,80 @@ +# +# +# qmake configuration for aix-g++-64 +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -maix64 -mminimal-toc +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_THREAD_SAFE + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = -maix64 +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = +TQMAKE_LFLAGS_THREAD = -L/usr/lib/threads +TQMAKE_AIX_SHLIB = 1 + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm -lbind +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthreads + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar -X 64 cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/aix-g++-64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/aix-g++-64/qplatformdefs.h new file mode 100755 index 0000000..9e8ca6e --- /dev/null +++ b/tqtinterface/qt4/mkspecs/aix-g++-64/qplatformdefs.h @@ -0,0 +1,109 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +// uncomment if you have problems with <sys/proc.h> because your gcc +// hasn't been built on exactly the same OS version your are using now. +// typedef int crid_t; +// typedef unsigned int class_id_t; +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> +#include <strings.h> // AIX X11 headers define FD_ZERO using bzero() + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/select.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On AIX header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#define class nsrr_class // AIX 4.3.1.0 +#include <arpa/nameser.h> +#undef class +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#ifdef _AIX43 +// AIX 4.3 +// The AIX 4.3 online documentation says 'size_t' but a user asked IBM +// and they told him the documentation is wrong. And anyway 'socklen_t' +// reportedly works for all AIX 4.3 users. +#define TQT_SOCKLEN_T socklen_t +#elif _AIX42 +// AIX 4.2 +#define TQT_SOCKLEN_T size_t +#else +// AIX 4.1 +#define TQT_SOCKLEN_T size_t +// override +#define TQT_SOCKOPTLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +// Only AIX 4.3 and better supports 64-bit. +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/aix-g++/qmake.conf b/tqtinterface/qt4/mkspecs/aix-g++/qmake.conf new file mode 100644 index 0000000..fb73d19 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/aix-g++/qmake.conf @@ -0,0 +1,80 @@ +# +# +# qmake configuration for aix-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_THREAD_SAFE + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = +TQMAKE_LFLAGS_THREAD = -L/usr/lib/threads +TQMAKE_AIX_SHLIB = 1 + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm -lbind +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthreads + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/aix-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/aix-g++/qplatformdefs.h new file mode 100644 index 0000000..d00993c --- /dev/null +++ b/tqtinterface/qt4/mkspecs/aix-g++/qplatformdefs.h @@ -0,0 +1,109 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +// uncomment if you have problems with <sys/proc.h> because your gcc +// hasn't been built on exactly the same OS version your are using now. +// typedef int crid_t; +// typedef unsigned int class_id_t; +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> +#include <strings.h> // AIX X11 headers define FD_ZERO using bzero() + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/select.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On AIX header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#define class nsrr_class // AIX 4.3.1.0 +#include <arpa/nameser.h> +#undef class +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#ifdef _AIX43 +// AIX 4.3 +// The AIX 4.3 online documentation says 'size_t' but a user asked IBM +// and they told him the documentation is wrong. And anyway 'socklen_t' +// reportedly works for all AIX 4.3 users. +#define TQT_SOCKLEN_T socklen_t +#elif _AIX42 +// AIX 4.2 +#define TQT_SOCKLEN_T size_t +#else +// AIX 4.1 +#define TQT_SOCKLEN_T size_t +// override +#define TQT_SOCKOPTLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +// AIX 4.3 and better only +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/aix-xlc-64/qmake.conf b/tqtinterface/qt4/mkspecs/aix-xlc-64/qmake.conf new file mode 100644 index 0000000..b95c5a0 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/aix-xlc-64/qmake.conf @@ -0,0 +1,89 @@ +# +# +# qmake configuration for aix-xlc +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = xlc +TQMAKE_CC_THREAD = xlc_r +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -qstrict -q64 +# -qwarn64 turns on too many bogus warnings and shadows real warnings +#TQMAKE_CFLAGS_WARN_ON = -qwarn64 +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -O3 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -qthreaded + +TQMAKE_CXX = xlC +TQMAKE_CXX_THREAD = xlC_r +TQMAKE_CXXFLAGS = -+ $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = xlC +TQMAKE_LINK_THREAD = xlC_r +TQMAKE_LINK_SHLIB = ld +TQMAKE_LINK_SHLIB_CMD = makeC++SharedLib -p 0 -X64 \ + -o $(TARGETD) \ + $(LFLAGS) $(OBJECTS) $(OBJTQMOC) $(LIBS); \ + $(AR) lib$(TQMAKE_TARGET).a $(TARGETD); \ + $(RANLIB) lib$(TQMAKE_TARGET).a; \ + mv lib$(TQMAKE_TARGET).a $(DESTDIR) +TQMAKE_LFLAGS = -q64 +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = +TQMAKE_LFLAGS_THREAD = -L/usr/lib/threads +TQMAKE_AIX_SHLIB = 1 + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm -lbind +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthreads + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar -X64 cq +TQMAKE_RANLIB = ranlib -X64 + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/aix-xlc-64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/aix-xlc-64/qplatformdefs.h new file mode 100644 index 0000000..ef1688c --- /dev/null +++ b/tqtinterface/qt4/mkspecs/aix-xlc-64/qplatformdefs.h @@ -0,0 +1,96 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> +#include <strings.h> // AIX X11 headers define FD_ZERO using bzero() + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/select.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On AIX header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#define class nsrr_class // AIX 4.3.1.0 +#include <arpa/nameser.h> +#undef class +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +// Only AIX 4.3 and better supports 64-bit. +// The AIX 4.3 online documentation says 'size_t' but a user asked IBM +// and they told him the documentation is wrong. Indeed 'size_t' is +// obviously wrong for 64-bit programming. And anyway 'socklen_t' +// reportedly works for all AIX 4.3 users. +#define TQT_SOCKLEN_T socklen_t + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +// Only AIX 4.3 and better supports 64-bit. +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/aix-xlc/qmake.conf b/tqtinterface/qt4/mkspecs/aix-xlc/qmake.conf new file mode 100644 index 0000000..b7d1e29 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/aix-xlc/qmake.conf @@ -0,0 +1,87 @@ +# +# +# qmake configuration for aix-xlc +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = xlc +TQMAKE_CC_THREAD = xlc_r +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -qstrict +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -O3 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -qthreaded + +TQMAKE_CXX = xlC +TQMAKE_CXX_THREAD = xlC_r +TQMAKE_CXXFLAGS = -+ $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = xlC +TQMAKE_LINK_THREAD = xlC_r +TQMAKE_LINK_SHLIB = ld +TQMAKE_LINK_SHLIB_CMD = makeC++SharedLib -p 0 \ + -o $(TARGETD) \ + $(LFLAGS) $(OBJECTS) $(OBJTQMOC) $(LIBS); \ + $(AR) lib$(TQMAKE_TARGET).a $(TARGETD); \ + $(RANLIB) lib$(TQMAKE_TARGET).a; \ + mv lib$(TQMAKE_TARGET).a $(DESTDIR) +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = +TQMAKE_LFLAGS_THREAD = -L/usr/lib/threads +TQMAKE_AIX_SHLIB = 1 + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm -lbind +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthreads + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = ranlib + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/aix-xlc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/aix-xlc/qplatformdefs.h new file mode 100644 index 0000000..ca7cad6 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/aix-xlc/qplatformdefs.h @@ -0,0 +1,105 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> +#include <strings.h> // AIX X11 headers define FD_ZERO using bzero() + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/select.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On AIX header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#define class nsrr_class // AIX 4.3.1.0 +#include <arpa/nameser.h> +#undef class +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#ifdef _AIX43 +// AIX 4.3 +// The AIX 4.3 online documentation says 'size_t' but a user asked IBM +// and they told him the documentation is wrong. And anyway 'socklen_t' +// reportedly works for all AIX 4.3 users. +#define TQT_SOCKLEN_T socklen_t +#elif _AIX42 +// AIX 4.2 +#define TQT_SOCKLEN_T size_t +#else +// AIX 4.1 +#define TQT_SOCKLEN_T size_t +// override +#define TQT_SOCKOPTLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500) +// AIX 4.3 and better only +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/bsdi-g++/qmake.conf b/tqtinterface/qt4/mkspecs/bsdi-g++/qmake.conf new file mode 100644 index 0000000..c1d951f --- /dev/null +++ b/tqtinterface/qt4/mkspecs/bsdi-g++/qmake.conf @@ -0,0 +1,83 @@ +# +# +# qmake configuration for bsdi-g++ +# +# Written for WindRiver BSD/OS 4.0. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/bsdi-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/bsdi-g++/qplatformdefs.h new file mode 100644 index 0000000..8becac1 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/bsdi-g++/qplatformdefs.h @@ -0,0 +1,84 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T socklen_t +#define TQT_SOCKOPTLEN_T size_t + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/cygwin-g++/qmake.conf b/tqtinterface/qt4/mkspecs/cygwin-g++/qmake.conf new file mode 100644 index 0000000..26411bc --- /dev/null +++ b/tqtinterface/qt4/mkspecs/cygwin-g++/qmake.conf @@ -0,0 +1,85 @@ +# +# +# qmake configuration for cygwin-g++ +# +# Written for TQt/X11 on Cygwin, using the POSIX API. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release incremental link_prl +TQMAKE_INCREMENTAL_STYLE = sublib + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = byacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, +TQMAKE_CYGWIN_SHLIB = 1 +TQMAKE_CYGWIN_EXE = 1 + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/cygwin-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/cygwin-g++/qplatformdefs.h new file mode 100644 index 0000000..a2d90cc --- /dev/null +++ b/tqtinterface/qt4/mkspecs/cygwin-g++/qplatformdefs.h @@ -0,0 +1,105 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +// Cygwin does not provide <sys/ipc.h> and <sys/shm.h> because it +// doesn't support SysV IPC or shared memory. See for example: +// http://afni.nimh.nih.gov/afni/afniboard/messages/1725.html +#include <sys/time.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> +#include <windows.h> + +// Resolver functions are not implemented in Cygwin, headers +// <arpa/nameser.h> and <resolv.h> are missing: +// http://cygwin.com//cgi-bin/cygwin-todo.cgi?20000426.105252 +// Maybe bindlib_w32 +// http://www.php.net/extra/bindlib_w32.zip +// or Don Berstein's djbdns: +// http://cr.yp.to/djbdns.html +// provide this functionality, but not necessarily under the Cygwin license... +#include <netinet/in.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T socklen_t + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/darwin-g++/qmake.conf b/tqtinterface/qt4/mkspecs/darwin-g++/qmake.conf new file mode 100644 index 0000000..3fba877 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/darwin-g++/qmake.conf @@ -0,0 +1,91 @@ +# +# +# qmake configuration for darwin-g++ +# +# Written for TQt/X11 on Darwin and XFree86. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release native_precompiled_headers +CONFIG += qt warn_on release link_prl +DEFINES += __DARWIN_X11__ + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_EXTENSION_SHLIB = dylib +TQMAKE_EXTENSION_PLUGIN = so +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = + +TQMAKE_CXX = c++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = + +TQMAKE_INCDIR = /usr/local/include +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = c++ +TQMAKE_LINK_SHLIB = c++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_APP = -prebind +TQMAKE_LFLAGS_SHLIB = -prebind -dynamiclib -single_module -headerpad_max_install_names +TQMAKE_LFLAGS_PLUGIN = -bundle +TQMAKE_LFLAGS_THREAD = + +TQMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE} +TQMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE} + +TQMAKE_RPATH = + +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = ranlib -s + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_COPY_FILE = $$TQMAKE_COPY +TQMAKE_COPY_DIR = $$TQMAKE_COPY -r +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/darwin-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/darwin-g++/qplatformdefs.h new file mode 100644 index 0000000..44fb9ff --- /dev/null +++ b/tqtinterface/qt4/mkspecs/darwin-g++/qplatformdefs.h @@ -0,0 +1,85 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + +#define TQT_AOUT_UNDERSCORE + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/dgux-g++/qmake.conf b/tqtinterface/qt4/mkspecs/dgux-g++/qmake.conf new file mode 100644 index 0000000..a56f3da --- /dev/null +++ b/tqtinterface/qt4/mkspecs/dgux-g++/qmake.conf @@ -0,0 +1,76 @@ +# +# +# qmake configuration for dgux-g++ +# +# Written for DG/UX R4.20MU06. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-h, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_QT = -lqt + +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/dgux-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/dgux-g++/qplatformdefs.h new file mode 100644 index 0000000..488a2f1 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/dgux-g++/qplatformdefs.h @@ -0,0 +1,88 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// This is to have PATH_MAX defined in <limits.h> +#ifndef _SYSV3_LIMITS_FLAVOR +# define _SYSV3_LIMITS_FLAVOR +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On IRIX header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + +#endif // TQPLATFORMDEFS_H + diff --git a/tqtinterface/qt4/mkspecs/freebsd-g++/qmake.conf b/tqtinterface/qt4/mkspecs/freebsd-g++/qmake.conf new file mode 100644 index 0000000..73cd3ed --- /dev/null +++ b/tqtinterface/qt4/mkspecs/freebsd-g++/qmake.conf @@ -0,0 +1,81 @@ +# +# +# qmake configuration for freebsd-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +# Addon software goes into /usr/local on the BSDs, by default we will look there +TQMAKE_INCDIR = /usr/local/include +TQMAKE_LIBDIR = /usr/local/lib +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = -pthread +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/freebsd-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/freebsd-g++/qplatformdefs.h new file mode 100644 index 0000000..88fae6d --- /dev/null +++ b/tqtinterface/qt4/mkspecs/freebsd-g++/qplatformdefs.h @@ -0,0 +1,103 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#define class c_class // FreeeBSD 3.x +#include <arpa/nameser.h> +#undef class +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if !defined(__DragonFly__) && __FreeBSD_version < 400000 +// FreeBSD 1.0 - 3.5.1 +# define TQT_SOCKLEN_T int +#else +// FreeBSD 4.0 - 5.0 +# define TQT_SOCKLEN_T socklen_t +#endif + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + +// Older FreeBSD versions may still use the a.out format instead of ELF. +// From the FreeBSD man pages: +// In previous implementations, it was necessary to prepend an +// underscore to all external symbols in order to gain symbol +// compatibility with object code compiled from the C language. +// This is still the case when using the (obsolete) -aout option to +// the C language compiler. +#ifndef __ELF__ +#define TQT_AOUT_UNDERSCORE +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/freebsd-g++34/qmake.conf b/tqtinterface/qt4/mkspecs/freebsd-g++34/qmake.conf new file mode 100644 index 0000000..9325c1f --- /dev/null +++ b/tqtinterface/qt4/mkspecs/freebsd-g++34/qmake.conf @@ -0,0 +1,81 @@ +# +# +# qmake configuration for freebsd-g++34 (using g++34 from ports/lang/gcc34) +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc34 +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE + +TQMAKE_CXX = g++34 +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +# Addon software goes into /usr/local on the BSDs, by default we will look there +TQMAKE_INCDIR = /usr/local/include +TQMAKE_LIBDIR = /usr/local/lib +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++34 +TQMAKE_LINK_SHLIB = g++34 +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = -pthread +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/freebsd-g++34/qplatformdefs.h b/tqtinterface/qt4/mkspecs/freebsd-g++34/qplatformdefs.h new file mode 100644 index 0000000..58e4a44 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/freebsd-g++34/qplatformdefs.h @@ -0,0 +1 @@ +#include "../freebsd-g++/tqplatformdefs.h" diff --git a/tqtinterface/qt4/mkspecs/freebsd-icc/qmake.conf b/tqtinterface/qt4/mkspecs/freebsd-icc/qmake.conf new file mode 100644 index 0000000..1122cf2 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/freebsd-icc/qmake.conf @@ -0,0 +1,99 @@ +# +# +# qmake configuration for freebsd-icc +# +# Written for Intel C++ 7.1 and above. +# +# Note: Some of the remarks from the Intel compiler are disabled (even +# with 'warn_on' specified): +# +# remark #171: invalid type conversion: "int" to "void *" +# remark #193: zero used for undefined preprocessing identifier +# remark #279: controlling expression is constant +# remark #304: access control not specified ("public" by default) +# remark #383: value copied to temporary, reference to temporary used +# remark #424: extra ";" ignored +# remark #444: destructor for base class "Class" is not virtual +# remark #488: template parameter "T" is not used in declaring the parameter +# types of function template "function" +# remark #810: conversion from "type1" to "type2" may loose significant bits +# remark #981: operands are evaluated in unspecified order +# remark #1418: external definition with no prior declaration +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = icc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -w2 -wd171,193,304,279,383,424,444,488,810,981,1418 +TQMAKE_CFLAGS_WARN_OFF = -w0 +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g -O0 +TQMAKE_CFLAGS_SHLIB = -KPIC +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -D_THREAD_SAFE + +TQMAKE_CXX = icpc +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +# Addon software goes into /usr/local on the BSDs, by default we will look there +TQMAKE_INCDIR = /usr/local/include +TQMAKE_LIBDIR = /usr/local/lib +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = icpc +TQMAKE_LINK_SHLIB = icpc +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Qoption,ld,-soname, +TQMAKE_LFLAGS_THREAD = -mt +TQMAKE_RPATH = -Qoption,ld,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/freebsd-icc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/freebsd-icc/qplatformdefs.h new file mode 100644 index 0000000..88fae6d --- /dev/null +++ b/tqtinterface/qt4/mkspecs/freebsd-icc/qplatformdefs.h @@ -0,0 +1,103 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#define class c_class // FreeeBSD 3.x +#include <arpa/nameser.h> +#undef class +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if !defined(__DragonFly__) && __FreeBSD_version < 400000 +// FreeBSD 1.0 - 3.5.1 +# define TQT_SOCKLEN_T int +#else +// FreeBSD 4.0 - 5.0 +# define TQT_SOCKLEN_T socklen_t +#endif + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + +// Older FreeBSD versions may still use the a.out format instead of ELF. +// From the FreeBSD man pages: +// In previous implementations, it was necessary to prepend an +// underscore to all external symbols in order to gain symbol +// compatibility with object code compiled from the C language. +// This is still the case when using the (obsolete) -aout option to +// the C language compiler. +#ifndef __ELF__ +#define TQT_AOUT_UNDERSCORE +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/hpux-acc-64/qmake.conf b/tqtinterface/qt4/mkspecs/hpux-acc-64/qmake.conf new file mode 100644 index 0000000..a46007f --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-acc-64/qmake.conf @@ -0,0 +1,125 @@ +# +# +# qmake configuration for hpux-n64 +# +# We define _POSIX_C_SOURCE to 199506L when using threads, therefore +# we also need to redefine _HPUX_SOURCE. +# From pthread(3t): +# Some documentation will recommend the use of -D_REENTRANT for +# compilation. While this also functions properly, it is considered +# an obsolescent form. +# See pthread(3t) for more details. +# +# From the "HP aC++ Online Programmer's Guide": +# When +DA2.0W is specified: +# * 64-bit SVR4 Executable and Linking Format (ELF) object files +# are generated for PA-RISC 2.0. +# * The preprocessor predefined macro, __LP64__ is defined. +# * The correct path for 64-bit system and language libraries is +# selected. +# When +DD32 is specified: +# * The size of an int, long, or pointer data type is 32-bits. +# The size of an int data type is 32-bits. The size of a long or +# pointer data type is 64-bits. +# * This is the default, currently equivalent to +DA1.1 architecture. +# When +DD64 is specified: +# * The size of an int data type is 32-bits. The size of a long or +# pointer data type is 64-bits. +# * This is currently equivalent to +DA2.OW architecture. +# * The preprocessor predefined macro, __LP64__ is defined. +# Using +DS to Specify Instruction Scheduling: +# * By default, the compiler performs scheduling tuned for the system +# on which you are compiling, or, if specified, tuned for the setting +# of the +DA option. +# +# From the online "C/HP-UX Reference Manual": +# -Aa +# Enables strict ANSI C compliance. +# -Ae +# Enables ANSI C compliance, HP value-added features (as described +# for +e option), and _HPUX_SOURCE name space macro. It is equivalent +# to -Aa +e -D_HPUX_SOURCE. +# +e +# Enables the following HP value added features while compiling in +# ANSI C mode: sized enum, long long, long pointers, compiler supplied +# defaults for missing arguments to intrinsic calls, and $ in identifier +# HP C extensions. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -Ae +DA2.0W -w +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O +Osize +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +Z +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE + +TQMAKE_CXX = aCC +TQMAKE_CXXFLAGS = -Aa +DA2.0W -w -D__STRICT_ANSI__ -D_HPUX_SOURCE +TQMAKE_CXXFLAGS_DEPS = +M +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/include/X11R6 +TQMAKE_LIBDIR_X11 = /usr/lib/X11R6/pa20_64 +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include +TQMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib/pa20_64 /usr/contrib/X11R6/lib/pa20_64 + +TQMAKE_LINK = aCC +TQMAKE_LINK_SHLIB = aCC +TQMAKE_LFLAGS = +DA2.0W -Wl,+s +TQMAKE_LFLAGS_RELEASE = -O +TQMAKE_LFLAGS_DEBUG = -g +TQMAKE_LFLAGS_SHLIB = -b -Wl,-a,shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,+h, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,+b, +TQMAKE_HPUX_SHLIB = 3 +TQMAKE_EXTENSION_SHLIB = sl + +TQMAKE_LIBS = -lm +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lXt +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu -lXt +TQMAKE_LIBS_THREAD = -lpthread +TQMAKE_LIBS_YACC = -ly + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/hpux-acc-64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/hpux-acc-64/qplatformdefs.h new file mode 100644 index 0000000..fcb740e --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-acc-64/qplatformdefs.h @@ -0,0 +1,86 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// #ifdef __cplusplus +// extern "C" { +// #endif +// getres() is mangled because of missing extern "C" on +// HP-UX 11.x systems missing PHCO_23963 +#include <resolv.h> +// #ifdef __cplusplus +// } +// #endif +// Undeclared - at least on HP-UX 10.20. +extern "C" int res_init(); + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/hpux-acc-o64/qmake.conf b/tqtinterface/qt4/mkspecs/hpux-acc-o64/qmake.conf new file mode 100644 index 0000000..97af0c6 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-acc-o64/qmake.conf @@ -0,0 +1,124 @@ +# +# +# qmake configuration for hpux-o64 +# +# We define _POSIX_C_SOURCE to 199506L when using threads, therefore +# we also need to redefine _HPUX_SOURCE. +# From pthread(3t): +# Some documentation will recommend the use of -D_REENTRANT for +# compilation. While this also functions properly, it is considered +# an obsolescent form. +# See pthread(3t) for more details. +# +# From the "HP aC++ Online Programmer's Guide": +# When +DA2.0W is specified: +# * 64-bit SVR4 Executable and Linking Format (ELF) object files +# are generated for PA-RISC 2.0. +# * The preprocessor predefined macro, __LP64__ is defined. +# * The correct path for 64-bit system and language libraries is +# selected. +# When +DD32 is specified: +# * The size of an int, long, or pointer data type is 32-bits. +# The size of an int data type is 32-bits. The size of a long or +# pointer data type is 64-bits. +# * This is the default, currently equivalent to +DA1.1 architecture. +# When +DD64 is specified: +# * The size of an int data type is 32-bits. The size of a long or +# pointer data type is 64-bits. +# * This is currently equivalent to +DA2.OW architecture. +# * The preprocessor predefined macro, __LP64__ is defined. +# Using +DS to Specify Instruction Scheduling: +# * By default, the compiler performs scheduling tuned for the system +# on which you are compiling, or, if specified, tuned for the setting +# of the +DA option. +# +# From the online "C/HP-UX Reference Manual": +# -Aa +# Enables strict ANSI C compliance. +# -Ae +# Enables ANSI C compliance, HP value-added features (as described +# for +e option), and _HPUX_SOURCE name space macro. It is equivalent +# to -Aa +e -D_HPUX_SOURCE. +# +e +# Enables the following HP value added features while compiling in +# ANSI C mode: sized enum, long long, long pointers, compiler supplied +# defaults for missing arguments to intrinsic calls, and $ in identifier +# HP C extensions. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -Ae +DA2.0 -w +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -O +Oentrysched +Onolimit +TQMAKE_CFLAGS_DEBUG = -y -g +TQMAKE_CFLAGS_SHLIB = +Z +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE + +TQMAKE_CXX = aCC +TQMAKE_CXXFLAGS = +DA2.0 -w -D__STRICT_ANSI__ -D_HPUX_SOURCE +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = -g +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/include/X11R6 +TQMAKE_LIBDIR_X11 = /usr/lib/X11R6 +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include +TQMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib /usr/contrib/X11R6/lib + +TQMAKE_LINK = aCC +TQMAKE_LINK_SHLIB = aCC +TQMAKE_LFLAGS = +DA2.0 -Wl,+s +TQMAKE_LFLAGS_RELEASE = -O +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -b +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,+h, +TQMAKE_RPATH = -Wl,+b, +TQMAKE_HPUX_SHLIB = 2 +TQMAKE_EXTENSION_SHLIB = sl + +TQMAKE_LIBS = -lm +TQMAKE_LIBS_DYNLOAD = -ldld +TQMAKE_LIBS_X11 = -lXext -lX11 +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt + +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread +TQMAKE_LIBS_YACC = -ly + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/hpux-acc-o64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/hpux-acc-o64/qplatformdefs.h new file mode 100644 index 0000000..eee8d00 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-acc-o64/qplatformdefs.h @@ -0,0 +1,88 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dl.h> +#define TQT_HPUX_LD +#define TQT_NO_LIBRARY_UNLOAD + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// #ifdef __cplusplus +// extern "C" { +// #endif +// getres() is mangled because of missing extern "C" on +// HP-UX 11.x systems missing PHCO_23963 +#include <resolv.h> +// #ifdef __cplusplus +// } +// #endif +// Undeclared - at least on HP-UX 10.20. +extern "C" int res_init(); + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/hpux-acc/qmake.conf b/tqtinterface/qt4/mkspecs/hpux-acc/qmake.conf new file mode 100644 index 0000000..1f7a3ef --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-acc/qmake.conf @@ -0,0 +1,104 @@ +# +# +# qmake configuration for hpux-acc +# +# We define _POSIX_C_SOURCE to 199506L when using threads, therefore +# we also need to redefine _HPUX_SOURCE. See pthread(3t) for more details. +# +# From the "HP aC++ Online Programmer's Guide": +# Using +DS to Specify Instruction Scheduling: +# * By default, the compiler performs scheduling tuned for the system +# on which you are compiling, or, if specified, tuned for the setting +# of the +DA option. +# +# From the online "C/HP-UX Reference Manual": +# -Aa +# Enables strict ANSI C compliance. +# -Ae +# Enables ANSI C compliance, HP value-added features (as described +# for +e option), and _HPUX_SOURCE name space macro. It is equivalent +# to -Aa +e -D_HPUX_SOURCE. +# +e +# Enables the following HP value added features while compiling in +# ANSI C mode: sized enum, long long, long pointers, compiler supplied +# defaults for missing arguments to intrinsic calls, and $ in identifier +# HP C extensions. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -Ae +DAportable -w +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +Z +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE + +TQMAKE_CXX = aCC +TQMAKE_CXXFLAGS = +DAportable -w -D__STRICT_ANSI__ -D_HPUX_SOURCE +TQMAKE_CXXFLAGS_DEPS = +M +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/include/X11R6 +TQMAKE_LIBDIR_X11 = /usr/lib/X11R6 +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include +TQMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib /usr/contrib/X11R6/lib + +TQMAKE_LINK = aCC +TQMAKE_LINK_SHLIB = aCC +TQMAKE_LFLAGS = +DAportable -Wl,+s +TQMAKE_LFLAGS_RELEASE = -O +TQMAKE_LFLAGS_DEBUG = -g +TQMAKE_LFLAGS_SHLIB = -b -Wl,-a,shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,+h, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,+b, +TQMAKE_HPUX_SHLIB = 1 +TQMAKE_EXTENSION_SHLIB = sl + +TQMAKE_LIBS = -lm +TQMAKE_LIBS_DYNLOAD = -ldld +TQMAKE_LIBS_X11 = -lXext -lX11 +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXt +TQMAKE_LIBS_OPENGL_QT = -lGL -lXt +TQMAKE_LIBS_THREAD = -lpthread +TQMAKE_LIBS_YACC = -ly + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/hpux-acc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/hpux-acc/qplatformdefs.h new file mode 100644 index 0000000..44b5c11 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-acc/qplatformdefs.h @@ -0,0 +1,95 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dl.h> +#define TQT_HPUX_LD +#define TQT_NO_LIBRARY_UNLOAD + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// #ifdef __cplusplus +// extern "C" { +// #endif +// getres() is mangled because of missing extern "C" on +// HP-UX 11.x systems missing PHCO_23963 +#include <resolv.h> +// #ifdef __cplusplus +// } +// #endif +// Undeclared - at least on HP-UX 10.20. +extern "C" int res_init(); + +#define TQT_NO_LIBRARY_UNLOAD + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + +// presence of _XOPEN_UNIX can be used to detect HP-UX 10 or higher +#if !defined(_XOPEN_UNIX) +// HP-UX 9's select() didn't accept fd_set, yet. +#define select(a,b,c,d,e) select((a), (int *)(b), (int *)(c), (int *)(d), (e)) +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/hpux-cc/qmake.conf b/tqtinterface/qt4/mkspecs/hpux-cc/qmake.conf new file mode 100644 index 0000000..da61903 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-cc/qmake.conf @@ -0,0 +1,99 @@ +# +# +# qmake configuration for hpux-cc +# +# We define _POSIX_C_SOURCE to 199506L when using threads, therefore +# we also need to redefine _HPUX_SOURCE. +# See pthread(3t) for more details. +# +# From the "HP aC++ Online Programmer's Guide": +# Using +DS to Specify Instruction Scheduling: +# * By default, the compiler performs scheduling tuned for the system +# on which you are compiling, or, if specified, tuned for the setting +# of the +DA option. +# +# From the online "C/HP-UX Reference Manual": +# -Aa +# Enables strict ANSI C compliance. +# -Ae +# Enables ANSI C compliance, HP value-added features (as described +# for +e option), and _HPUX_SOURCE name space macro. It is equivalent +# to -Aa +e -D_HPUX_SOURCE. +# +e +# Enables the following HP value added features while compiling in +# ANSI C mode: sized enum, long long, long pointers, compiler supplied +# defaults for missing arguments to intrinsic calls, and $ in identifier +# HP C extensions. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -Ae +DA1.1e -w +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -O +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +Z +TQMAKE_CFLAGS_YACC = + +TQMAKE_CXX = CC +TQMAKE_CXXFLAGS = +DA1.1e -w +a1 -D_HPUX_SOURCE +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/include/X11R6 +TQMAKE_LIBDIR_X11 = /usr/lib/X11R6 +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include +TQMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib /usr/contrib/X11R6/lib + +TQMAKE_LINK = CC +TQMAKE_LINK_SHLIB = CC +# CC generates template code during linking, and so needs -I's +TQMAKE_LFLAGS = +DA1.1e -Wl,+s -L/usr/lib -I$$TQMAKE_INCDIR_X11 -I$$TQMAKE_INCDIR_QT +TQMAKE_LFLAGS_RELEASE = -O -s +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -b +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,+h, +TQMAKE_RPATH = -Wl,+b, +TQMAKE_HPUX_SHLIB = 1 + +TQMAKE_LIBS = -lm +TQMAKE_LIBS_DYNLOAD = -ldld +TQMAKE_LIBS_X11 = -lXext -lX11 +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt + +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/hpux-cc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/hpux-cc/qplatformdefs.h new file mode 100644 index 0000000..39a318e --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-cc/qplatformdefs.h @@ -0,0 +1,85 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dl.h> +#define TQT_HPUX_LD +#define TQT_NO_LIBRARY_UNLOAD + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +#include <resolv.h> +// Undeclared - at least on HP-UX 10.20. +extern "C" int res_init(); + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + +// presence of _XOPEN_UNIX can be used to detect HP-UX 10 or higher +#if !defined(_XOPEN_UNIX) +// HP-UX 9's select() didn't accept fd_set, yet. +#define select(a,b,c,d,e) select((a), (int *)(b), (int *)(c), (int *)(d), (e)) +#endif + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/hpux-g++-64/qmake.conf b/tqtinterface/qt4/mkspecs/hpux-g++-64/qmake.conf new file mode 100644 index 0000000..badf6e2 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-g++-64/qmake.conf @@ -0,0 +1,85 @@ +# +# +# qmake configuration for hpux-g++-64 +# +# We define _POSIX_C_SOURCE to 199506L when using threads, +# therefore we also need to redefine _HPUX_SOURCE. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS -D_HPUX_SOURCE +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/include/X11R6 +TQMAKE_LIBDIR_X11 = /usr/lib/X11R6/pa20_64 +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /opt/Mesa/include /usr/contrib/X11R6/include +TQMAKE_LIBDIR_OPENGL = /opt/Mesa/lib/pa20_64 /usr/contrib/X11R6/lib/pa20_64 + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = -Wl,+s +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -fPIC -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,+h, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,+b, +TQMAKE_HPUX_SHLIB = 3 +TQMAKE_EXTENSION_SHLIB = sl + +TQMAKE_LIBS = -lm +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread +TQMAKE_LIBS_YACC = -ly + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/hpux-g++-64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/hpux-g++-64/qplatformdefs.h new file mode 100644 index 0000000..fcb740e --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-g++-64/qplatformdefs.h @@ -0,0 +1,86 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// #ifdef __cplusplus +// extern "C" { +// #endif +// getres() is mangled because of missing extern "C" on +// HP-UX 11.x systems missing PHCO_23963 +#include <resolv.h> +// #ifdef __cplusplus +// } +// #endif +// Undeclared - at least on HP-UX 10.20. +extern "C" int res_init(); + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/hpux-g++/qmake.conf b/tqtinterface/qt4/mkspecs/hpux-g++/qmake.conf new file mode 100644 index 0000000..d6ce1ca --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-g++/qmake.conf @@ -0,0 +1,86 @@ +# +# +# qmake configuration for hpux-g++ +# +# We define _POSIX_C_SOURCE to 199506L when using threads, +# therefore we also need to redefine _HPUX_SOURCE. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl plugin_no_soname + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS -D_HPUX_SOURCE +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = /usr/lib/X11R6 +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /opt/Mesa/include /usr/contrib/X11R6/include +TQMAKE_LIBDIR_OPENGL = /opt/Mesa/lib /usr/contrib/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = -Wl,+s +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -fPIC -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,+h, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,+b, +TQMAKE_HPUX_SHLIB = 1 +TQMAKE_EXTENSION_SHLIB = sl + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldld +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread +TQMAKE_LIBS_YACC = -ly + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/hpux-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/hpux-g++/qplatformdefs.h new file mode 100644 index 0000000..92ba0e4 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpux-g++/qplatformdefs.h @@ -0,0 +1,94 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dl.h> +#define TQT_HPUX_LD +#define TQT_NO_LIBRARY_UNLOAD + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// #ifdef __cplusplus +// extern "C" { +// #endif +// getres() is mangled because of missing extern "C" on +// HP-UX 11.x systems missing PHCO_23963 +#include <resolv.h> +// #ifdef __cplusplus +// } +// #endif +// Undeclared - at least on HP-UX 10.20. +extern "C" int res_init(); + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + +// presence of _XOPEN_UNIX can be used to detect HP-UX 10 or higher +#if !defined(_XOPEN_UNIX) +// HP-UX 9's select() didn't accept fd_set, yet. +#define select(a,b,c,d,e) select((a), (int *)(b), (int *)(c), (int *)(d), (e)) +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/hpuxi-acc-32/qmake.conf b/tqtinterface/qt4/mkspecs/hpuxi-acc-32/qmake.conf new file mode 100644 index 0000000..0b769d9 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpuxi-acc-32/qmake.conf @@ -0,0 +1,123 @@ +# +# +# qmake configuration for hpuxi-acc-32 +# +# We define _POSIX_C_SOURCE to 199506L when using threads, therefore +# we also need to redefine _HPUX_SOURCE. +# From pthread(3t): +# Some documentation will recommend the use of -D_REENTRANT for +# compilation. While this also functions properly, it is considered +# an obsolescent form. +# See pthread(3t) for more details. +# +# From the "HP aC++ Online Programmer's Guide": +# When +DA2.0W is specified: +# * 64-bit SVR4 Executable and Linking Format (ELF) object files +# are generated for PA-RISC 2.0. +# * The preprocessor predefined macro, __LP64__ is defined. +# * The correct path for 64-bit system and language libraries is +# selected. +# When +DD32 is specified: +# * The size of an int, long, or pointer data type is 32-bits. +# The size of an int data type is 32-bits. The size of a long or +# pointer data type is 64-bits. +# * This is the default, currently equivalent to +DA1.1 architecture. +# When +DD64 is specified: +# * The size of an int data type is 32-bits. The size of a long or +# pointer data type is 64-bits. +# * This is currently equivalent to +DA2.OW architecture. +# * The preprocessor predefined macro, __LP64__ is defined. +# Using +DS to Specify Instruction Scheduling: +# * By default, the compiler performs scheduling tuned for the system +# on which you are compiling, or, if specified, tuned for the setting +# of the +DA option. +# +# From the online "C/HP-UX Reference Manual": +# -Aa +# Enables strict ANSI C compliance. +# -Ae +# Enables ANSI C compliance, HP value-added features (as described +# for +e option), and _HPUX_SOURCE name space macro. It is equivalent +# to -Aa +e -D_HPUX_SOURCE. +# +e +# Enables the following HP value added features while compiling in +# ANSI C mode: sized enum, long long, long pointers, compiler supplied +# defaults for missing arguments to intrinsic calls, and $ in identifier +# HP C extensions. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release plugin_no_soname + +TQMAKE_CC = cc +TQMAKE_LEX = lex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +DD32 +DSitanium -w +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = +O2 +Osize +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +Z +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE + +TQMAKE_CXX = aCC +TQMAKE_CXXFLAGS = +DD32 +DSitanium -w -D__STRICT_ANSI__ -D_HPUX_SOURCE +TQMAKE_CXXFLAGS_DEPS = +M +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/include/X11R6 +TQMAKE_LIBDIR_X11 = /usr/lib/hpux32/X11R6 +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include +TQMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib/hpux32 /usr/contrib/X11R6/lib/hpux32 + +TQMAKE_LINK = aCC +TQMAKE_LINK_SHLIB = aCC +TQMAKE_LFLAGS = +DD32 +DSitanium -Wl,+s +TQMAKE_LFLAGS_RELEASE = +O2 +TQMAKE_LFLAGS_DEBUG = -g +TQMAKE_LFLAGS_SHLIB = -b -Wl,-a,shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,+h, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = + +TQMAKE_LIBS = -lm +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lXt +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu -lXt +TQMAKE_LIBS_THREAD = -lpthread +TQMAKE_LIBS_YACC = -ly + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/hpuxi-acc-32/qplatformdefs.h b/tqtinterface/qt4/mkspecs/hpuxi-acc-32/qplatformdefs.h new file mode 100644 index 0000000..eee8d00 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpuxi-acc-32/qplatformdefs.h @@ -0,0 +1,88 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dl.h> +#define TQT_HPUX_LD +#define TQT_NO_LIBRARY_UNLOAD + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// #ifdef __cplusplus +// extern "C" { +// #endif +// getres() is mangled because of missing extern "C" on +// HP-UX 11.x systems missing PHCO_23963 +#include <resolv.h> +// #ifdef __cplusplus +// } +// #endif +// Undeclared - at least on HP-UX 10.20. +extern "C" int res_init(); + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/hpuxi-acc-64/qmake.conf b/tqtinterface/qt4/mkspecs/hpuxi-acc-64/qmake.conf new file mode 100644 index 0000000..a4e18b1 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpuxi-acc-64/qmake.conf @@ -0,0 +1,123 @@ +# +# +# qmake configuration for hpuxi-acc-64 +# +# We define _POSIX_C_SOURCE to 199506L when using threads, therefore +# we also need to redefine _HPUX_SOURCE. +# From pthread(3t): +# Some documentation will recommend the use of -D_REENTRANT for +# compilation. While this also functions properly, it is considered +# an obsolescent form. +# See pthread(3t) for more details. +# +# From the "HP aC++ Online Programmer's Guide": +# When +DA2.0W is specified: +# * 64-bit SVR4 Executable and Linking Format (ELF) object files +# are generated for PA-RISC 2.0. +# * The preprocessor predefined macro, __LP64__ is defined. +# * The correct path for 64-bit system and language libraries is +# selected. +# When +DD32 is specified: +# * The size of an int, long, or pointer data type is 32-bits. +# The size of an int data type is 32-bits. The size of a long or +# pointer data type is 64-bits. +# * This is the default, currently equivalent to +DA1.1 architecture. +# When +DD64 is specified: +# * The size of an int data type is 32-bits. The size of a long or +# pointer data type is 64-bits. +# * This is currently equivalent to +DA2.OW architecture. +# * The preprocessor predefined macro, __LP64__ is defined. +# Using +DS to Specify Instruction Scheduling: +# * By default, the compiler performs scheduling tuned for the system +# on which you are compiling, or, if specified, tuned for the setting +# of the +DA option. +# +# From the online "C/HP-UX Reference Manual": +# -Aa +# Enables strict ANSI C compliance. +# -Ae +# Enables ANSI C compliance, HP value-added features (as described +# for +e option), and _HPUX_SOURCE name space macro. It is equivalent +# to -Aa +e -D_HPUX_SOURCE. +# +e +# Enables the following HP value added features while compiling in +# ANSI C mode: sized enum, long long, long pointers, compiler supplied +# defaults for missing arguments to intrinsic calls, and $ in identifier +# HP C extensions. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release plugin_no_soname + +TQMAKE_CC = cc +TQMAKE_LEX = lex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +DD64 +DSitanium -w +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = +O2 +Osize +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +Z +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE + +TQMAKE_CXX = aCC +TQMAKE_CXXFLAGS = +DD64 +DSitanium -w -D__STRICT_ANSI__ -D_HPUX_SOURCE +TQMAKE_CXXFLAGS_DEPS = +M +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/include/X11R6 +TQMAKE_LIBDIR_X11 = /usr/lib/hpux64/X11R6 +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /opt/graphics/OpenGL/include /usr/contrib/X11R6/include +TQMAKE_LIBDIR_OPENGL = /opt/graphics/OpenGL/lib/hpux64 /usr/contrib/X11R6/lib/hpux64 + +TQMAKE_LINK = aCC +TQMAKE_LINK_SHLIB = aCC +TQMAKE_LFLAGS = +DD64 +DSitanium -Wl,+s +TQMAKE_LFLAGS_RELEASE = +O2 +TQMAKE_LFLAGS_DEBUG = -g +TQMAKE_LFLAGS_SHLIB = -b -Wl,-a,shared_archive +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,+h, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = + +TQMAKE_LIBS = -lm +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lXt +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu -lXt +TQMAKE_LIBS_THREAD = -lpthread +TQMAKE_LIBS_YACC = -ly + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/hpuxi-acc-64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/hpuxi-acc-64/qplatformdefs.h new file mode 100644 index 0000000..eee8d00 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hpuxi-acc-64/qplatformdefs.h @@ -0,0 +1,88 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dl.h> +#define TQT_HPUX_LD +#define TQT_NO_LIBRARY_UNLOAD + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// #ifdef __cplusplus +// extern "C" { +// #endif +// getres() is mangled because of missing extern "C" on +// HP-UX 11.x systems missing PHCO_23963 +#include <resolv.h> +// #ifdef __cplusplus +// } +// #endif +// Undeclared - at least on HP-UX 10.20. +extern "C" int res_init(); + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/hurd-g++/qmake.conf b/tqtinterface/qt4/mkspecs/hurd-g++/qmake.conf new file mode 100644 index 0000000..6c43133 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hurd-g++/qmake.conf @@ -0,0 +1,77 @@ +# +# +# qmake configuration for hurd-g++ +# +# Submitted by uch@nop.or.jp as "gnu-g++". +# Renamed to "hurd-g++" because people were confusing GNU/Hurd with GNU/Linux. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = -Wl,-rpath=/lib:/usr/X11R6/lib:$(TQTDIR)/lib +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_QT = -lqt + +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/hurd-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/hurd-g++/qplatformdefs.h new file mode 100644 index 0000000..dd4b592 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/hurd-g++/qplatformdefs.h @@ -0,0 +1,103 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T socklen_t + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/irix-cc-64/qmake.conf b/tqtinterface/qt4/mkspecs/irix-cc-64/qmake.conf new file mode 100644 index 0000000..0c057c0 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/irix-cc-64/qmake.conf @@ -0,0 +1,114 @@ +# +# +# qmake configuration for irix-cc-64 +# +# From cc(1): +# -64 +# Generates a 64-bit object. This defaults to -mips4 if -mips3 has +# not been specified. +# -LANG: ... +# The language feature option group controls the source language +# interpretation assumed by the compiler. The individual controls +# in this group are as follows: +# ansi-for-init-scope [ = ( ON|OFF ) ] +# Enables or disables the ANSI scoping rules for for-init +# declarations (the scope of the name declared extends to +# the end of the for statement). This enables the behavior +# that is required by the C++ standard. The default value +# is OFF, which is the ARM behavior (the scope of the name +# declared extends to the end of the block enclosing the for +# statement). +# bool [ = ( ON|OFF ) ] +# Enables or disables the predefined bool data type, along +# with the predefined values true and false. Use this option +# only to suppress this type in old code that defines bool +# itself. Because this option changes the mangling of function +# names with bool parameters, all files comprising a program +# should be compiled with consistent options. +# Default is ON. +# The _BOOL feature macro can be used in #ifdefs to do conditional +# compilation based on whether or not this option is enabled. +# std +# Enables use of the standard C++ library and standard- +# conforming iostream library. Specifying this flag also +# triggers other standard-conforming behavior, such as the +# new rules for the scope of for loop initializers. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -64 -signed -woff 1021,1209,1233,1314,1355,1375,1506 +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -fullwarn +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -O2 -OPT:Olimit=3000 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = -woff 1110,1174,3262 +TQMAKE_CFLAGS_THREAD = + +TQMAKE_CXX = CC +TQMAKE_CXXFLAGS = -64 -signed -woff 1021,1209,1233,1314,1355,1375,1424,1506,1681,1682,3496 +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = CC +TQMAKE_LINK_SHLIB = CC +TQMAKE_LFLAGS = -64 +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lm +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = CC -ar -o +TQMAKE_RANLIB = + +TQMAKE_CLEAN = -r $(OBJECTS_DIR)so_locations $(OBJECTS_DIR)ii_files + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/irix-cc-64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/irix-cc-64/qplatformdefs.h new file mode 100644 index 0000000..da6960c --- /dev/null +++ b/tqtinterface/qt4/mkspecs/irix-cc-64/qplatformdefs.h @@ -0,0 +1,92 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On IRIX header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500) +#define TQT_SOCKLEN_T size_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if 0 +// on Irix 6.5 and better only - but how to check for it? +#if defined(_SGIAPI) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif +#endif + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/irix-cc-o32/qmake.conf b/tqtinterface/qt4/mkspecs/irix-cc-o32/qmake.conf new file mode 100644 index 0000000..6e9d06a --- /dev/null +++ b/tqtinterface/qt4/mkspecs/irix-cc-o32/qmake.conf @@ -0,0 +1,88 @@ +# +# +# qmake configuration for irix-cc-o32 +# +# From cc(1): +# -o32 or -32 +# Generates an (old) 32-bit object. See the o32(5) man page for +# option descriptions and details. This defaults to -mips2 if +# -mips1 has not been specified. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS = -o32 -signed -woff 3115,3203,3260,3672,3937 +TQMAKE_CFLAGS_WARN_ON = -fullwarn +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -O2 -Olimit 3000 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = -woff 3203,3262 +TQMAKE_CFLAGS_THREAD = + +TQMAKE_CXX = CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = CC +TQMAKE_LINK_SHLIB = CC +TQMAKE_LFLAGS = -o32 +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lm +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = + +TQMAKE_CLEAN = -r $(OBJECTS_DIR)so_locations $(OBJECTS_DIR)ii_files + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/irix-cc-o32/qplatformdefs.h b/tqtinterface/qt4/mkspecs/irix-cc-o32/qplatformdefs.h new file mode 100644 index 0000000..0d7299e --- /dev/null +++ b/tqtinterface/qt4/mkspecs/irix-cc-o32/qplatformdefs.h @@ -0,0 +1,88 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On IRIX header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + +#if 0 +// on Irix 6.5 and better only - but how to check for it? +#if defined(_SGIAPI) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif +#endif + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/irix-cc/qmake.conf b/tqtinterface/qt4/mkspecs/irix-cc/qmake.conf new file mode 100644 index 0000000..a85bc56 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/irix-cc/qmake.conf @@ -0,0 +1,114 @@ +# +# +# qmake configuration for irix-cc +# +# From cc(1): +# -n32 +# Generates a (new) 32-bit object. This defaults to -mips3 if +# -mips4 has not been specified. +# -LANG: ... +# The language feature option group controls the source language +# interpretation assumed by the compiler. The individual controls +# in this group are as follows: +# ansi-for-init-scope [ = ( ON|OFF ) ] +# Enables or disables the ANSI scoping rules for for-init +# declarations (the scope of the name declared extends to +# the end of the for statement). This enables the behavior +# that is required by the C++ standard. The default value +# is OFF, which is the ARM behavior (the scope of the name +# declared extends to the end of the block enclosing the for +# statement). +# bool [ = ( ON|OFF ) ] +# Enables or disables the predefined bool data type, along +# with the predefined values true and false. Use this option +# only to suppress this type in old code that defines bool +# itself. Because this option changes the mangling of function +# names with bool parameters, all files comprising a program +# should be compiled with consistent options. +# Default is ON. +# The _BOOL feature macro can be used in #ifdefs to do conditional +# compilation based on whether or not this option is enabled. +# std +# Enables use of the standard C++ library and standard- +# conforming iostream library. Specifying this flag also +# triggers other standard-conforming behavior, such as the +# new rules for the scope of for loop initializers. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -n32 -signed -woff 1021,1209,1233,1314,1355,1375,1506 +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -fullwarn +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -O2 -OPT:Olimit=3000 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = -woff 1110,1174,3262 +TQMAKE_CFLAGS_THREAD = + +TQMAKE_CXX = CC +TQMAKE_CXXFLAGS = -n32 -signed -woff 1021,1209,1233,1314,1355,1375,1424,1506,1681,1682,3496 +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = CC +TQMAKE_LINK_SHLIB = CC +TQMAKE_LFLAGS = -n32 +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lm +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = CC -ar -o +TQMAKE_RANLIB = + +TQMAKE_CLEAN = -r $(OBJECTS_DIR)so_locations $(OBJECTS_DIR)ii_files + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/irix-cc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/irix-cc/qplatformdefs.h new file mode 100644 index 0000000..da6960c --- /dev/null +++ b/tqtinterface/qt4/mkspecs/irix-cc/qplatformdefs.h @@ -0,0 +1,92 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On IRIX header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500) +#define TQT_SOCKLEN_T size_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if 0 +// on Irix 6.5 and better only - but how to check for it? +#if defined(_SGIAPI) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif +#endif + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/irix-g++/qmake.conf b/tqtinterface/qt4/mkspecs/irix-g++/qmake.conf new file mode 100644 index 0000000..f362993 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/irix-g++/qmake.conf @@ -0,0 +1,85 @@ +# +# +# qmake configuration for irix-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared -Wl,-LD_LAYOUT:lgot_buffer=1000 +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = -lC +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +# libGLU is using the SGI C++ library internally and this somehow clashes +# with the GNU C++ library (similar name mangling and symbol names?) +# so we add -lC so that the SGI C++ library is used first... +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = + +TQMAKE_CLEAN = so_locations + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/irix-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/irix-g++/qplatformdefs.h new file mode 100644 index 0000000..0d59e9b --- /dev/null +++ b/tqtinterface/qt4/mkspecs/irix-g++/qplatformdefs.h @@ -0,0 +1,97 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On IRIX header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#if defined(_LANGUAGE_C_PLUS_PLUS) || !defined(_SGIAPI) +#define TQT_SIGNAL_ARGS int +#else +#define TQT_SIGNAL_ARGS void +#endif +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500) +#define TQT_SOCKLEN_T size_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if 0 +// on Irix 6.5 and better only - but how to check for it? +#if defined(_SGIAPI) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif +#endif + +#endif // TQPLATFORMDEFS_H + diff --git a/tqtinterface/qt4/mkspecs/linux-cxx/qmake.conf b/tqtinterface/qt4/mkspecs/linux-cxx/qmake.conf new file mode 100644 index 0000000..e2304e4 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-cxx/qmake.conf @@ -0,0 +1,78 @@ +# +# +# qmake configuration for linux-cxx +# +# Written for Compaq C++ for GNU/Linux on Alpha (discontinued). +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = ccc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -w +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = -Olimit 1000 + +TQMAKE_CXX = cxx +TQMAKE_CXXFLAGS = -w +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = cxx +TQMAKE_LINK_SHLIB = cxx +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = -lnsl +TQMAKE_LIBS_QT = -lqt + +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/linux-cxx/tqplatformdefs.h b/tqtinterface/qt4/mkspecs/linux-cxx/tqplatformdefs.h new file mode 100644 index 0000000..1732994 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-cxx/tqplatformdefs.h @@ -0,0 +1,106 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/linux-ecc-64/qmake.conf b/tqtinterface/qt4/mkspecs/linux-ecc-64/qmake.conf new file mode 100644 index 0000000..a282fdd --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-ecc-64/qmake.conf @@ -0,0 +1,85 @@ +# +# +# qmake configuration for linux-ecc-64 +# +# Written for Intel C++ 7.1, and 8.0 for Linux. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = ecc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -KPIC +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = ecpc +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = ecpc +TQMAKE_LINK_SHLIB = ecpc +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Qoption,ld,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Qoption,ld,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = -lnsl +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_CLEAN = -r $(OBJECTS_DIR)/ti_files + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/linux-ecc-64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/linux-ecc-64/qplatformdefs.h new file mode 100644 index 0000000..1732994 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-ecc-64/qplatformdefs.h @@ -0,0 +1,106 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/linux-g++-32/qmake.conf b/tqtinterface/qt4/mkspecs/linux-g++-32/qmake.conf new file mode 100644 index 0000000..7329713 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-g++-32/qmake.conf @@ -0,0 +1,89 @@ +# +# +# qmake configuration for linux-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release incremental link_prl +TQMAKE_INCREMENTAL_STYLE = sublib + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_YACCFLAGS_MANGLE = -p $base -b $base +TQMAKE_YACC_HEADER = $base.tab.h +TQMAKE_YACC_SOURCE = $base.tab.c +TQMAKE_CFLAGS = -m32 -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = -m32 +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = -lnsl +TQMAKE_LIBS_QT = -ltqt +TQMAKE_LIBS_TQT_THREAD = -ltqt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = moc-qt4 +TQMAKE_UIC = $(TQTDIR)/bin/uic-tqt + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_COPY_FILE = $(COPY) +TQMAKE_COPY_DIR = $(COPY) -r +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_STRIP = strip +TQMAKE_STRIPFLAGS_LIB += --strip-unneeded +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/linux-g++-32/tqplatformdefs.h b/tqtinterface/qt4/mkspecs/linux-g++-32/tqplatformdefs.h new file mode 100644 index 0000000..1732994 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-g++-32/tqplatformdefs.h @@ -0,0 +1,106 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/linux-g++-64/qmake.conf b/tqtinterface/qt4/mkspecs/linux-g++-64/qmake.conf new file mode 100644 index 0000000..f6b3670 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-g++-64/qmake.conf @@ -0,0 +1,92 @@ +# +# +# qmake configuration for linux-g++ +# +# mkspec for platforms that have both lib and lib64 +# directories, like the AMD Opteron. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release incremental link_prl +TQMAKE_INCREMENTAL_STYLE = sublib + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_YACCFLAGS_MANGLE = -p $base -b $base +TQMAKE_YACC_HEADER = $base.tab.h +TQMAKE_YACC_SOURCE = $base.tab.c +TQMAKE_CFLAGS = -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib64 +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib64 + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = -lnsl +TQMAKE_LIBS_QT = -ltqt +TQMAKE_LIBS_TQT_THREAD = -ltqt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = moc-qt4 +TQMAKE_UIC = $(TQTDIR)/bin/uic-tqt + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_COPY_FILE = $(COPY) +TQMAKE_COPY_DIR = $(COPY) -r +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_STRIP = strip +TQMAKE_STRIPFLAGS_LIB += --strip-unneeded +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/linux-g++-64/tqplatformdefs.h b/tqtinterface/qt4/mkspecs/linux-g++-64/tqplatformdefs.h new file mode 100644 index 0000000..1732994 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-g++-64/tqplatformdefs.h @@ -0,0 +1,106 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/linux-g++/qmake.conf b/tqtinterface/qt4/mkspecs/linux-g++/qmake.conf new file mode 100644 index 0000000..dfd63a5 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-g++/qmake.conf @@ -0,0 +1,89 @@ +# +# +# qmake configuration for linux-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release incremental link_prl +TQMAKE_INCREMENTAL_STYLE = sublib + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_YACCFLAGS_MANGLE = -p $base -b $base +TQMAKE_YACC_HEADER = $base.tab.h +TQMAKE_YACC_SOURCE = $base.tab.c +TQMAKE_CFLAGS = -pipe -I/usr/include/qt4/ +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = -lQtCore -lQtGui -lQtNetwork +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = -lnsl +TQMAKE_LIBS_QT = -ltqt +TQMAKE_LIBS_TQT_THREAD = -ltqt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = moc-qt4 +TQMAKE_UIC = $(TQTDIR)/bin/uic-tqt + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_COPY_FILE = $(COPY) +TQMAKE_COPY_DIR = $(COPY) -r +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_STRIP = strip +TQMAKE_STRIPFLAGS_LIB += --strip-unneeded +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/linux-g++/tqplatformdefs.h b/tqtinterface/qt4/mkspecs/linux-g++/tqplatformdefs.h new file mode 100644 index 0000000..1732994 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-g++/tqplatformdefs.h @@ -0,0 +1,106 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/linux-icc/qmake.conf b/tqtinterface/qt4/mkspecs/linux-icc/qmake.conf new file mode 100644 index 0000000..a655550 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-icc/qmake.conf @@ -0,0 +1,85 @@ +# +# +# qmake configuration for linux-icc +# +# Written for Intel C++ 5.0.1, 6.0.1, 7.0, and 8.0 for Linux. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = icc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -KPIC +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = icpc +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = icpc +TQMAKE_LINK_SHLIB = icpc +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Qoption,ld,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Qoption,ld,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = -lnsl +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_CLEAN = -r $(OBJECTS_DIR)/ti_files + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/linux-icc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/linux-icc/qplatformdefs.h new file mode 100644 index 0000000..1732994 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-icc/qplatformdefs.h @@ -0,0 +1,106 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/linux-kcc/qmake.conf b/tqtinterface/qt4/mkspecs/linux-kcc/qmake.conf new file mode 100644 index 0000000..4b6df8a --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-kcc/qmake.conf @@ -0,0 +1,92 @@ +# +# +# qmake configuration for linux-kcc +# +# Written for KAI C++ 4.0f for GNU/Linux (discontinued). +# +# From the KAI C++ man page for Linux: +# --[no_]thread_safe +# [Waive or] Request thread-safe handling of system-allocated objects. +# To guarantee thread safety, this option must be used when both +# compiling and linking. Thread-safe C++ is not link-compatible with +# (the default) non-thread-safe C++. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = KCC +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = --c --display_error_number --backend -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = +K2 +TQMAKE_CFLAGS_DEBUG = +K0 +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = --diag_suppress 111,177 +TQMAKE_CFLAGS_THREAD = --thread_safe + +TQMAKE_CXX = KCC +TQMAKE_CXXFLAGS = --display_error_number --diag_suppress 611,1142 --backend -pipe +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = KCC +TQMAKE_LINK_SHLIB = KCC +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = --soname$$LITERAL_WHITESPACE +TQMAKE_LFLAGS_THREAD = --thread_safe +TQMAKE_RPATH = -rpath$$LITERAL_WHITESPACE + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = -lnsl +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_CLEAN = -r $(OBJECTS_DIR)ti_files + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/linux-kcc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/linux-kcc/qplatformdefs.h new file mode 100644 index 0000000..235d428 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-kcc/qplatformdefs.h @@ -0,0 +1,109 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> +// KAI C++ has at the moment problems with unloading the TQt plugins. +// So don't unload them as a workaround for now. +#define TQT_NO_LIBRARY_UNLOAD + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/linux-kylix/qmake.conf b/tqtinterface/qt4/mkspecs/linux-kylix/qmake.conf new file mode 100644 index 0000000..a63f9db --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-kylix/qmake.conf @@ -0,0 +1,83 @@ +# +# +# qmake configuration for linux-kylix +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release incremental link_prl +TQMAKE_INCREMENTAL_STYLE = sublib + +TQMAKE_CC = bc++ +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -m +TQMAKE_CFLAGS_WARN_ON = -w +TQMAKE_CFLAGS_WARN_OFF = -w- +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -v -y +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = + +TQMAKE_CXX = bc++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS -P +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = bc++ +TQMAKE_LINK_SHLIB = bc++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = -lv -ly +TQMAKE_LFLAGS_SHLIB = -ltD -lTpd +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -lN +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -llibdl +TQMAKE_LIBS_X11 = -llibXext -llibX11 -llibm +TQMAKE_LIBS_X11SM = -llibSM -llibICE +TQMAKE_LIBS_NIS = -llibnsl +TQMAKE_LIBS_QT = -llibtqt +TQMAKE_LIBS_TQT_THREAD = -llibtqt-mt +TQMAKE_LIBS_OPENGL = -llibGLU -llibGL -llibXmu +TQMAKE_LIBS_OPENGL_QT = -llibGL -llibXmu +TQMAKE_LIBS_THREAD = -llibpthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_STRIP = strip +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/linux-kylix/qplatformdefs.h b/tqtinterface/qt4/mkspecs/linux-kylix/qplatformdefs.h new file mode 100644 index 0000000..1732994 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-kylix/qplatformdefs.h @@ -0,0 +1,106 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/linux-pgcc/qmake.conf b/tqtinterface/qt4/mkspecs/linux-pgcc/qmake.conf new file mode 100644 index 0000000..aea416f --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-pgcc/qmake.conf @@ -0,0 +1,83 @@ +# +# +# qmake configuration for linux-pgcc +# +# Written for Portland Group C++ for Intel. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = pgcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -fast +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fpic +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = pgCC +TQMAKE_CXXFLAGS = --display_error_number $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = pgCC +TQMAKE_LINK_SHLIB = pgCC +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -R + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = -lnsl +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/linux-pgcc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/linux-pgcc/qplatformdefs.h new file mode 100644 index 0000000..1732994 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/linux-pgcc/qplatformdefs.h @@ -0,0 +1,106 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// DNS system header files are a mess! +// <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using +// 'u_char' and includes <sys/types.h>. Now the problem is that +// <sys/types.h> defines 'u_char' only if __USE_BSD is defined. +// __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/lynxos-g++/qmake.conf b/tqtinterface/qt4/mkspecs/lynxos-g++/qmake.conf new file mode 100644 index 0000000..38c9f59 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/lynxos-g++/qmake.conf @@ -0,0 +1,86 @@ +# +# +# qmake configuration for lynxos-g++ +# +# Written for LynxOS 4.0. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release incremental link_prl +TQMAKE_INCREMENTAL_STYLE = sublib + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/include/X11 +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/include/GL +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = -lnsl +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_STRIP = strip +TQMAKE_STRIPFLAGS_LIB += --strip-unneeded +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/lynxos-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/lynxos-g++/qplatformdefs.h new file mode 100644 index 0000000..ee7429d --- /dev/null +++ b/tqtinterface/qt4/mkspecs/lynxos-g++/qplatformdefs.h @@ -0,0 +1,91 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <arpa/inet.h> +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/macx-g++/Info.plist.app b/tqtinterface/qt4/mkspecs/macx-g++/Info.plist.app new file mode 100644 index 0000000..4da07e9 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-g++/Info.plist.app @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> +<plist version="0.9"> +<dict> + <key>CFBundleIconFile</key> + <string>@ICON@</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleGetInfoString</key> + <string>Created by Qt/QMake</string> + <key>CFBundleSignature</key> + <string>ttxt</string> + <key>CFBundleExecutable</key> + <string>@EXECUTABLE@</string> + <key>NOTE</key> + <string>Please, do NOT change this file -- It was generated by Qt/QMake.</string> +</dict> +</plist> diff --git a/tqtinterface/qt4/mkspecs/macx-g++/qmake.conf b/tqtinterface/qt4/mkspecs/macx-g++/qmake.conf new file mode 100644 index 0000000..4317fe7 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-g++/qmake.conf @@ -0,0 +1,89 @@ +# +# +# qmake configuration for macx-g++ (Mac OS X + command-line compiler) +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release resource_fork incremental global_init_link_order lib_version_first plugin_no_soname link_prl +TQMAKE_INCREMENTAL_STYLE = sublibs + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_YACCFLAGS_MANGLE = -p $base -b $base +TQMAKE_YACC_HEADER = $base.tab.h +TQMAKE_YACC_SOURCE = $base.tab.c +TQMAKE_RESOURCE = /Developer/Tools/Rez +TQMAKE_CFLAGS = -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -Os +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_EXTENSION_SHLIB = dylib +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses + +TQMAKE_CXX = c++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC + +TQMAKE_LIBDIR = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \ + /System/Library/Frameworks/AGL.framework/Headers/ + +TQMAKE_LINK = $$TQMAKE_CXX +TQMAKE_LINK_SHLIB = $$TQMAKE_CXX +TQMAKE_LFLAGS = -headerpad_max_install_names +#TQMAKE_LFLAGS_PREBIND = -seg1addr 0x90000000 +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_APP = -prebind +TQMAKE_LFLAGS_SHLIB = -prebind -dynamiclib +TQMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace +TQMAKE_LFLAGS_PLUGIN = -bundle +#You probably don't want to mess with this, instead look at install_name_tool(1) +#TQMAKE_LFLAGS_SONAME = -install_name$${LITERAL_WHITESPACE}@executable_path/../Frameworks/ +TQMAKE_LFLAGS_SONAME = -install_name$${LITERAL_WHITESPACE} +TQMAKE_LFLAGS_THREAD = + +TQMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE} +TQMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE} + +TQMAKE_RPATH = + +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL +TQMAKE_LIBS_OPENGL_QT = $$TQMAKE_LIBS_OPENGL +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = ranlib -s + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_COPY_FILE = $$TQMAKE_COPY +TQMAKE_COPY_DIR = $$TQMAKE_COPY -r +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/macx-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/macx-g++/qplatformdefs.h new file mode 100644 index 0000000..400be89 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-g++/qplatformdefs.h @@ -0,0 +1,88 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#define TQT_NO_LIBRARY_UNLOAD + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE (void (*)(int))1 + +#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/macx-mwerks/README b/tqtinterface/qt4/mkspecs/macx-mwerks/README new file mode 100644 index 0000000..d17b981 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-mwerks/README @@ -0,0 +1,2 @@ +This Metrowerks mkspecs is included for historical purposes. It is +UNSUPPORTED, untested, and not known to work. diff --git a/tqtinterface/qt4/mkspecs/macx-mwerks/mwerkstmpl.xml b/tqtinterface/qt4/mkspecs/macx-mwerks/mwerkstmpl.xml new file mode 100644 index 0000000..b116530 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-mwerks/mwerkstmpl.xml @@ -0,0 +1,826 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<?codewarrior exportversion="1.0.1" ideversion="4.2" ?> + +<!DOCTYPE PROJECT [ +<!ELEMENT PROJECT (TARGETLIST, TARGETORDER, GROUPLIST, DESIGNLIST?)> +<!ELEMENT TARGETLIST (TARGET+)> +<!ELEMENT TARGET (NAME, SETTINGLIST, FILELIST?, LINKORDER?, SEGMENTLIST?, OVERLAYGROUPLIST?, SUBTARGETLIST?, SUBPROJECTLIST?, FRAMEWORKLIST)> +<!ELEMENT NAME (#PCDATA)> +<!ELEMENT USERSOURCETREETYPE (#PCDATA)> +<!ELEMENT PATH (#PCDATA)> +<!ELEMENT FILELIST (FILE*)> +<!ELEMENT FILE (PATHTYPE, PATHROOT?, ACCESSPATH?, PATH, PATHFORMAT?, ROOTFILEREF?, FILEKIND?, FILEFLAGS?)> +<!ELEMENT PATHTYPE (#PCDATA)> +<!ELEMENT PATHROOT (#PCDATA)> +<!ELEMENT ACCESSPATH (#PCDATA)> +<!ELEMENT PATHFORMAT (#PCDATA)> +<!ELEMENT ROOTFILEREF (PATHTYPE, PATHROOT?, ACCESSPATH?, PATH, PATHFORMAT?)> +<!ELEMENT FILEKIND (#PCDATA)> +<!ELEMENT FILEFLAGS (#PCDATA)> +<!ELEMENT FILEREF (TARGETNAME?, PATHTYPE, PATHROOT?, ACCESSPATH?, PATH, PATHFORMAT?)> +<!ELEMENT TARGETNAME (#PCDATA)> +<!ELEMENT SETTINGLIST ((SETTING|PANELDATA)+)> +<!ELEMENT SETTING (NAME?, (VALUE|(SETTING+)))> +<!ELEMENT PANELDATA (NAME, VALUE)> +<!ELEMENT VALUE (#PCDATA)> +<!ELEMENT LINKORDER (FILEREF*)> +<!ELEMENT SEGMENTLIST (SEGMENT+)> +<!ELEMENT SEGMENT (NAME, ATTRIBUTES?, FILEREF*)> +<!ELEMENT ATTRIBUTES (#PCDATA)> +<!ELEMENT OVERLAYGROUPLIST (OVERLAYGROUP+)> +<!ELEMENT OVERLAYGROUP (NAME, BASEADDRESS, OVERLAY*)> +<!ELEMENT BASEADDRESS (#PCDATA)> +<!ELEMENT OVERLAY (NAME, FILEREF*)> +<!ELEMENT SUBTARGETLIST (SUBTARGET+)> +<!ELEMENT SUBTARGET (TARGETNAME, ATTRIBUTES?, FILEREF?)> +<!ELEMENT SUBPROJECTLIST (SUBPROJECT+)> +<!ELEMENT SUBPROJECT (FILEREF, SUBPROJECTTARGETLIST)> +<!ELEMENT SUBPROJECTTARGETLIST (SUBPROJECTTARGET*)> +<!ELEMENT SUBPROJECTTARGET (TARGETNAME, ATTRIBUTES?, FILEREF?)> +<!ELEMENT FRAMEWORKLIST (FRAMEWORK+)> +<!ELEMENT FRAMEWORK (FILEREF, LIBRARYFILE?, VERSION?)> +<!ELEMENT LIBRARYFILE (FILEREF)> +<!ELEMENT VERSION (#PCDATA)> +<!ELEMENT TARGETORDER (ORDEREDTARGET|ORDEREDDESIGN)*> +<!ELEMENT ORDEREDTARGET (NAME)> +<!ELEMENT ORDEREDDESIGN (NAME, ORDEREDTARGET+)> +<!ELEMENT GROUPLIST (GROUP|FILEREF)*> +<!ELEMENT GROUP (NAME, (GROUP|FILEREF)*)> +<!ELEMENT DESIGNLIST (DESIGN+)> +<!ELEMENT DESIGN (NAME, DESIGNDATA)> +<!ELEMENT DESIGNDATA (#PCDATA)> +]> + +<PROJECT> + <TARGETLIST> + <TARGET> + <NAME>$$TARGET_STEM</NAME> + <SETTINGLIST> + + <!-- Settings for "Source Trees" panel --> + <SETTING><NAME>UserSourceTrees</NAME><VALUE></VALUE></SETTING> + + <!-- Settings for "Access Paths" panel --> + <SETTING><NAME>AlwaysSearchUserPaths</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>InterpretDOSAndUnixPaths</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>RequireFrameworkStyleIncludes</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>UserSearchPaths</NAME> + <SETTING> + <SETTING><NAME>SearchPath</NAME> + <SETTING><NAME>Path</NAME><VALUE>:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>Project</VALUE></SETTING> + </SETTING> + <SETTING><NAME>Recursive</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING> + </SETTING> + </SETTING> + <SETTING><NAME>SystemSearchPaths</NAME> + <SETTING> + <SETTING><NAME>SearchPath</NAME> + <SETTING><NAME>Path</NAME><VALUE>:usr:include:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>OS X Volume</VALUE></SETTING> + </SETTING> + <SETTING><NAME>Recursive</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>SearchPath</NAME> + <SETTING><NAME>Path</NAME><VALUE>:usr:include:sys:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>OS X Volume</VALUE></SETTING> + </SETTING> + <SETTING><NAME>Recursive</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>SearchPath</NAME> + <SETTING><NAME>Path</NAME><VALUE>:MSL:MSL_C:MSL_MacOS:Include:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>CodeWarrior</VALUE></SETTING> + </SETTING> + <SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>SearchPath</NAME> + <SETTING><NAME>Path</NAME><VALUE>:MSL:MSL_C++:MSL_Common:Include:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>CodeWarrior</VALUE></SETTING> + </SETTING> + <SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>SearchPath</NAME> + <SETTING><NAME>Path</NAME><VALUE>:MSL:MSL_C:MSL_Common:Include:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>CodeWarrior</VALUE></SETTING> + </SETTING> + <SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING> + </SETTING> +$$CODEWARRIOR_DEPENDPATH +$$CODEWARRIOR_INCLUDEPATH + <SETTING> + <SETTING><NAME>SearchPath</NAME> + <SETTING><NAME>Path</NAME><VALUE>:usr:lib:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>OS X Volume</VALUE></SETTING> + </SETTING> + <SETTING><NAME>Recursive</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>SearchPath</NAME> + <SETTING><NAME>Path</NAME><VALUE>:MacOS X Support:Libraries:Runtime:Libs:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>CodeWarrior</VALUE></SETTING> + </SETTING> + <SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>SearchPath</NAME> + <SETTING><NAME>Path</NAME><VALUE>:MSL:MSL_C++:MSL_MacOS:Lib:Mach-O:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>CodeWarrior</VALUE></SETTING> + </SETTING> + <SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING> + </SETTING> +$$CODEWARRIOR_FRAMEWORKPATH + </SETTING> + + + <!-- Settings for "Debugger Runtime" panel --> + <SETTING><NAME>MWRuntimeSettings_WorkingDirectory</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWRuntimeSettings_CommandLine</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWRuntimeSettings_HostApplication</NAME> + <SETTING><NAME>Path</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>Generic</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>Absolute</VALUE></SETTING> + </SETTING> + <SETTING><NAME>MWRuntimeSettings_EnvVars</NAME> + <SETTING><VALUE>QTDIR=$$CODEWARRIOR_QTDIR</VALUE></SETTING> + </SETTING> + + <!-- Settings for "Target Settings" panel --> + <SETTING><NAME>Linker</NAME><VALUE>$$CODEWARRIOR_LINKER</VALUE></SETTING> + <SETTING><NAME>PreLinker</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>PostLinker</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Targetname</NAME><VALUE>$$TARGET_STEM</VALUE></SETTING> + <SETTING><NAME>OutputDirectory</NAME> +$$CODEWARRIOR_OUTPUT_DIR + </SETTING> + <SETTING><NAME>SaveEntriesUsingRelativePaths</NAME><VALUE>false</VALUE></SETTING> + + <!-- Settings for "File Mappings" panel --> + <SETTING><NAME>FileMappings</NAME> +<!-- + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.tqmocs</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>McMoc</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.uics</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>McMoc</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> +--> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>APPL</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>Appl</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>MDYL</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>Lib Import Mach-O</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>MLIB</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>Lib Import Mach-O</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>MMLB</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>Lib Import Mach-O</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>MPLF</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>Lib Import Mach-O</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>MWCD</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>RSRC</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>Rez</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.c</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>MW C/C++ MachPPC</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE>C/C++</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.c++</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>MW C/C++ MachPPC</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE>C/C++</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.cc</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>MW C/C++ MachPPC</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE>C/C++</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.cp</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>MW C/C++ MachPPC</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE>C/C++</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.cpp</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>MW C/C++ MachPPC</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE>C/C++</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.exp</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.h</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>MW C/C++ MachPPC</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE>C/C++</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>true</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.pch</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>MW C/C++ MachPPC</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE>C/C++</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.pch++</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>MW C/C++ MachPPC</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE>C/C++</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.r</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>Rez</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE>Rez</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>docu</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>rsrc</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>Rez</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.doc</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>true</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.lib</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>Lib Import Mach-O</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>shlb</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>PEF Import PPC</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.dylib</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>Lib Import Mach-O</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>false</VALUE></SETTING> + </SETTING> + <SETTING> + <SETTING><NAME>FileType</NAME><VALUE>TEXT</VALUE></SETTING> + <SETTING><NAME>FileExtension</NAME><VALUE>.tqmoc</VALUE></SETTING> + <SETTING><NAME>Compiler</NAME><VALUE>MW C/C++ MachPPC</VALUE></SETTING> + <SETTING><NAME>EditLanguage</NAME><VALUE>C/C++</VALUE></SETTING> + <SETTING><NAME>Precompile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Launchable</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourceFile</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>IgnoredByMake</NAME><VALUE>true</VALUE></SETTING> + </SETTING> + </SETTING> + + <!-- Settings for "Build Extras" panel --> + <SETTING><NAME>CacheModDates</NAME><VALUE>$$CODEWARRIOR_CACHEMODDATES</VALUE></SETTING> + <SETTING><NAME>ActivateBrowser</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>DumpBrowserInfo</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>CacheSubprojects</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>UseThirdPartyDebugger</NAME><VALUE>false</VALUE></SETTING> + + <!-- Settings for "Debugger Target" panel --> + <SETTING><NAME>LogSystemMessages</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>AutoTargetDLLs</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>StopAtWatchpoints</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>PauseWhileRunning</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>PauseInterval</NAME><VALUE>5</VALUE></SETTING> + <SETTING><NAME>PauseUIFlags</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>AltExePath</NAME> + <SETTING><NAME>Path</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>Generic</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>Absolute</VALUE></SETTING> + </SETTING> + <SETTING><NAME>StopAtTempBPOnLaunch</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>CacheSymbolics</NAME><VALUE>true</VALUE></SETTING> + <SETTING><NAME>TempBPFunctionName</NAME><VALUE>main</VALUE></SETTING> + <SETTING><NAME>TempBPType</NAME><VALUE>false</VALUE></SETTING> + + <!-- Settings for "Remote Debug" panel --> + <SETTING><NAME>Enabled</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ConnectionName</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>DownloadPath</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>LaunchRemoteApp</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>RemoteAppPath</NAME><VALUE></VALUE></SETTING> + + <!-- Settings for "Custom Keywords" panel --> + <SETTING><NAME>CustomColor1</NAME> + <SETTING><NAME>Red</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>Green</NAME><VALUE>32767</VALUE></SETTING> + <SETTING><NAME>Blue</NAME><VALUE>0</VALUE></SETTING> + </SETTING> + <SETTING><NAME>CustomColor2</NAME> + <SETTING><NAME>Red</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>Green</NAME><VALUE>32767</VALUE></SETTING> + <SETTING><NAME>Blue</NAME><VALUE>0</VALUE></SETTING> + </SETTING> + <SETTING><NAME>CustomColor3</NAME> + <SETTING><NAME>Red</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>Green</NAME><VALUE>32767</VALUE></SETTING> + <SETTING><NAME>Blue</NAME><VALUE>0</VALUE></SETTING> + </SETTING> + <SETTING><NAME>CustomColor4</NAME> + <SETTING><NAME>Red</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>Green</NAME><VALUE>32767</VALUE></SETTING> + <SETTING><NAME>Blue</NAME><VALUE>0</VALUE></SETTING> + </SETTING> + + <!-- Settings for "PPC CodeGen Mach-O" panel --> + <SETTING><NAME>MWCodeGen_MachO_structtqalignment</NAME><VALUE>PPC</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_tracebacktables</NAME><VALUE>Inline</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_processor</NAME><VALUE>Generic</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_readonlystrings</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_profiler</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_fpcontract</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_schedule</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_peephole</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_processorspecific</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_altivec</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_vrsave</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_common</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_implicit_templates</NAME><VALUE>1</VALUE></SETTING> + + <!-- Settings for "C/C++ Compiler" panel --> + <SETTING><NAME>MWFrontEnd_C_cplusplus</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_checkprotos</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_arm</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_trigraphs</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_onlystdkeywords</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_enumsalwaysint</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_mpwpointerstyle</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_prefixname</NAME><VALUE>$$CODEWARRIOR_PREFIX_HEADER</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_ansistrict</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_mpwcnewline</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_wchar_type</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_enableexceptions</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_dontreusestrings</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_poolstrings</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_dontinline</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_useRTTI</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_multibyteaware</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_unsignedchars</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_autoinline</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_booltruefalse</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_direct_to_som</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_som_env_check</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_alwaysinline</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_inlinelevel</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_ecplusplus</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_objective_c</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFrontEnd_C_defer_codegen</NAME><VALUE>0</VALUE></SETTING> + + <!-- Settings for "C/C++ Warnings" panel --> + <SETTING><NAME>MWWarning_C_warn_illpragma</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_warn_emptydecl</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_warn_possunwant</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_warn_unusedvar</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_warn_unusedarg</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_warn_extracomma</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_pedantic</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_warningerrors</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_warn_hidevirtual</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_warn_implicitconv</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_warn_notinlined</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWWarning_C_warn_structclass</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + + <!-- Settings for "FTP Panel" panel --> + <SETTING><NAME>MWFTP_Post_hostName</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_username</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_password</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_remoteDir</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_ftp_PathVersion</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_ftp_PathType</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_ftp_PathFormat</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_ftp_tree</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_uploadDir</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_ftp_port</NAME><VALUE>21</VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_SendBin</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWFTP_Post_ShouldLog</NAME><VALUE>1</VALUE></SETTING> + + <!-- Settings for "MacOS Merge Panel" panel --> + <SETTING><NAME>MWMerge_MacOS_projectType</NAME><VALUE>$$CODEWARRIOR_TEMPLATE</VALUE></SETTING> + <SETTING><NAME>MWMerge_MacOS_outputName</NAME><VALUE>Merge Out</VALUE></SETTING> + <SETTING><NAME>MWMerge_MacOS_outputCreator</NAME><VALUE>CUTE</VALUE></SETTING> + <SETTING><NAME>MWMerge_MacOS_outputType</NAME><VALUE>$$CODEWARRIOR_FILETYPE</VALUE></SETTING> + <SETTING><NAME>MWMerge_MacOS_suppressWarning</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWMerge_MacOS_copyFragments</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWMerge_MacOS_copyResources</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWMerge_MacOS_flattenResource</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWMerge_MacOS_flatFileName</NAME><VALUE>$$TARGET_STEM.rsrc</VALUE></SETTING> + <SETTING><NAME>MWMerge_MacOS_flatFileOutputPath</NAME> + <SETTING><NAME>Path</NAME><VALUE>:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>Project</VALUE></SETTING> + </SETTING> + <SETTING><NAME>MWMerge_MacOS_skipResources</NAME> + <SETTING><VALUE>DLGX</VALUE></SETTING> + <SETTING><VALUE>ckid</VALUE></SETTING> + <SETTING><VALUE>Proj</VALUE></SETTING> + <SETTING><VALUE>WSPC</VALUE></SETTING> + </SETTING> + + <!-- Settings for "Output Flags" panel --> + <SETTING><NAME>FileLocked</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>ResourcesMapIsReadOnly</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>PrinterDriverIsMultiFinderCompatible</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Invisible</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>HasBundle</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>NameLocked</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Stationery</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>HasCustomIcon</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Shared</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>HasBeenInited</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Label</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>Comments</NAME><VALUE></VALUE></SETTING> + +$$CODEWARRIOR_PACKAGER_PANEL + + <!-- Settings for "PPC CodeGen" panel --> + <SETTING><NAME>MWCodeGen_PPC_structtqalignment</NAME><VALUE>PPC</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_tracebacktables</NAME><VALUE>None</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_processor</NAME><VALUE>Generic</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_readonlystrings</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_tocdata</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_profiler</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_fpcontract</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_schedule</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_peephole</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_processorspecific</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_altivec</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_vectortocdata</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_PPC_vrsave</NAME><VALUE>1</VALUE></SETTING> + + <!-- Settings for "PPC CodeGen Mach-O" panel --> + <SETTING><NAME>MWCodeGen_MachO_structtqalignment</NAME><VALUE>PPC</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_tracebacktables</NAME><VALUE>None</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_processor</NAME><VALUE>Generic</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_readonlystrings</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_profiler</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_fpcontract</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_schedule</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_peephole</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_processorspecific</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_altivec</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_vrsave</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_common</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWCodeGen_MachO_implicit_templates</NAME><VALUE>1</VALUE></SETTING> + + <!-- Settings for "PPC Disassembler" panel --> + <SETTING><NAME>MWDisassembler_PPC_showcode</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWDisassembler_PPC_extended</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWDisassembler_PPC_mix</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWDisassembler_PPC_nohex</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWDisassembler_PPC_showdata</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWDisassembler_PPC_showexceptions</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWDisassembler_PPC_showsym</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWDisassembler_PPC_shownames</NAME><VALUE>1</VALUE></SETTING> + + <!-- Settings for "PPC Global Optimizer" panel --> + <SETTING><NAME>GlobalOptimizer_PPC_optimizationlevel</NAME><VALUE>Level0</VALUE></SETTING> + <SETTING><NAME>GlobalOptimizer_PPC_optfor</NAME><VALUE>Speed</VALUE></SETTING> + + <!-- Settings for "PPC Linker" panel --> + <SETTING><NAME>MWLinker_PPC_linksym</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_PPC_symfullpath</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWLinker_PPC_linkmap</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_PPC_nolinkwarnings</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_PPC_dontdeadstripinitcode</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_PPC_permitmultdefs</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_PPC_linkmode</NAME><VALUE>Fast</VALUE></SETTING> + <SETTING><NAME>MWLinker_PPC_initname</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWLinker_PPC_mainname</NAME><VALUE>$$CODEWARRIOR_ENTRYPOINT</VALUE></SETTING> + <SETTING><NAME>MWLinker_PPC_termname</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_twolevelnamespace</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_stripdebugsymbols</NAME><VALUE>0</VALUE></SETTING> + + <!-- Settings for "PPC Mach-O Linker" panel --> + <SETTING><NAME>MWLinker_MachO_exports</NAME><VALUE>All</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_mainname</NAME><VALUE>$$CODEWARRIOR_ENTRYPOINT</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_currentversion</NAME><VALUE>$$CODEWARRIOR_VERSION</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_compatibleversion</NAME><VALUE>$$CODEWARRIOR_VERSION</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_symfullpath</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_supresswarnings</NAME><VALUE>$$!CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_multisymerror</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_prebind</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_objectivecsemantics</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_whichfileloaded</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_whyfileloaded</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_readonlyrelocs</NAME><VALUE>Errors</VALUE></SETTING> + <SETTING><NAME>MWLinker_MachO_undefinedsymbols</NAME><VALUE>Errors</VALUE></SETTING> + + <!-- Settings for "PPC Mach-O Target" panel --> + <SETTING><NAME>MWProject_MachO_type</NAME><VALUE>$$CODEWARRIOR_TEMPLATE</VALUE></SETTING> + <SETTING><NAME>MWProject_MachO_outfile</NAME><VALUE>$$TARGET</VALUE></SETTING> + <SETTING><NAME>MWProject_MachO_filecreator</NAME><VALUE>CUTE</VALUE></SETTING> + <SETTING><NAME>MWProject_MachO_filetype</NAME><VALUE>$$CODEWARRIOR_FILETYPE</VALUE></SETTING> + <SETTING><NAME>MWProject_MachO_stacksize</NAME><VALUE>64</VALUE></SETTING> + <SETTING><NAME>MWProject_MachO_stackaddress</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWProject_MachO_flatrsrc</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWProject_MachO_flatrsrcfilename</NAME><VALUE>$$TARGET_STEM.rsrc</VALUE></SETTING> + <SETTING><NAME>MWProject_MachO_flatrsrcoutputdir</NAME> + <SETTING><NAME>Path</NAME><VALUE>:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>Project</VALUE></SETTING> + </SETTING> + + <!-- Settings for "PPC PEF" panel --> + <SETTING><NAME>MWPEF_exports</NAME><VALUE>None</VALUE></SETTING> + <SETTING><NAME>MWPEF_libfolder</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWPEF_sortcode</NAME><VALUE>None</VALUE></SETTING> + <SETTING><NAME>MWPEF_expandbss</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWPEF_sharedata</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWPEF_olddefversion</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWPEF_oldimpversion</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWPEF_currentversion</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWPEF_fragmentname</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWPEF_collapsereloads</NAME><VALUE>1</VALUE></SETTING> + + <!-- Settings for "PPC Project" panel --> + <SETTING><NAME>MWProject_PPC_type</NAME><VALUE>$$CODEWARRIOR_TEMPLATE</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_outfile</NAME><VALUE>$$TARGET</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_filecreator</NAME><VALUE>CUTE</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_filetype</NAME><VALUE>$$FILTYPE</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_size</NAME><VALUE>800</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_minsize</NAME><VALUE>600</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_stacksize</NAME><VALUE>64</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_flags</NAME><VALUE>22720</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_symfilename</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_rsrcname</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_rsrcheader</NAME><VALUE>Native</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_rsrctype</NAME><VALUE>????</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_rsrcid</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_rsrcflags</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_rsrcstore</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_rsrcmerge</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_flatrsrc</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWProject_PPC_flatrsrcoutputdir</NAME> + <SETTING><NAME>Path</NAME><VALUE>:</VALUE></SETTING> + <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> + <SETTING><NAME>PathRoot</NAME><VALUE>Project</VALUE></SETTING> + </SETTING> + <SETTING><NAME>MWProject_PPC_flatrsrcfilename</NAME><VALUE></VALUE></SETTING> + + <!-- Settings for "PPCAsm Panel" panel --> + <SETTING><NAME>MWAssembler_PPC_auxheader</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWAssembler_PPC_symmode</NAME><VALUE>Mac</VALUE></SETTING> + <SETTING><NAME>MWAssembler_PPC_dialect</NAME><VALUE>PPC</VALUE></SETTING> + <SETTING><NAME>MWAssembler_PPC_prefixfile</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWAssembler_PPC_typecheck</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWAssembler_PPC_warnings</NAME><VALUE>0</VALUE></SETTING> + <SETTING><NAME>MWAssembler_PPC_casesensitive</NAME><VALUE>0</VALUE></SETTING> + + <!-- Settings for "Rez Compiler" panel --> + <SETTING><NAME>MWRez_Language_maxwidth</NAME><VALUE>80</VALUE></SETTING> + <SETTING><NAME>MWRez_Language_script</NAME><VALUE>Roman</VALUE></SETTING> + <SETTING><NAME>MWRez_Language_tqalignment</NAME><VALUE>Align1</VALUE></SETTING> + <SETTING><NAME>MWRez_Language_filtermode</NAME><VALUE>FilterSkip</VALUE></SETTING> + <SETTING><NAME>MWRez_Language_suppresswarnings</NAME><VALUE>$$CODEWARRIOR_WARNING</VALUE></SETTING> + <SETTING><NAME>MWRez_Language_escapecontrolchars</NAME><VALUE>1</VALUE></SETTING> + <SETTING><NAME>MWRez_Language_prefixname</NAME><VALUE></VALUE></SETTING> + <SETTING><NAME>MWRez_Language_filteredtypes</NAME><VALUE>'CODE' 'DATA' 'PICT'</VALUE></SETTING> + </SETTINGLIST> + <FILELIST> +$$CODEWARRIOR_QPREPROCESS +$$CODEWARRIOR_QPREPROCESSOUT +$$CODEWARRIOR_LIBRARIES +$$CODEWARRIOR_SOURCES +$$CODEWARRIOR_HEADERS + <FILE> + <PATHTYPE>Name</PATHTYPE> + <PATH>MSL_C++_Mach-O.a</PATH> + <PATHFORMAT>MacOS</PATHFORMAT> + <FILEKIND>Library</FILEKIND> + <FILEFLAGS>Debug</FILEFLAGS> + </FILE> + <FILE> + <PATHTYPE>Name</PATHTYPE> + <PATH>MSL_Runtime_Mach-O.a</PATH> + <PATHFORMAT>MacOS</PATHFORMAT> + <FILEKIND>Library</FILEKIND> + <FILEFLAGS>Debug</FILEFLAGS> + </FILE> + </FILELIST> + <LINKORDER> +$$CODEWARRIOR_QPREPROCESS_LINKORDER +$$CODEWARRIOR_SOURCES_LINKORDER +$$CODEWARRIOR_HEADERS_LINKORDER +$$CODEWARRIOR_LIBRARIES_LINKORDER +$$CODEWARRIOR_QPREPROCESSOUT_LINKORDER + <FILEREF> + <PATHTYPE>Name</PATHTYPE> + <PATH>MSL_C++_Mach-O.a</PATH> + <PATHFORMAT>MacOS</PATHFORMAT> + </FILEREF> + <FILEREF> + <PATHTYPE>Name</PATHTYPE> + <PATH>MSL_Runtime_Mach-O.a</PATH> + <PATHFORMAT>MacOS</PATHFORMAT> + </FILEREF> + </LINKORDER> + <FRAMEWORKLIST> +$$CODEWARRIOR_FRAMEWORKS + </FRAMEWORKLIST> + </TARGET> + </TARGETLIST> + + <TARGETORDER> + <ORDEREDTARGET><NAME>$$TARGET_STEM</NAME></ORDEREDTARGET> + </TARGETORDER> + + <GROUPLIST> + <GROUP><NAME>Sources</NAME> +$$CODEWARRIOR_HEADERS_GROUP +$$CODEWARRIOR_SOURCES_GROUP + </GROUP> + <GROUP><NAME>Libraries</NAME> +$$CODEWARRIOR_LIBRARIES_GROUP + <FILEREF> + <TARGETNAME>$$TARGET_STEM</TARGETNAME> + <PATHTYPE>Name</PATHTYPE> + <PATH>MSL_C++_Mach-O.a</PATH> + <PATHFORMAT>MacOS</PATHFORMAT> + </FILEREF> + <FILEREF> + <TARGETNAME>$$TARGET_STEM</TARGETNAME> + <PATHTYPE>Name</PATHTYPE> + <PATH>MSL_Runtime_Mach-O.a</PATH> + <PATHFORMAT>MacOS</PATHFORMAT> + </FILEREF> + </GROUP> + <GROUP><Name>QtGenerated</NAME> +$$CODEWARRIOR_QPREPROCESS_GROUP +$$CODEWARRIOR_QPREPROCESSOUT_GROUP + </GROUP> + </GROUPLIST> +</PROJECT> + diff --git a/tqtinterface/qt4/mkspecs/macx-mwerks/qmake.conf b/tqtinterface/qt4/mkspecs/macx-mwerks/qmake.conf new file mode 100644 index 0000000..9afe437 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-mwerks/qmake.conf @@ -0,0 +1,23 @@ +# +# +# qmake configuration for macx-mwerks (Mac OS X + Metrowerks compiler) +# + +MAKEFILE_GENERATOR = METROWERKS +TEMPLATE = app +CONFIG += qt release warn_off separate_volume link_prl + +DEFINES += TQT_NO_STL __MACOSX__ __CF_USE_FRAMEWORK_INCLUDES__ + +CODEWARRIOR_LINKER = Mach-O PPC Linker +TQMAKE_EXTENSION_SHLIB = dylib +TQMAKE_VOLUMENAME = OS X Volume +FRAMEWORKPATH = {System}/Library/Frameworks/ +TQMAKE_CRT_OBJECTS = crt1.o +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBS = -framework System +TQMAKE_LIBS_QT = -L$(TQTDIR)/lib/ -lqt +TQMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \ + /System/Library/Frameworks/AGL.framework/Headers/ +TQMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL +TQMAKE_LIBS_OPENGL_QT = $$TQMAKE_LIBS_OPENGL diff --git a/tqtinterface/qt4/mkspecs/macx-mwerks/qplatformdefs.h b/tqtinterface/qt4/mkspecs/macx-mwerks/qplatformdefs.h new file mode 100644 index 0000000..154384e --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-mwerks/qplatformdefs.h @@ -0,0 +1,79 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <stat.h> +#include <socket.h> +#include <ioctl.h> +#include <wait.h> +#include <signal.h> +#define TQT_NO_LIBRARY_UNLOAD + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <nameser.h> +#include <netinet/in.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE (TQT_SIGNAL_RETTYPE (*)(TQT_SIGNAL_ARGS))1 + +#define TQT_SOCKLEN_T int + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/macx-pbuilder/Info.plist.app b/tqtinterface/qt4/mkspecs/macx-pbuilder/Info.plist.app new file mode 100755 index 0000000..4da07e9 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-pbuilder/Info.plist.app @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> +<plist version="0.9"> +<dict> + <key>CFBundleIconFile</key> + <string>@ICON@</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleGetInfoString</key> + <string>Created by Qt/QMake</string> + <key>CFBundleSignature</key> + <string>ttxt</string> + <key>CFBundleExecutable</key> + <string>@EXECUTABLE@</string> + <key>NOTE</key> + <string>Please, do NOT change this file -- It was generated by Qt/QMake.</string> +</dict> +</plist> diff --git a/tqtinterface/qt4/mkspecs/macx-pbuilder/qmake.conf b/tqtinterface/qt4/mkspecs/macx-pbuilder/qmake.conf new file mode 100755 index 0000000..06e45b4 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-pbuilder/qmake.conf @@ -0,0 +1,80 @@ +# +# +# qmake configuration for macx-pbuilder (Mac OS X + Project Builder) +# + +MAKEFILE_GENERATOR = PROJECTBUILDER +TEMPLATE = app +CONFIG += qt warn_on release lib_version_first incremental plugin_no_soname link_prl + +TQMAKE_CC = +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_RESOURCE = /Developer/Tools/Rez +TQMAKE_CFLAGS = -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -Os +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_EXTENSION_SHLIB = dylib +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses + +TQMAKE_CXX = +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC + +TQMAKE_INCDIR = /usr/local/include \ + /System/Library/Frameworks/CarbonCore.framework/Headers +TQMAKE_LIBDIR = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \ + /System/Library/Frameworks/AGL.framework/Headers/ + +TQMAKE_LINK = c++ +TQMAKE_LINK_SHLIB = c++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_APP = -prebind +TQMAKE_LFLAGS_SHLIB = -dynamiclib +TQMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +#TQMAKE_LFLAGS_SONAME = -install_name$${LITERAL_WHITESPACE}@executable_path/../Frameworks/ +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = + +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_THREAD = +TQMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL +TQMAKE_LIBS_OPENGL_QT = $$TQMAKE_LIBS_OPENGL + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = ranlib -s + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_COPY_FILE = $$TQMAKE_COPY +TQMAKE_COPY_DIR = $$TQMAKE_COPY -r +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/macx-pbuilder/qplatformdefs.h b/tqtinterface/qt4/mkspecs/macx-pbuilder/qplatformdefs.h new file mode 100644 index 0000000..400be89 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-pbuilder/qplatformdefs.h @@ -0,0 +1,88 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#define TQT_NO_LIBRARY_UNLOAD + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE (void (*)(int))1 + +#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/macx-xlc/qmake.conf b/tqtinterface/qt4/mkspecs/macx-xlc/qmake.conf new file mode 100644 index 0000000..5993633 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-xlc/qmake.conf @@ -0,0 +1,89 @@ +# +# +# qmake configuration for aix-xlc +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release resource_fork global_init_link_order lib_version_first plugin_no_soname link_prl + +TQMAKE_CC = xlc +TQMAKE_CC_THREAD = xlc_r +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -qstrict +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -O3 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -qthreaded + +TQMAKE_CXX = xlc++ +TQMAKE_CXX_THREAD = xlc++_r +TQMAKE_CXXFLAGS = -+ $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = xlc++ +TQMAKE_LINK_THREAD = xlc++_r +TQMAKE_LINK_SHLIB = ld +#TQMAKE_LINK_SHLIB_CMD = makeC++SharedLib -p 0 \ +# -o $(TARGETD) \ +# $(LFLAGS) $(OBJECTS) $(OBJTQMOC) $(LIBS); \ +# $(AR) lib$(TQMAKE_TARGET).a $(TARGETD); \ +# $(RANLIB) lib$(TQMAKE_TARGET).a; \ +# mv lib$(TQMAKE_TARGET).a $(DESTDIR) +TQMAKE_LFLAGS = -headerpad_max_install_names +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -prebind -qmkshrobj +TQMAKE_LFLAGS_PLUGIN = -bundle +TQMAKE_LFLAGS_SONAME = +#TQMAKE_LFLAGS_THREAD = -L/usr/lib/threads +#TQMAKE_AIX_SHLIB = 1 +TQMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE} +TQMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE} + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL +TQMAKE_LIBS_OPENGL_QT = $$TQMAKE_LIBS_OPENGL +#TQMAKE_LIBS_THREAD = -lpthreads + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = ranlib -s + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_COPY_FILE = $$TQMAKE_COPY +TQMAKE_COPY_DIR = $$TQMAKE_COPY -r +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/macx-xlc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/macx-xlc/qplatformdefs.h new file mode 100644 index 0000000..400be89 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/macx-xlc/qplatformdefs.h @@ -0,0 +1,88 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#define TQT_NO_LIBRARY_UNLOAD + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE (void (*)(int))1 + +#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4) +#define TQT_SOCKLEN_T socklen_t +#else +#define TQT_SOCKLEN_T int +#endif + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/netbsd-g++/qmake.conf b/tqtinterface/qt4/mkspecs/netbsd-g++/qmake.conf new file mode 100644 index 0000000..93bcfec --- /dev/null +++ b/tqtinterface/qt4/mkspecs/netbsd-g++/qmake.conf @@ -0,0 +1,81 @@ +# +# +# qmake configuration for netbsd-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -pthread + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = /usr/local/include +TQMAKE_LIBDIR = /usr/local/lib +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LINK_SHLIB_CMD = $$TQMAKE_LINK_SHLIB $$TQMAKE_LFLAGS_SHLIB $(LFLAGS) $$TQMAKE_LFLAGS -o $(TARGETD) $(OBJECTS) $(OBJTQMOC) $(LIBS) +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = -pthread +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = ranlib + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/netbsd-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/netbsd-g++/qplatformdefs.h new file mode 100644 index 0000000..24e36ba --- /dev/null +++ b/tqtinterface/qt4/mkspecs/netbsd-g++/qplatformdefs.h @@ -0,0 +1,91 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +// NetBSD 1.0 - 1.3.3 int +// NetBSD 1.4 - 1.5 socklen_t +#define TQT_SOCKLEN_T socklen_t + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + +// Older NetBSD versions may still use the a.out format instead of ELF. +#ifndef __ELF__ +#define TQT_AOUT_UNDERSCORE +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/openbsd-g++/qmake.conf b/tqtinterface/qt4/mkspecs/openbsd-g++/qmake.conf new file mode 100644 index 0000000..1a135c4 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/openbsd-g++/qmake.conf @@ -0,0 +1,82 @@ +# +# +# qmake configuration for openbsd-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -pipe +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -pthread + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = /usr/local/include +TQMAKE_LIBDIR = /usr/local/lib +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LINK_SHLIB_CMD = $$TQMAKE_LINK_SHLIB $(LFLAGS) \ + $$TQMAKE_CFLAGS_SHLIB $$TQMAKE_LFLAGS \ + -o $(TARGETD) $(OBJECTS) $(OBJTQMOC) $(LIBS) +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = -pthread + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar q +TQMAKE_RANLIB = ranlib + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/openbsd-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/openbsd-g++/qplatformdefs.h new file mode 100644 index 0000000..68eb76d --- /dev/null +++ b/tqtinterface/qt4/mkspecs/openbsd-g++/qplatformdefs.h @@ -0,0 +1,91 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +// OpenBSD 2.2 - 2.4 int +// OpenBSD 2.5 - 2.8 socklen_t +#define TQT_SOCKLEN_T socklen_t + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + +// Older OpenBSD versions may still use the a.out format instead of ELF. +#ifndef __ELF__ +#define TQT_AOUT_UNDERSCORE +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/qnx-g++/qmake.conf b/tqtinterface/qt4/mkspecs/qnx-g++/qmake.conf new file mode 100644 index 0000000..9a8ae31 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/qnx-g++/qmake.conf @@ -0,0 +1,82 @@ +# +# +# qmake configuration for qnx-g++ +# +# Written for TQNX RTOS v6 with X11. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -pipe -fno-inline -fno-pack-struct +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses -fno-inline -fno-pack-struct +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/X11R6/include +TQMAKE_LIBDIR_X11 = /usr/X11R6/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/X11R6/include +TQMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = -lunix +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/qnx-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/qnx-g++/qplatformdefs.h new file mode 100644 index 0000000..8d18706 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/qnx-g++/qplatformdefs.h @@ -0,0 +1,86 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +// TQNX doesn't have the System V <sys/shm.h> header. This is not a standard +// POSIX header, it's only documented in the Single UNIX Specification. +// The preferred POSIX compliant way to share memory is to use the functions +// in <sys/mman.h> that comply with the POSIX Real Time Interface (1003.1b). +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// Header files <netinet/in.h> and <arpa/nameser.h> are not included +// by <resolv.h> on older versions of the GNU C library. Note that +// <arpa/nameser.h> must be included before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T size_t + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/reliant-cds-64/qmake.conf b/tqtinterface/qt4/mkspecs/reliant-cds-64/qmake.conf new file mode 100644 index 0000000..2e568b7 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/reliant-cds-64/qmake.conf @@ -0,0 +1,84 @@ +# +# +# qmake configuration for reliant-cds-64 +# +# Written for Reliant UNIX 5.45 using the CDS++ C/C++ compiler V2.0C. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -Klp64 +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -v +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -KPIC +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -K pthread + +TQMAKE_CXX = CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /opt/X/include/X11 +TQMAKE_LIBDIR_X11 = /opt/X/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = CC +TQMAKE_LINK_SHLIB = CC +TQMAKE_LFLAGS = -Klp64 +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -G +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE +TQMAKE_LFLAGS_THREAD = -K pthread +TQMAKE_RPATH = -Wl,-Brpath= + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = CC -xar -o +TQMAKE_RANLIB = + +TQMAKE_CLEAN = -r $(OBJECTS_DIR)/Templates.DB + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/reliant-cds-64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/reliant-cds-64/qplatformdefs.h new file mode 100644 index 0000000..2b77682 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/reliant-cds-64/qplatformdefs.h @@ -0,0 +1,86 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/filio.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +// on Reliant 5.45 and if __LP64__ *is* defined: +// - socket functions use 'int' +// - if _SOCKLEN_T is defined 'socklen_t' is typedef'ed to 'unsigned int' +// which seems to be wrong so let's always use 'int' instead! +#define TQT_SOCKLEN_T int + +#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE) || (_XOPEN_SOURCE-0 >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/reliant-cds/qmake.conf b/tqtinterface/qt4/mkspecs/reliant-cds/qmake.conf new file mode 100644 index 0000000..8dfdbd3 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/reliant-cds/qmake.conf @@ -0,0 +1,84 @@ +# +# +# qmake configuration for reliant-cds +# +# Written for Reliant UNIX 5.45 using the CDS++ C/C++ compiler V2.0C. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -v +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -KPIC +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -K pthread + +TQMAKE_CXX = CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /opt/X/include/X11 +TQMAKE_LIBDIR_X11 = /opt/X/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = CC +TQMAKE_LINK_SHLIB = CC +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -G +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE +TQMAKE_LFLAGS_THREAD = -K pthread +TQMAKE_RPATH = -Wl,-Brpath= + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = CC -xar -o +TQMAKE_RANLIB = + +TQMAKE_CLEAN = -r $(OBJECTS_DIR)/Templates.DB + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/reliant-cds/qplatformdefs.h b/tqtinterface/qt4/mkspecs/reliant-cds/qplatformdefs.h new file mode 100644 index 0000000..b254a18 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/reliant-cds/qplatformdefs.h @@ -0,0 +1,90 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/filio.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +// on Reliant 5.45 and if __LP64__ is *not* defined: +// - socket functions use 'size_t' +// - if _SOCKLEN_T is defined 'socklen_t' is typedef'ed to 'size_t' +// note that 'size_t' would always be a good choice in this context +#if defined(_SOCKLEN_T) +# define TQT_SOCKLEN_T socklen_t +#else +# define TQT_SOCKLEN_T size_t +#endif + +#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE) || (_XOPEN_SOURCE-0 >= 500) +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/sco-cc/qmake.conf b/tqtinterface/qt4/mkspecs/sco-cc/qmake.conf new file mode 100644 index 0000000..10daaaf --- /dev/null +++ b/tqtinterface/qt4/mkspecs/sco-cc/qmake.conf @@ -0,0 +1,78 @@ +# +# +# qmake configuration for sco-cc +# +# Written for SCO OpenServer with UDK. +# +# -Wf,--diag_suppress,838 +# turns off warning about missing return types in X headers +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -KPIC +TQMAKE_CFLAGS_YACC = -Wf,--diag_suppress,111 -Wf,--diag_suppress,177 + +TQMAKE_CXX = CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS -Wf,--display_error_number -Wf,--diag_suppress,838 +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE -Tused +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = /usr/X/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = CC +TQMAKE_LINK_SHLIB = CC +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -G +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt + +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lXt +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/sco-cc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/sco-cc/qplatformdefs.h new file mode 100644 index 0000000..1d8cd8e --- /dev/null +++ b/tqtinterface/qt4/mkspecs/sco-cc/qplatformdefs.h @@ -0,0 +1,85 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/filio.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On Unixware header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T size_t + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/sco-g++/qmake.conf b/tqtinterface/qt4/mkspecs/sco-g++/qmake.conf new file mode 100644 index 0000000..d392c51 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/sco-g++/qmake.conf @@ -0,0 +1,75 @@ +# +# +# qmake configuration for sco-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -G +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE +TQMAKE_RPATH = + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lsocket -lm +TQMAKE_LIBS_QT = -lqt + +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/sco-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/sco-g++/qplatformdefs.h new file mode 100644 index 0000000..922366a --- /dev/null +++ b/tqtinterface/qt4/mkspecs/sco-g++/qplatformdefs.h @@ -0,0 +1,95 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// This is to have PATH_MAX defined in <limits.h> +#ifndef _IBCS2 +# define _IBCS2 +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On Unixware header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#define class r_class // SCO OpenServer 5.0.6 +#include <arpa/nameser.h> +#undef class +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T int + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + +// SCO OpenServer redefines raise -> kill +#if defined(raise) +# undef raise +#endif + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/solaris-cc-64/qmake.conf b/tqtinterface/qt4/mkspecs/solaris-cc-64/qmake.conf new file mode 100644 index 0000000..f74b29a --- /dev/null +++ b/tqtinterface/qt4/mkspecs/solaris-cc-64/qmake.conf @@ -0,0 +1,102 @@ +# +# +# qmake configuration for solaris-cc-64 +# +# Written for Sun WorkShop 5.0, Forte Developer 6, and Sun ONE Studio 7. +# +# From the standards(5) manual page: +# The XNS4 specification is safe for use only in ILP32 (32-bit) +# environments and should not be used for LP64 (64-bit) +# application environments. Use XNS5, which has LP64-clean +# interfaces that are portable across ILP32 and LP64 environments. +# [...] +# For platforms supporting the LP64 (64-bit) programming environment +# where the SC5.0 Compilers have been installed, SUSv2-conforming LP64 +# applications using XNS5 library calls should be built with command +# lines of the form: +# c89 $(getconf XBS5_LP64_OFF64_CFLAGS) -D_XOPEN_SOURCE=500 \ +# $(getconf XBS5_LP64_OFF64_LDFLAGS) foo.c -o foo \ +# $(getconf XBS5_LP64_OFF64_LIBS) -lxnet +# So it appears that _XOPEN_SOURCE=500 should be defined when building +# 64-bit applications (on Solaris 7 and better). But then __EXTENSIONS__ +# should be defined as well to recover all the default system interface. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -xarch=generic64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ +TQMAKE_CFLAGS_DEPS = -xM +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -KPIC +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -mt + +TQMAKE_CXX = CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = -O2 +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/openwin/include +TQMAKE_LIBDIR_X11 = /usr/openwin/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/openwin/include +TQMAKE_LIBDIR_OPENGL = /usr/openwin/lib + +TQMAKE_LINK = CC +TQMAKE_LINK_SHLIB = CC +TQMAKE_LFLAGS = -xarch=generic64 +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -G +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE +TQMAKE_LFLAGS_THREAD = -mt +TQMAKE_RPATH = -R + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread -lrt + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = CC -xar -o +TQMAKE_RANLIB = + +TQMAKE_CLEAN = -r $(OBJECTS_DIR)Templates.DB $(OBJECTS_DIR)SunWS_cache + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/solaris-cc-64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/solaris-cc-64/qplatformdefs.h new file mode 100644 index 0000000..77036f9 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/solaris-cc-64/qplatformdefs.h @@ -0,0 +1,87 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/filio.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On Solaris header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +// On 64-bit platforms (Solaris 7 and better) sockets use socklen_t. +#define TQT_SOCKLEN_T socklen_t + +// Supported on 64-bit platforms (Solaris 7 and better). +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/solaris-cc/qmake.conf b/tqtinterface/qt4/mkspecs/solaris-cc/qmake.conf new file mode 100644 index 0000000..e484207 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/solaris-cc/qmake.conf @@ -0,0 +1,85 @@ +# +# +# qmake configuration for solaris-cc +# +# Written for Sun WorkShop 5.0, Forte Developer 6, and Sun ONE Studio 7. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -xM +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -KPIC +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_THREAD = -mt + +TQMAKE_CXX = CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = -O2 +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/openwin/include +TQMAKE_LIBDIR_X11 = /usr/openwin/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/openwin/include +TQMAKE_LIBDIR_OPENGL = /usr/openwin/lib + +TQMAKE_LINK = CC +TQMAKE_LINK_SHLIB = CC +TQMAKE_LFLAGS = -R/usr/lib -R$(TQTDIR)/lib +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -G +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE +TQMAKE_LFLAGS_THREAD = -mt +TQMAKE_RPATH = -R + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread -lrt + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = CC -xar -o +TQMAKE_RANLIB = + +TQMAKE_CLEAN = -r $(OBJECTS_DIR)Templates.DB $(OBJECTS_DIR)SunWS_cache + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/solaris-cc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/solaris-cc/qplatformdefs.h new file mode 100644 index 0000000..80662b9 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/solaris-cc/qplatformdefs.h @@ -0,0 +1,114 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs +#define _POSIX_PTHREAD_SEMANTICS + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/filio.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On Solaris header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if !defined(_XOPEN_UNIX) +// Function usleep() is defined in C library but not declared in header files +// on Solaris 2.5.1. Not really a surprise, usleep() is specified by XPG4v2 +// and XPG4v2 is only supported by Solaris 2.6 and better. +// Function gethostname() is defined in C library but not declared in <unistd.h> +// on Solaris 2.5.1. +// So we are trying to detect Solaris 2.5.1 using macro _XOPEN_UNIX which is +// not defined by <unistd.h> when XPG4v2 is not supported. +typedef unsigned int useconds_t; +extern "C" int usleep(useconds_t); +extern "C" int gethostname(char *, int); +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500) && (_XOPEN_VERSION-0 >= 500) +// on Solaris 7 and better with specific feature test macros +#define TQT_SOCKLEN_T socklen_t +#elif defined(_XOPEN_SOURCE_EXTENDED) && (_XOPEN_VERSION-0 >= 4) +// on Solaris 2.6 and better with specific feature test macros +#define TQT_SOCKLEN_T size_t +#else +// always this case in practice +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_UNIX) +// Supported by Solaris 2.6 and better. XPG4v2 and XPG4v2 is also supported +// by Solaris 2.6 and better. So we are trying to detect Solaris 2.6 using +// macro _XOPEN_UNIX which is not defined by <unistd.h> when XPG4v2 is not +// supported. +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/solaris-g++-64/qmake.conf b/tqtinterface/qt4/mkspecs/solaris-g++-64/qmake.conf new file mode 100644 index 0000000..c9b7fc6 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/solaris-g++-64/qmake.conf @@ -0,0 +1,104 @@ +# +# +# qmake configuration for solaris-g++64 +# +# The X11 header files used to be broken on Solaris until patches were +# released in early 2001 for Solaris 2.6, 7, and 8. On Solaris 2.5.1 +# or non-patched systems -fpermissive works around the incompatibility +# between GCC 2.95 or better and Solaris - but we still get warnings +# because we don't use -isystem. +# +# From the standards(5) manual page: +# The XNS4 specification is safe for use only in ILP32 (32-bit) +# environments and should not be used for LP64 (64-bit) +# application environments. Use XNS5, which has LP64-clean +# interfaces that are portable across ILP32 and LP64 environments. +# [...] +# For platforms supporting the LP64 (64-bit) programming environment +# where the SC5.0 Compilers have been installed, SUSv2-conforming LP64 +# applications using XNS5 library calls should be built with command +# lines of the form: +# c89 $(getconf XBS5_LP64_OFF64_CFLAGS) -D_XOPEN_SOURCE=500 \ +# $(getconf XBS5_LP64_OFF64_LDFLAGS) foo.c -o foo \ +# $(getconf XBS5_LP64_OFF64_LIBS) -lxnet +# So it appears that _XOPEN_SOURCE=500 should be defined when building +# 64-bit applications (on Solaris 7 and better). But then __EXTENSIONS__ +# should be defined as well to recover all the default system interface. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -m64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/openwin/include +TQMAKE_LIBDIR_X11 = /usr/openwin/lib/sparcv9 +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/openwin/include +TQMAKE_LIBDIR_OPENGL = /usr/openwin/lib/sparcv9 + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = -m64 +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = -g +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-R, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread -lrt + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/solaris-g++-64/qplatformdefs.h b/tqtinterface/qt4/mkspecs/solaris-g++-64/qplatformdefs.h new file mode 100644 index 0000000..54afb79 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/solaris-g++-64/qplatformdefs.h @@ -0,0 +1,90 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs +#ifndef _POSIX_PTHREAD_SEMANTICS +#define _POSIX_PTHREAD_SEMANTICS +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/filio.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On Solaris header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +// On 64-bit platforms (Solaris 7 and better) sockets use socklen_t. +#define TQT_SOCKLEN_T socklen_t + +// Supported on 64-bit platforms (Solaris 7 and better). +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/solaris-g++/qmake.conf b/tqtinterface/qt4/mkspecs/solaris-g++/qmake.conf new file mode 100644 index 0000000..8c97b77 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/solaris-g++/qmake.conf @@ -0,0 +1,87 @@ +# +# +# qmake configuration for solaris-g++ +# +# The X11 header files used to be broken on Solaris until patches were +# released in early 2001 for Solaris 2.6, 7, and 8. On Solaris 2.5.1 +# or non-patched systems -fpermissive works around the incompatibility +# between GCC 2.95 or better and Solaris - but we still get warnings +# because we don't use -isystem. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = /usr/openwin/include +TQMAKE_LIBDIR_X11 = /usr/openwin/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = /usr/openwin/include +TQMAKE_LIBDIR_OPENGL = /usr/openwin/lib + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = -g +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-R, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_NIS = +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread -lrt + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/solaris-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/solaris-g++/qplatformdefs.h new file mode 100644 index 0000000..1e49c53 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/solaris-g++/qplatformdefs.h @@ -0,0 +1,116 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs +#ifndef _POSIX_PTHREAD_SEMANTICS +#define _POSIX_PTHREAD_SEMANTICS +#endif + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/filio.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On Solaris header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if !defined(_XOPEN_UNIX) +// Function usleep() is defined in C library but not declared in header files +// on Solaris 2.5.1. Not really a surprise, usleep() is specified by XPG4v2 +// and XPG4v2 is only supported by Solaris 2.6 and better. +// Function gethostname() is defined in C library but not declared in <unistd.h> +// on Solaris 2.5.1. +// So we are trying to detect Solaris 2.5.1 using macro _XOPEN_UNIX which is +// not defined by <unistd.h> when XPG4v2 is not supported. +typedef unsigned int useconds_t; +extern "C" int usleep(useconds_t); +extern "C" int gethostname(char *, int); +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 500) && (_XOPEN_VERSION-0 >= 500) +// on Solaris 7 and better with specific feature test macros +#define TQT_SOCKLEN_T socklen_t +#elif defined(_XOPEN_SOURCE_EXTENDED) && defined(_XOPEN_UNIX) +// on Solaris 2.6 and better with specific feature test macros +#define TQT_SOCKLEN_T size_t +#else +// always this case in practice +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_UNIX) +// Supported by Solaris 2.6 and better. XPG4v2 and XPG4v2 is also supported +// by Solaris 2.6 and better. So we are trying to detect Solaris 2.6 using +// macro _XOPEN_UNIX which is not defined by <unistd.h> when XPG4v2 is not +// supported. +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/tru64-cxx/qmake.conf b/tqtinterface/qt4/mkspecs/tru64-cxx/qmake.conf new file mode 100644 index 0000000..779878a --- /dev/null +++ b/tqtinterface/qt4/mkspecs/tru64-cxx/qmake.conf @@ -0,0 +1,80 @@ +# +# +# tmake configuration for tru64-cxx +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl plugin_no_soname + +TQMAKE_CC = cxx +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = +TQMAKE_CFLAGS_YACC = -Olimit 1000 +TQMAKE_CFLAGS_THREAD = -pthread + +TQMAKE_CXX = cxx +TQMAKE_CXXFLAGS = -x cxx $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = cxx +TQMAKE_LINK_SHLIB = cxx +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_THREAD = -pthread +TQMAKE_LFLAGS_SONAME = -soname$$LITERAL_WHITESPACE +TQMAKE_RPATH = -rpath$$LITERAL_WHITESPACE + +TQMAKE_LIBS = -lm +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lrt + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/tru64-cxx/qplatformdefs.h b/tqtinterface/qt4/mkspecs/tru64-cxx/qplatformdefs.h new file mode 100644 index 0000000..da61b2c --- /dev/null +++ b/tqtinterface/qt4/mkspecs/tru64-cxx/qplatformdefs.h @@ -0,0 +1,95 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/select.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(_XOPEN_SOURCE) && defined(_OSF_SOURCE) +// Not available in the <unistd.h> header file of Tru64 4.0F. +// Fixed in the <unistd.h> header of Tru64 5.0A so we copy/paste from there... +extern "C" int usleep(useconds_t); +#endif + +#if defined(_POSIX_PII_SOCKET) +#define TQT_SOCKLEN_T socklen_t +#elif defined(_XOPEN_SOURCE_EXTENDED) +#define TQT_SOCKLEN_T size_t +#else +#define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 400) +// trying to detect Tru64 5.0 and better... +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/tru64-g++/qmake.conf b/tqtinterface/qt4/mkspecs/tru64-g++/qmake.conf new file mode 100644 index 0000000..18a9742 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/tru64-g++/qmake.conf @@ -0,0 +1,80 @@ +# +# +# qmake configuration for tru64-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl plugin_no_soname + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -D_REENTRANT + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_THREAD = +TQMAKE_LFLAGS_SONAME = -Wl,-soname, +TQMAKE_RPATH = -Wl,-rpath, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = +TQMAKE_LIBS_X11 = -lXext -lX11 -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lpthread -lexc -lrt + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cqs +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/tru64-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/tru64-g++/qplatformdefs.h new file mode 100644 index 0000000..544a35b --- /dev/null +++ b/tqtinterface/qt4/mkspecs/tru64-g++/qplatformdefs.h @@ -0,0 +1,95 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/select.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#if defined(_XOPEN_SOURCE) && defined(_OSF_SOURCE) +// Not available in the <unistd.h> header file of Tru64 4.0F. +// Fixed in the <unistd.h> header of Tru64 5.0A so we copy/paste from there... +extern "C" int usleep(useconds_t); +#endif + +#if defined(_POSIX_PII_SOCKET) +# define TQT_SOCKLEN_T socklen_t +#elif defined(_XOPEN_SOURCE_EXTENDED) +# define TQT_SOCKLEN_T size_t +#else +# define TQT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE-0 >= 400) +// trying to detect Tru64 5.0 and better... +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf +#endif + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/unixware-cc/qmake.conf b/tqtinterface/qt4/mkspecs/unixware-cc/qmake.conf new file mode 100644 index 0000000..5775284 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/unixware-cc/qmake.conf @@ -0,0 +1,85 @@ +# +# +# qmake configuration for unixware-cc +# +# Written for UnixWare 7 or Open UNIX 8 with UDK or OUDK. +# +# -Wf,--diag_suppress,838 +# turns off warning about missing return types in X headers +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = cc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_WARN_ON = +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -KPIC +TQMAKE_CFLAGS_YACC = -Wf,--diag_suppress,111 -Wf,--diag_suppress,177 +TQMAKE_CFLAGS_THREAD = -Kthread + +TQMAKE_CXX = CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS -Wf,--display_error_number -Wf,--diag_suppress,838 +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE -Tused +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = /usr/X/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = CC +TQMAKE_LINK_SHLIB = CC +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -G +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE +TQMAKE_LFLAGS_THREAD = -Kthread +TQMAKE_RPATH = -R + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt + +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lXt +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu + +TQMAKE_LIBS_THREAD = + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/unixware-cc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/unixware-cc/qplatformdefs.h new file mode 100644 index 0000000..1d8cd8e --- /dev/null +++ b/tqtinterface/qt4/mkspecs/unixware-cc/qplatformdefs.h @@ -0,0 +1,85 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/filio.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On Unixware header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T size_t + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/unixware-g++/qmake.conf b/tqtinterface/qt4/mkspecs/unixware-g++/qmake.conf new file mode 100644 index 0000000..847f548 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/unixware-g++/qmake.conf @@ -0,0 +1,82 @@ +# +# +# qmake configuration for unixware-g++ +# +# Written for UnixWare 7 or Open UNIX 8 with OSTK. +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = yacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall -W +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_SHLIB = -fPIC +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_SHLIB = $$TQMAKE_CFLAGS_SHLIB +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD + +TQMAKE_INCDIR = +TQMAKE_LIBDIR = +TQMAKE_INCDIR_X11 = +TQMAKE_LIBDIR_X11 = /usr/X/lib +TQMAKE_INCDIR_QT = $(TQTDIR)/include +TQMAKE_LIBDIR_QT = $(TQTDIR)/lib +TQMAKE_INCDIR_OPENGL = +TQMAKE_LIBDIR_OPENGL = + +TQMAKE_LINK = g++ +TQMAKE_LINK_SHLIB = g++ +TQMAKE_LFLAGS = +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_SHLIB = -shared +TQMAKE_LFLAGS_PLUGIN = $$TQMAKE_LFLAGS_SHLIB +TQMAKE_LFLAGS_SONAME = +TQMAKE_LFLAGS_THREAD = +TQMAKE_RPATH = -Wl,-R, + +TQMAKE_LIBS = +TQMAKE_LIBS_DYNLOAD = -ldl +TQMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl -lm +TQMAKE_LIBS_X11SM = -lSM -lICE +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu -lXt +TQMAKE_LIBS_OPENGL_QT = -lGL -lXmu +TQMAKE_LIBS_THREAD = -lthread + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc +TQMAKE_UIC = $(TQTDIR)/bin/uic + +TQMAKE_AR = ar cq +TQMAKE_RANLIB = + +TQMAKE_TAR = tar -cf +TQMAKE_GZIP = gzip -9f + +TQMAKE_COPY = cp -f +TQMAKE_MOVE = mv -f +TQMAKE_DEL_FILE = rm -f +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p diff --git a/tqtinterface/qt4/mkspecs/unixware-g++/qplatformdefs.h b/tqtinterface/qt4/mkspecs/unixware-g++/qplatformdefs.h new file mode 100644 index 0000000..1d8cd8e --- /dev/null +++ b/tqtinterface/qt4/mkspecs/unixware-g++/qplatformdefs.h @@ -0,0 +1,85 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +// Get TQt defines/settings + +#include "tqglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include <unistd.h> + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef TQT_THREAD_SUPPORT +#include <pthread.h> +#endif + +#include <dirent.h> +#include <fcntl.h> +#include <grp.h> +#include <pwd.h> +#include <signal.h> +#include <dlfcn.h> + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/filio.h> +#include <sys/ipc.h> +#include <sys/time.h> +#include <sys/shm.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/wait.h> + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On Unixware header files <netinet/in.h> and <arpa/nameser.h> are not +// included by <resolv.h>. Note that <arpa/nameser.h> must be included +// before <resolv.h>. +#include <netinet/in.h> +#include <arpa/nameser.h> +#include <resolv.h> + + +#if !defined(TQT_NO_COMPAT) +#define TQT_STATBUF struct stat +#define TQT_STATBUF4TSTAT struct stat +#define TQT_STAT ::stat +#define TQT_FSTAT ::fstat +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT +#define TQT_STAT_LNK S_IFLNK +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close +#define TQT_LSEEK ::lseek +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access +#define TQT_GETCWD ::getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND +#endif + +#define TQT_SIGNAL_RETTYPE void +#define TQT_SIGNAL_ARGS int +#define TQT_SIGNAL_IGNORE SIG_IGN + +#define TQT_SOCKLEN_T size_t + +#define TQT_SNPRINTF ::snprintf +#define TQT_VSNPRINTF ::vsnprintf + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/win32-borland/qmake.conf b/tqtinterface/qt4/mkspecs/win32-borland/qmake.conf new file mode 100644 index 0000000..3861ea4 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-borland/qmake.conf @@ -0,0 +1,106 @@ +# +# +# qmake configuration for win32-borland +# +# Written for Borland C++. +# + +MAKEFILE_GENERATOR = BMAKE +TEMPLATE = app +CONFIG += qt warn_on release link_prl +DEFINES += UNICODE +TQMAKE_NOFORCE = 1 + +exists( $(TQTDIR)\.qtwinconfig ) { + include( $(TQTDIR)\.qtwinconfig ) +} + +TQMAKE_CC = bcc32 +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = byacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -tWR +TQMAKE_CFLAGS_WARN_ON = -w -w-hid +TQMAKE_CFLAGS_WARN_OFF = -w- +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -v +TQMAKE_CFLAGS_MT = -tWM +TQMAKE_CFLAGS_MT_DBG = -tWM +TQMAKE_CFLAGS_MT_DLL = -tWM +TQMAKE_CFLAGS_MT_DLLDBG = -tWM +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_CONSOLE = -tWC +TQMAKE_CFLAGS_STL_ON = +TQMAKE_CFLAGS_STL_OFF = +TQMAKE_CFLAGS_RTTI_ON = +TQMAKE_CFLAGS_RTTI_OFF = -RT- +TQMAKE_CFLAGS_EXCEPTIONS_ON = +TQMAKE_CFLAGS_EXCEPTIONS_OFF = -x- + +TQMAKE_CXX = $$TQMAKE_CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_MT = $$TQMAKE_CFLAGS_MT +TQMAKE_CXXFLAGS_MT_DBG = $$TQMAKE_CFLAGS_MT_DBG +TQMAKE_CXXFLAGS_MT_DLL = $$TQMAKE_CFLAGS_MT_DLL +TQMAKE_CXXFLAGS_MT_DLLDBG= $$TQMAKE_CFLAGS_MT_DLLDBG +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_CONSOLE = $$TQMAKE_CFLAGS_CONSOLE +TQMAKE_CXXFLAGS_STL_ON = $$TQMAKE_CFLAGS_STL_ON +TQMAKE_CXXFLAGS_STL_OFF = $$TQMAKE_CFLAGS_STL_OFF +TQMAKE_CXXFLAGS_RTTI_ON = $$TQMAKE_CFLAGS_RTTI_ON +TQMAKE_CXXFLAGS_RTTI_OFF = $$TQMAKE_CFLAGS_RTTI_OFF +TQMAKE_CXXFLAGS_EXCEPTIONS_ON = $$TQMAKE_CFLAGS_EXCEPTIONS_ON +TQMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$TQMAKE_CFLAGS_EXCEPTIONS_OFF + +TQMAKE_INCDIR = +TQMAKE_INCDIR_QT = $(TQTDIR)\include +TQMAKE_LIBDIR = $(BCB)\lib +TQMAKE_LIBDIR_QT = $(TQTDIR)\lib + +TQMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o$obj $src +TQMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< +TQMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$obj $src +TQMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +TQMAKE_LINK = ilink32 +TQMAKE_LFLAGS = -c -x -Gn +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = -v +TQMAKE_LFLAGS_CONSOLE = -ap -Tpe c0x32.obj +TQMAKE_LFLAGS_WINDOWS = -aa -Tpe c0w32.obj +TQMAKE_LFLAGS_CONSOLE_DLL= -Gi -ap -Tpd c0d32.obj +TQMAKE_LFLAGS_WINDOWS_DLL= -Gi -aa -Tpd c0d32.obj + +TQMAKE_LIBS = import32.lib +TQMAKE_LIBS_RT = cw32i.lib +TQMAKE_LIBS_RTMT = cw32mti.lib +TQMAKE_LIBS_CONSOLE = +TQMAKE_LIBS_WINDOWS = +TQMAKE_LIBS_QT = qt.lib +TQMAKE_LIBS_TQT_THREAD = qtmt.lib +TQMAKE_LIBS_TQT_ENTRY = qtmain.lib + +TQMAKE_LIBS_OPENGL = +TQMAKE_LFLAGS_OPENGL = /dopengl32.dll + +TQMAKE_TQMOC = $(TQTDIR)\bin\tqmoc.exe +TQMAKE_UIC = $(TQTDIR)\bin\uic.exe +TQMAKE_IDC = $(TQTDIR)\bin\idc.exe + +TQMAKE_IDL = midl +TQMAKE_LIB = tlib /C /P256 +TQMAKE_RC = brcc32 -dTQ_CC_BOR + +TQMAKE_ZIP = zip -r -9 + +TQMAKE_COPY = copy +TQMAKE_MOVE = move +TQMAKE_DEL_FILE = del +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = if not exist +TQMAKE_MKDIR = mkdir diff --git a/tqtinterface/qt4/mkspecs/win32-borland/qplatformdefs.h b/tqtinterface/qt4/mkspecs/win32-borland/qplatformdefs.h new file mode 100644 index 0000000..6fb49a2 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-borland/qplatformdefs.h @@ -0,0 +1,154 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +#ifdef UNICODE +#ifndef _UNICODE +#define _UNICODE +#endif +#endif + +// Get TQt defines/settings + +#include "tqglobal.h" +#define TQ_FS_FAT + +#define _POSIX_ +#include <limits.h> +#undef _POSIX_ + +#include <tchar.h> +#include <io.h> +#include <direct.h> +#include <stdio.h> +#include <fcntl.h> +#include <errno.h> +#include <sys/stat.h> +#include <dos.h> +#include <stdlib.h> +#include <windows.h> + +#if __BORLANDC__ >= 0x550 +// Borland Builder 6 + +#ifdef TQT_LARGEFILE_SUPPORT +# define TQT_STATBUF struct stati64 // non-ANSI defs +# define TQT_STATBUF4TSTAT struct stati64 // non-ANSI defs +# define TQT_STAT ::_stati64 +# define TQT_FSTAT ::fstati64 +# define TQT_LSEEK ::_lseeki64 +# define TQT_TSTAT ::_tstati64 +#else +# define TQT_STATBUF struct stat // non-ANSI defs +# define TQT_STATBUF4TSTAT struct _stat // non-ANSI defs +# define TQT_STAT ::stat +# define TQT_FSTAT ::fstat +# define TQT_LSEEK ::_lseek +# define TQT_TSTAT ::_tstat +#endif + +#define TQT_STAT_REG _S_IFREG +#define TQT_STAT_DIR _S_IFDIR +#define TQT_STAT_MASK _S_IFMT + +#if defined(_S_IFLNK) +# define TQT_STAT_LNK _S_IFLNK +#endif + +#define TQT_FILENO _fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::_close + +#define TQT_READ ::_read +#define TQT_WRITE ::_write +#define TQT_ACCESS ::_access +#define TQT_GETCWD ::_getcwd +#define TQT_CHDIR ::chdir +#define TQT_MKDIR ::_mkdir +#define TQT_RMDIR ::_rmdir +#define TQT_OPEN_RDONLY _O_RDONLY +#define TQT_OPEN_WRONLY _O_WRONLY +#define TQT_OPEN_RDWR _O_RDWR +#define TQT_OPEN_CREAT _O_CREAT +#define TQT_OPEN_TRUNC _O_TRUNC +#define TQT_OPEN_APPEND _O_APPEND + +#if defined(O_TEXT) +# define TQT_OPEN_TEXT _O_TEXT +# define TQT_OPEN_BINARY _O_BINARY +#endif + +#else +// Borland Builder 5 + +#ifdef TQT_LARGEFILE_SUPPORT +# define TQT_STATBUF struct stati64 // non-ANSI defs +# define TQT_STATBUF4TSTAT struct stati64 // non-ANSI defs +# define TQT_STAT ::stati64 +# define TQT_FSTAT ::fstati64 +# define TQT_LSEEK ::lseeki64 +# define TQT_TSTAT ::tstati64 +#else +# define TQT_STATBUF struct stat // non-ANSI defs +# define TQT_STATBUF4TSTAT struct stat // non-ANSI defs +# define TQT_STAT ::stat +# define TQT_FSTAT ::fstat +# define TQT_LSEEK ::lseek +# define TQT_TSTAT ::tstat +#endif + +#define TQT_STAT_REG S_IFREG +#define TQT_STAT_DIR S_IFDIR +#define TQT_STAT_MASK S_IFMT + +#if defined(S_IFLNK) +# define TQT_STAT_LNK S_IFLNK +#endif + +#define TQT_FILENO fileno +#define TQT_OPEN ::open +#define TQT_CLOSE ::close + +#define TQT_READ ::read +#define TQT_WRITE ::write +#define TQT_ACCESS ::access + +#if defined(TQ_OS_OS2EMX) + // This is documented in the un*x to OS/2-EMX Porting FAQ: + // http://homepages.tu-darmstadt.de/~st002279/os2/porting.html +# define TQT_GETCWD ::_getcwd2 +# define TQT_CHDIR ::_chdir2 +#else +# define TQT_GETCWD ::getcwd +# define TQT_CHDIR ::chdir +#endif + +#define TQT_MKDIR ::mkdir +#define TQT_RMDIR ::rmdir +#define TQT_OPEN_RDONLY O_RDONLY +#define TQT_OPEN_WRONLY O_WRONLY +#define TQT_OPEN_RDWR O_RDWR +#define TQT_OPEN_CREAT O_CREAT +#define TQT_OPEN_TRUNC O_TRUNC +#define TQT_OPEN_APPEND O_APPEND + +#if defined(O_TEXT) +# define TQT_OPEN_TEXT O_TEXT +# define TQT_OPEN_BINARY O_BINARY +#endif + +#endif // __BORLANDC__ >= 0x550 + +// Borland Builder 5 and 6 + +#define TQT_SIGNAL_ARGS int + +#define TQT_VSNPRINTF ::_vsnprintf +#define TQT_SNPRINTF ::_snprintf + +# define F_OK 0 +# define X_OK 1 +# define W_OK 2 +# define R_OK 4 + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/win32-g++/qmake.conf b/tqtinterface/qt4/mkspecs/win32-g++/qmake.conf new file mode 100644 index 0000000..154f74a --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-g++/qmake.conf @@ -0,0 +1,97 @@ +# +# +# qmake configuration for win32-g++ +# +# Written for MinGW +# + +MAKEFILE_GENERATOR = MINGW +TEMPLATE = app +CONFIG += qt warn_on release link_prl +DEFINES += UNICODE + +exists( $(TQTDIR)\.qtwinconfig ) { + include( $(TQTDIR)\.qtwinconfig ) +} + +TQMAKE_CC = gcc +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = byacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = +TQMAKE_CFLAGS_DEPS = -M +TQMAKE_CFLAGS_WARN_ON = -Wall +TQMAKE_CFLAGS_WARN_OFF = -w +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -g +TQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TQMAKE_CFLAGS_THREAD = -mthreads +TQMAKE_CFLAGS_RTTI_ON = -frtti +TQMAKE_CFLAGS_RTTI_OFF = -fno-rtti +TQMAKE_CFLAGS_EXCEPTIONS_ON = -fexceptions +TQMAKE_CFLAGS_EXCEPTIONS_OFF = -fno-exceptions + +TQMAKE_CXX = g++ +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_DEPS = $$TQMAKE_CFLAGS_DEPS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_THREAD = $$TQMAKE_CFLAGS_THREAD +TQMAKE_CXXFLAGS_RTTI_ON = $$TQMAKE_CFLAGS_RTTI_ON +TQMAKE_CXXFLAGS_RTTI_OFF = $$TQMAKE_CFLAGS_RTTI_OFF +TQMAKE_CXXFLAGS_EXCEPTIONS_ON = $$TQMAKE_CFLAGS_EXCEPTIONS_ON +TQMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$TQMAKE_CFLAGS_EXCEPTIONS_OFF + +TQMAKE_INCDIR = +TQMAKE_INCDIR_QT = $(TQTDIR)\include +TQMAKE_LIBDIR_QT = $(TQTDIR)\lib + +TQMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src +TQMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< +TQMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src +TQMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +TQMAKE_LINK = g++ +TQMAKE_LFLAGS = -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc +TQMAKE_LFLAGS_RELEASE = -Wl,-s +TQMAKE_LFLAGS_DEBUG = +TQMAKE_LFLAGS_THREAD = -mthreads +TQMAKE_LFLAGS_CONSOLE = -Wl,-subsystem,console +TQMAKE_LFLAGS_WINDOWS = -Wl,-subsystem,windows -e __Z19TQtWinMainCRTStartupv +TQMAKE_LFLAGS_CONSOLE_DLL= -Wl,-subsystem,console -shared -Wl,--export-all-symbols +TQMAKE_LFLAGS_WINDOWS_DLL= -Wl,-subsystem,windows -shared -Wl,--export-all-symbols +TQMAKE_LINK_OBJECT_MAX = 10 +TQMAKE_LINK_OBJECT_SCRIPT= object_ld_script +TQMAKE_LINK_OBJTQMOC_SCRIPT= objtqmoc_ld_script + +TQMAKE_LIBS = +TQMAKE_LIBS_CONSOLE = +TQMAKE_LIBS_WINDOWS = -lkernel32 -luser32 -lgdi32 -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -limm32 -lwinmm -lwsock32 -lwinspool +TQMAKE_LIBS_QT = -lqt +TQMAKE_LIBS_TQT_THREAD = -lqt-mt +TQMAKE_LIBS_TQT_ENTRY = -lqtmain + +TQMAKE_LIBS_OPENGL = -lopengl32 -lglu32 + +TQMAKE_TQMOC = $(TQTDIR)\bin\tqmoc.exe +TQMAKE_UIC = $(TQTDIR)\bin\uic.exe +TQMAKE_IDC = $(TQTDIR)\bin\idc.exe + +TQMAKE_IDL = midl +TQMAKE_LIB = ar -ru +TQMAKE_RC = windres + +TQMAKE_ZIP = zip -r -9 + +TQMAKE_COPY = copy +TQMAKE_MOVE = move +TQMAKE_DEL_FILE = del +TQMAKE_DEL_DIR = rmdir +TQMAKE_STRIP = strip +TQMAKE_STRIPFLAGS_LIB += --strip-unneeded +TQMAKE_CHK_DIR_EXISTS = if not exist +TQMAKE_MKDIR = mkdir diff --git a/tqtinterface/qt4/mkspecs/win32-g++/qtcrtentrypoint.cpp b/tqtinterface/qt4/mkspecs/win32-g++/qtcrtentrypoint.cpp new file mode 100644 index 0000000..3d047e8 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-g++/qtcrtentrypoint.cpp @@ -0,0 +1,231 @@ + +//This code is need to get the WinMain function called. Current MinGW runtimes tries to call main +//before WinMain. Untill such time as MinGw runtime has been changed this is need. +//Most of this code is taken from the MinGw runtime sources. + + +#include <signal.h> +#include <process.h> +#include <float.h> +#include <io.h> + + +/* + * Setup the default file handles to have the _CRT_fmode mode, as well as + * any new files created by the user. + */ + +extern int _fmode; +extern "C" int* __p__fmode(void); /* To access the dll _fmode */ +extern int _CRT_fmode; + +static void _mingw32_init_fmode () +{ + /* Don't set the std file mode if the user hasn't set any value for it. */ + if (_CRT_fmode) + { + _fmode = _CRT_fmode; + + /* + * This overrides the default file mode settings for stdin, + * stdout and stderr. At first I thought you would have to + * test with isatty, but it seems that the DOS console at + * least is smart enough to handle _O_BINARY stdout and + * still display correctly. + */ + if (stdin) + { + _setmode (_fileno (stdin), _CRT_fmode); + } + if (stdout) + { + _setmode (_fileno (stdout), _CRT_fmode); + } + if (stderr) + { + _setmode (_fileno (stderr), _CRT_fmode); + } + } + + /* Now sync the dll _fmode to the one for this .exe. */ + *__p__fmode() = _fmode; + +} + +/* This function will be called when a trap occurs. Thanks to Jacob + Navia for his contribution. */ +static CALLBACK long _gnu_exception_handler (EXCEPTION_POINTERS * exception_data) +{ + void (*old_handler) (int); + long action = EXCEPTION_CONTINUE_SEARCH; + int reset_fpu = 0; + + switch (exception_data->ExceptionRecord->ExceptionCode) + { + case EXCEPTION_ACCESS_VIOLATION: + /* test if the user has set SIGSEGV */ + old_handler = signal (SIGSEGV, SIG_DFL); + if (old_handler == SIG_IGN) + { + /* this is undefined if the signal was raised by anything other + than raise (). */ + signal (SIGSEGV, SIG_IGN); + action = EXCEPTION_CONTINUE_EXECUTION; + } + else if (old_handler != SIG_DFL) + { + /* This means 'old' is a user defined function. Call it */ + (*old_handler) (SIGSEGV); + action = EXCEPTION_CONTINUE_EXECUTION; + } + break; + + case EXCEPTION_FLT_INVALID_OPERATION: + case EXCEPTION_FLT_DIVIDE_BY_ZERO: + case EXCEPTION_FLT_DENORMAL_OPERAND: + case EXCEPTION_FLT_OVERFLOW: + case EXCEPTION_FLT_UNDERFLOW: + case EXCEPTION_FLT_INEXACT_RESULT: + reset_fpu = 1; + /* fall through. */ + + case EXCEPTION_INT_DIVIDE_BY_ZERO: + /* test if the user has set SIGFPE */ + old_handler = signal (SIGFPE, SIG_DFL); + if (old_handler == SIG_IGN) + { + signal (SIGFPE, SIG_IGN); + if (reset_fpu) + _fpreset (); + action = EXCEPTION_CONTINUE_EXECUTION; + } + else if (old_handler != SIG_DFL) + { + /* This means 'old' is a user defined function. Call it */ + (*old_handler) (SIGFPE); + action = EXCEPTION_CONTINUE_EXECUTION; + } + break; + + default: + break; + } + return action; +} + + +extern char __RUNTIME_PSEUDO_RELOC_LIST__; +extern char __RUNTIME_PSEUDO_RELOC_LIST_END__; +extern char _image_base__; + +typedef struct { + DWORD addend; + DWORD target; +} runtime_pseudo_reloc; + +static void do_pseudo_reloc (void* start, void* end, void* base) +{ + DWORD reloc_target; + runtime_pseudo_reloc* r; + for (r = (runtime_pseudo_reloc*) start; r < (runtime_pseudo_reloc*) end; r++) { + reloc_target = (DWORD) base + r->target; + *((DWORD*) reloc_target) += r->addend; + } +} + +void _pei386_runtime_relocator () +{ + do_pseudo_reloc (&__RUNTIME_PSEUDO_RELOC_LIST__, + &__RUNTIME_PSEUDO_RELOC_LIST_END__, + &_image_base__); +} + + +#ifdef __MSVCRT__ +#define __UNKNOWN_APP 0 +#define __CONSOLE_APP 1 +#define __GUI_APP 2 +extern "C" void __set_app_type(int); +#endif /* __MSVCRT__ */ + +#define ISSPACE(a) (a == ' ' || a == '\t') + +int TQtWinMainCRTStartup() +{ +#ifdef __MSVCRT__ + __set_app_type (__GUI_APP); +#endif + + SetUnhandledExceptionFilter (_gnu_exception_handler); + + /* + * Initialize floating point unit. + */ + _fpreset (); /* Supplied by the runtime library. */ + + /* + * Sets the default file mode. + * If _CRT_fmode is set, also set mode for stdin, stdout + * and stderr, as well + * NOTE: DLLs don't do this because that would be rude! + */ + _mingw32_init_fmode (); + + /* Adust references to dllimported data that have non-zero offsets. */ + _pei386_runtime_relocator (); + + char *szCmd; + STARTUPINFO startinfo; + int nRet; + + /* Get the command line passed to the process. */ + szCmd = GetCommandLineA (); + GetStartupInfo (&startinfo); + + /* Strip off the name of the application and any leading + * whitespace. */ + if (szCmd) { + + while (ISSPACE (*szCmd)) { + szCmd++; + } + + /* On my system I always get the app name enclosed + * in quotes... */ + if (*szCmd == '\"') { + do { + szCmd++; + } while (*szCmd != '\"' && *szCmd != '\0'); + + if (*szCmd == '\"') { + szCmd++; + } + } else { + /* If no quotes then assume first token is program + * name. */ + while (!ISSPACE (*szCmd) && *szCmd != '\0') { + szCmd++; + } + } + + while (ISSPACE (*szCmd)) { + szCmd++; + } + } + + nRet = WinMain (GetModuleHandle (NULL), NULL, szCmd, + (startinfo.dwFlags & STARTF_USESHOWWINDOW) ? + startinfo.wShowWindow : SW_SHOWDEFAULT); + + /* + * Perform exit processing for the C library. This means + * flushing output and calling 'atexit' registered functions. + */ + _cexit (); + + ExitProcess (nRet); + + return 0; + +} + diff --git a/tqtinterface/qt4/mkspecs/win32-g++/tqplatformdefs.h b/tqtinterface/qt4/mkspecs/win32-g++/tqplatformdefs.h new file mode 100644 index 0000000..b6cf23d --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-g++/tqplatformdefs.h @@ -0,0 +1,96 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +#ifdef UNICODE +#ifndef _UNICODE +#define _UNICODE +#endif +#endif + +// Get TQt defines/settings + +#include "tqglobal.h" + +#include <tchar.h> +#include <io.h> +#include <direct.h> +#include <stdio.h> +#include <fcntl.h> +#include <errno.h> +#include <sys/stat.h> +#include <stdlib.h> +#include <windows.h> + +#if !defined(_WIN32_WINNT) || (_WIN32_WINNT-0 < 0x0500) +typedef enum { + NameUnknown = 0, + NameFullyQualifiedDN = 1, + NameSamCompatible = 2, + NameDisplay = 3, + NameUniqueId = 6, + NameCanonical = 7, + NameUserPrincipal = 8, + NameCanonicalEx = 9, + NameServicePrincipal = 10, + NameDnsDomain = 12 +} EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT; +#endif + +#define TQ_FS_FAT +#ifdef TQT_LARGEFILE_SUPPORT +#define TQT_STATBUF struct _stati64 // non-ANSI defs +#define TQT_STATBUF4TSTAT struct _stati64 // non-ANSI defs +#define TQT_STAT ::_stati64 +#define TQT_FSTAT ::_fstati64 +#else +#define TQT_STATBUF struct _stat // non-ANSI defs +#define TQT_STATBUF4TSTAT struct _stat // non-ANSI defs +#define TQT_STAT ::_stat +#define TQT_FSTAT ::_fstat +#endif +#define TQT_STAT_REG _S_IFREG +#define TQT_STAT_DIR _S_IFDIR +#define TQT_STAT_MASK _S_IFMT +#if defined(_S_IFLNK) +# define TQT_STAT_LNK _S_IFLNK +#endif +#define TQT_FILENO _fileno +#define TQT_OPEN ::_open +#define TQT_CLOSE ::_close +#ifdef TQT_LARGEFILE_SUPPORT +#define TQT_LSEEK ::_lseeki64 +#define TQT_TSTAT ::_tstati64 +#else +#define TQT_LSEEK ::_lseek +#define TQT_TSTAT ::_tstat +#endif +#define TQT_READ ::_read +#define TQT_WRITE ::_write +#define TQT_ACCESS ::_access +#define TQT_GETCWD ::_getcwd +#define TQT_CHDIR ::_chdir +#define TQT_MKDIR ::_mkdir +#define TQT_RMDIR ::_rmdir +#define TQT_OPEN_RDONLY _O_RDONLY +#define TQT_OPEN_WRONLY _O_WRONLY +#define TQT_OPEN_RDWR _O_RDWR +#define TQT_OPEN_CREAT _O_CREAT +#define TQT_OPEN_TRUNC _O_TRUNC +#define TQT_OPEN_APPEND _O_APPEND +#if defined(O_TEXT) +# define TQT_OPEN_TEXT _O_TEXT +# define TQT_OPEN_BINARY _O_BINARY +#endif + +#define TQT_SIGNAL_ARGS int + +#define TQT_VSNPRINTF ::_vsnprintf +#define TQT_SNPRINTF ::_snprintf + +# define F_OK 0 +# define X_OK 1 +# define W_OK 2 +# define R_OK 4 + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/win32-icc/qmake.conf b/tqtinterface/qt4/mkspecs/win32-icc/qmake.conf new file mode 100644 index 0000000..ebecdc7 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-icc/qmake.conf @@ -0,0 +1,105 @@ +# +# +# qmake configuration for win32-icc +# +# Written for Intel C++ 5.0.1, 6.0.1, and 7.0 for Windows. +# + +MAKEFILE_GENERATOR = MSVC +TEMPLATE = app +CONFIG += qt warn_on release incremental link_prl +DEFINES += UNICODE + +exists( $(TQTDIR)\.qtwinconfig ) { + include( $(TQTDIR)\.qtwinconfig ) +} + +TQMAKE_CC = icl +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = byacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -nologo -Zm200 +TQMAKE_CFLAGS_WARN_ON = -W3 +TQMAKE_CFLAGS_WARN_OFF = -W0 +TQMAKE_CFLAGS_RELEASE = +TQMAKE_CFLAGS_DEBUG = -Zi -Od +TQMAKE_CFLAGS_MT = -MD +TQMAKE_CFLAGS_MT_DBG = -MDd +TQMAKE_CFLAGS_MT_DLL = -MD +TQMAKE_CFLAGS_MT_DLLDBG = -MDd +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_STL_ON = -GX +TQMAKE_CFLAGS_STL_OFF = +TQMAKE_CFLAGS_RTTI_ON = -GR +TQMAKE_CFLAGS_RTTI_OFF = +TQMAKE_CFLAGS_EXCEPTIONS_ON = -GX +TQMAKE_CFLAGS_EXCEPTIONS_OFF = + +TQMAKE_CXX = $$TQMAKE_CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_MT = $$TQMAKE_CFLAGS_MT +TQMAKE_CXXFLAGS_MT_DBG = $$TQMAKE_CFLAGS_MT_DBG +TQMAKE_CXXFLAGS_MT_DLL = $$TQMAKE_CFLAGS_MT_DLL +TQMAKE_CXXFLAGS_MT_DLLDBG= $$TQMAKE_CFLAGS_MT_DLLDBG +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_STL_ON = $$TQMAKE_CFLAGS_STL_ON +TQMAKE_CXXFLAGS_STL_OFF = $$TQMAKE_CFLAGS_STL_OFF +TQMAKE_CXXFLAGS_RTTI_ON = $$TQMAKE_CFLAGS_RTTI_ON +TQMAKE_CXXFLAGS_RTTI_OFF = $$TQMAKE_CFLAGS_RTTI_OFF +TQMAKE_CXXFLAGS_EXCEPTIONS_ON = $$TQMAKE_CFLAGS_EXCEPTIONS_ON +TQMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$TQMAKE_CFLAGS_EXCEPTIONS_OFF + +TQMAKE_INCDIR = +TQMAKE_INCDIR_QT = $(TQTDIR)\include +TQMAKE_LIBDIR_QT = $(TQTDIR)\lib + +TQMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src +TQMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< +TQMAKE_RUN_CC_IMP_BATCH = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<< +TQMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src +TQMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< +TQMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<< + +TQMAKE_LINK = link +TQMAKE_LFLAGS = /NOLOGO +TQMAKE_LFLAGS_RELEASE = delayimp.lib /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll +TQMAKE_LFLAGS_DEBUG = /DEBUG +TQMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:console +TQMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:windows +TQMAKE_LFLAGS_CONSOLE_DLL= /SUBSYSTEM:console /DLL +TQMAKE_LFLAGS_WINDOWS_DLL= /SUBSYSTEM:windows /DLL +TQMAKE_LFLAGS_TQT_DLL = /BASE:0x39D00000 + +TQMAKE_LIBS = +TQMAKE_LIBS_CONSOLE = +TQMAKE_LIBS_WINDOWS = kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib +TQMAKE_LIBS_QT = qt.lib +TQMAKE_LIBS_TQT_THREAD = qt-mt.lib +TQMAKE_LIBS_TQT_ENTRY = qtmain.lib + +TQMAKE_LIBS_OPENGL = opengl32.lib glu32.lib delayimp.lib +TQMAKE_LFLAGS_OPENGL = /DELAYLOAD:opengl32.dll + +TQMAKE_TQMOC = $(TQTDIR)\bin\tqmoc.exe +TQMAKE_UIC = $(TQTDIR)\bin\uic.exe +TQMAKE_IDC = $(TQTDIR)\bin\idc.exe + +TQMAKE_IDL = midl +TQMAKE_LIB = lib /NOLOGO +TQMAKE_RC = rc + +TQMAKE_ZIP = zip -r -9 + +TQMAKE_COPY = copy +TQMAKE_MOVE = move +TQMAKE_DEL_FILE = del +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = if not exist +TQMAKE_MKDIR = mkdir + +DSP_EXTENSION = .dsp diff --git a/tqtinterface/qt4/mkspecs/win32-icc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/win32-icc/qplatformdefs.h new file mode 100644 index 0000000..edf7d8d --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-icc/qplatformdefs.h @@ -0,0 +1,87 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +#ifdef UNICODE +#ifndef _UNICODE +#define _UNICODE +#endif +#endif + +// Get TQt defines/settings + +#include "tqglobal.h" + +#define _POSIX_ +#include <limits.h> +#undef _POSIX_ + +#include <tchar.h> +#include <io.h> +#include <direct.h> +#include <stdio.h> +#include <fcntl.h> +#include <errno.h> +#include <sys/stat.h> +#include <stdlib.h> +#include <windows.h> + +#define TQ_FS_FAT +#ifdef TQT_LARGEFILE_SUPPORT +#define TQT_STATBUF struct _stati64 // non-ANSI defs +#define TQT_STATBUF4TSTAT struct _stati64 // non-ANSI defs +#define TQT_STAT ::_stati64 +#define TQT_FSTAT ::_fstati64 +#else +#define TQT_STATBUF struct _stat // non-ANSI defs +#define TQT_STATBUF4TSTAT struct _stat // non-ANSI defs +#define TQT_STAT ::_stat +#define TQT_FSTAT ::_fstat +#endif +#define TQT_STAT_REG _S_IFREG +#define TQT_STAT_DIR _S_IFDIR +#define TQT_STAT_MASK _S_IFMT +#if defined(_S_IFLNK) +# define TQT_STAT_LNK _S_IFLNK +#endif +#define TQT_FILENO _fileno +#define TQT_OPEN ::_open +#define TQT_CLOSE ::_close +#ifdef TQT_LARGEFILE_SUPPORT +#define TQT_LSEEK ::_lseeki64 +#define TQT_TSTAT ::_tstati64 +#else +#define TQT_LSEEK ::_lseek +#define TQT_TSTAT ::_tstat +#endif +#define TQT_READ ::_read +#define TQT_WRITE ::_write +#define TQT_ACCESS ::_access +#define TQT_GETCWD ::_getcwd +#define TQT_CHDIR ::_chdir +#define TQT_MKDIR ::_mkdir +#define TQT_RMDIR ::_rmdir +#define TQT_OPEN_RDONLY _O_RDONLY +#define TQT_OPEN_WRONLY _O_WRONLY +#define TQT_OPEN_RDWR _O_RDWR +#define TQT_OPEN_CREAT _O_CREAT +#define TQT_OPEN_TRUNC _O_TRUNC +#define TQT_OPEN_APPEND _O_APPEND +#if defined(O_TEXT) +# define TQT_OPEN_TEXT _O_TEXT +# define TQT_OPEN_BINARY _O_BINARY +#endif + +#define TQT_SIGNAL_ARGS int + +#define TQT_VSNPRINTF ::_vsnprintf +#define TQT_SNPRINTF ::_snprintf + +# define F_OK 0 +# define X_OK 1 +# define W_OK 2 +# define R_OK 4 + +typedef int mode_t; + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/win32-icc/win32app.dsp b/tqtinterface/qt4/mkspecs/win32-icc/win32app.dsp new file mode 100644 index 0000000..4f19da4 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-icc/win32app.dsp @@ -0,0 +1,111 @@ +# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) $$MSVCDSP_CONSOLE Application" $$MSVCDSP_DSPTYPE + +CFG=$$MSVCDSP_PROJECT - Win32 $$MSVCDSP_CONFIGMODE +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Application") +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LINK32=link.exe +# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE +$$MSVCDSP_REGSVR_REL + +!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEFD /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LINK32=link.exe +# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG +$$MSVCDSP_REGSVR_DBG + +!ENDIF + +# Begin Target + +# Name "$$MSVCDSP_PROJECT - Win32 Release" +# Name "$$MSVCDSP_PROJECT - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +$$MSVCDSP_SOURCES +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +$$MSVCDSP_HEADERS +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group + +$$MSVCDSP_FORMS +$$MSVCDSP_TRANSLATIONS +$$MSVCDSP_LEXSOURCES +$$MSVCDSP_YACCSOURCES +$$MSVCDSP_PICTURES + +# Begin Group "Generated" +$$MSVCDSP_TQMOCSOURCES +$$MSVCDSP_FORMSOURCES +$$MSVCDSP_FORMHEADERS +$$MSVCDSP_IMAGES +$$MSVCDSP_STRIPPEDTRANSLATIONS +$$MSVCDSP_IDLSOURCES +# Prop Default_Filter "tqmoc" +# End Group +# End Target +# End Project diff --git a/tqtinterface/qt4/mkspecs/win32-icc/win32dll.dsp b/tqtinterface/qt4/mkspecs/win32-icc/win32dll.dsp new file mode 100644 index 0000000..272635b --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-icc/win32dll.dsp @@ -0,0 +1,113 @@ +# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=$$MSVCDSP_PROJECT - Win32 $$MSVCDSP_CONFIGMODE +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP Ignore_Export_Lib 1 +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LINK32=link.exe +# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE +$$MSVCDSP_COPY_DLL_REL + +!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP Ignore_Export_Lib 1 +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEFD /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LINK32=link.exe +# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG +$$MSVCDSP_COPY_DLL_DBG + +!ENDIF + +# Begin Target + +# Name "$$MSVCDSP_PROJECT - Win32 Release" +# Name "$$MSVCDSP_PROJECT - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +$$MSVCDSP_SOURCES +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +$$MSVCDSP_HEADERS +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group + +$$MSVCDSP_FORMS +$$MSVCDSP_TRANSLATIONS +$$MSVCDSP_LEXSOURCES +$$MSVCDSP_YACCSOURCES +$$MSVCDSP_PICTURES + +# Begin Group "Generated" +$$MSVCDSP_TQMOCSOURCES +$$MSVCDSP_FORMSOURCES +$$MSVCDSP_FORMHEADERS +$$MSVCDSP_IMAGES +$$MSVCDSP_STRIPPEDTRANSLATIONS +$$MSVCDSP_IDLSOURCES +# Prop Default_Filter "tqmoc" +# End Group +# End Target +# End Project diff --git a/tqtinterface/qt4/mkspecs/win32-icc/win32lib.dsp b/tqtinterface/qt4/mkspecs/win32-icc/win32lib.dsp new file mode 100644 index 0000000..ee6f55d --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-icc/win32lib.dsp @@ -0,0 +1,105 @@ +# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=$$MSVCDSP_PROJECT - Win32 $$MSVCDSP_CONFIGMODE +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD LIB32 /nologo $$MSVCDSP_TARGET + +!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEFD /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD LIB32 /nologo $$MSVCDSP_TARGET + +!ENDIF + +# Begin Target + +# Name "$$MSVCDSP_PROJECT - Win32 Release" +# Name "$$MSVCDSP_PROJECT - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +$$MSVCDSP_SOURCES +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +$$MSVCDSP_HEADERS +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group + +$$MSVCDSP_FORMS +$$MSVCDSP_TRANSLATIONS +$$MSVCDSP_LEXSOURCES +$$MSVCDSP_YACCSOURCES +$$MSVCDSP_PICTURES + +# Begin Group "Generated" +$$MSVCDSP_TQMOCSOURCES +$$MSVCDSP_FORMSOURCES +$$MSVCDSP_FORMHEADERS +$$MSVCDSP_IMAGES +$$MSVCDSP_STRIPPEDTRANSLATIONS +# Prop Default_Filter "tqmoc" +# End Group +# End Target +# End Project diff --git a/tqtinterface/qt4/mkspecs/win32-msvc.net/qmake.conf b/tqtinterface/qt4/mkspecs/win32-msvc.net/qmake.conf new file mode 100644 index 0000000..3e34b16 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-msvc.net/qmake.conf @@ -0,0 +1,106 @@ +# +# +# qmake configuration for win32-msvc.net +# +# Written for Microsoft C++.NET. +# + +MAKEFILE_GENERATOR = MSVC.NET +TEMPLATE = app +CONFIG += qt warn_on release incremental flat link_prl precompile_header +DEFINES += UNICODE WIN32 + +exists( $(TQTDIR)\.qtwinconfig ) { + include( $(TQTDIR)\.qtwinconfig ) +} + +TQMAKE_CC = cl +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = byacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -nologo -Zm200 +TQMAKE_CFLAGS_WARN_ON = -W3 +TQMAKE_CFLAGS_WARN_OFF = -W0 +TQMAKE_CFLAGS_RELEASE = -O1 +TQMAKE_CFLAGS_DEBUG = -Zi -Gm +TQMAKE_CFLAGS_MT = -MD +TQMAKE_CFLAGS_MT_DBG = -MDd +TQMAKE_CFLAGS_MT_DLL = -MD +TQMAKE_CFLAGS_MT_DLLDBG = -MDd +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_STL_ON = -GX +TQMAKE_CFLAGS_STL_OFF = +TQMAKE_CFLAGS_RTTI_ON = -GR +TQMAKE_CFLAGS_RTTI_OFF = +TQMAKE_CFLAGS_EXCEPTIONS_ON = -GX +TQMAKE_CFLAGS_EXCEPTIONS_OFF = + +TQMAKE_CXX = $$TQMAKE_CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON -w34100 -w34189 +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_MT = $$TQMAKE_CFLAGS_MT +TQMAKE_CXXFLAGS_MT_DBG = $$TQMAKE_CFLAGS_MT_DBG +TQMAKE_CXXFLAGS_MT_DLL = $$TQMAKE_CFLAGS_MT_DLL +TQMAKE_CXXFLAGS_MT_DLLDBG= $$TQMAKE_CFLAGS_MT_DLLDBG +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_STL_ON = $$TQMAKE_CFLAGS_STL_ON +TQMAKE_CXXFLAGS_STL_OFF = $$TQMAKE_CFLAGS_STL_OFF +TQMAKE_CXXFLAGS_RTTI_ON = $$TQMAKE_CFLAGS_RTTI_ON +TQMAKE_CXXFLAGS_RTTI_OFF = $$TQMAKE_CFLAGS_RTTI_OFF +TQMAKE_CXXFLAGS_EXCEPTIONS_ON = $$TQMAKE_CFLAGS_EXCEPTIONS_ON +TQMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$TQMAKE_CFLAGS_EXCEPTIONS_OFF + +TQMAKE_INCDIR = +TQMAKE_INCDIR_QT = $(TQTDIR)\include +TQMAKE_LIBDIR_QT = $(TQTDIR)\lib + +TQMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src +TQMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< +TQMAKE_RUN_CC_IMP_BATCH = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<< +TQMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src +TQMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< +TQMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<< + +TQMAKE_LINK = link +TQMAKE_LFLAGS = /NOLOGO +TQMAKE_LFLAGS_RELEASE = /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll +TQMAKE_LFLAGS_DEBUG = /DEBUG +TQMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE +TQMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS +TQMAKE_LFLAGS_CONSOLE_DLL= /SUBSYSTEM:CONSOLE /DLL +TQMAKE_LFLAGS_WINDOWS_DLL= /SUBSYSTEM:WINDOWS /DLL +TQMAKE_LFLAGS_TQT_DLL = /BASE:0x39D00000 + +TQMAKE_LIBS = +TQMAKE_LIBS_CONSOLE = +TQMAKE_LIBS_WINDOWS = kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib delayimp.lib +TQMAKE_LIBS_QT = qt.lib +TQMAKE_LIBS_TQT_THREAD = qt-mt.lib +TQMAKE_LIBS_TQT_ENTRY = qtmain.lib + +TQMAKE_LIBS_OPENGL = opengl32.lib glu32.lib +TQMAKE_LFLAGS_OPENGL = /DELAYLOAD:opengl32.dll + +TQMAKE_TQMOC = $(TQTDIR)\bin\tqmoc.exe +TQMAKE_UIC = $(TQTDIR)\bin\uic.exe +TQMAKE_IDC = $(TQTDIR)\bin\idc.exe + +TQMAKE_IDL = midl +TQMAKE_LIB = lib /NOLOGO +TQMAKE_RC = rc + +TQMAKE_ZIP = zip -r -9 + +TQMAKE_COPY = copy +TQMAKE_MOVE = move +TQMAKE_DEL_FILE = del +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = if not exist +TQMAKE_MKDIR = mkdir + +VCPROJ_EXTENSION = .vcproj +VCSOLUTION_EXTENSION = .sln diff --git a/tqtinterface/qt4/mkspecs/win32-msvc.net/qplatformdefs.h b/tqtinterface/qt4/mkspecs/win32-msvc.net/qplatformdefs.h new file mode 100644 index 0000000..edf7d8d --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-msvc.net/qplatformdefs.h @@ -0,0 +1,87 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +#ifdef UNICODE +#ifndef _UNICODE +#define _UNICODE +#endif +#endif + +// Get TQt defines/settings + +#include "tqglobal.h" + +#define _POSIX_ +#include <limits.h> +#undef _POSIX_ + +#include <tchar.h> +#include <io.h> +#include <direct.h> +#include <stdio.h> +#include <fcntl.h> +#include <errno.h> +#include <sys/stat.h> +#include <stdlib.h> +#include <windows.h> + +#define TQ_FS_FAT +#ifdef TQT_LARGEFILE_SUPPORT +#define TQT_STATBUF struct _stati64 // non-ANSI defs +#define TQT_STATBUF4TSTAT struct _stati64 // non-ANSI defs +#define TQT_STAT ::_stati64 +#define TQT_FSTAT ::_fstati64 +#else +#define TQT_STATBUF struct _stat // non-ANSI defs +#define TQT_STATBUF4TSTAT struct _stat // non-ANSI defs +#define TQT_STAT ::_stat +#define TQT_FSTAT ::_fstat +#endif +#define TQT_STAT_REG _S_IFREG +#define TQT_STAT_DIR _S_IFDIR +#define TQT_STAT_MASK _S_IFMT +#if defined(_S_IFLNK) +# define TQT_STAT_LNK _S_IFLNK +#endif +#define TQT_FILENO _fileno +#define TQT_OPEN ::_open +#define TQT_CLOSE ::_close +#ifdef TQT_LARGEFILE_SUPPORT +#define TQT_LSEEK ::_lseeki64 +#define TQT_TSTAT ::_tstati64 +#else +#define TQT_LSEEK ::_lseek +#define TQT_TSTAT ::_tstat +#endif +#define TQT_READ ::_read +#define TQT_WRITE ::_write +#define TQT_ACCESS ::_access +#define TQT_GETCWD ::_getcwd +#define TQT_CHDIR ::_chdir +#define TQT_MKDIR ::_mkdir +#define TQT_RMDIR ::_rmdir +#define TQT_OPEN_RDONLY _O_RDONLY +#define TQT_OPEN_WRONLY _O_WRONLY +#define TQT_OPEN_RDWR _O_RDWR +#define TQT_OPEN_CREAT _O_CREAT +#define TQT_OPEN_TRUNC _O_TRUNC +#define TQT_OPEN_APPEND _O_APPEND +#if defined(O_TEXT) +# define TQT_OPEN_TEXT _O_TEXT +# define TQT_OPEN_BINARY _O_BINARY +#endif + +#define TQT_SIGNAL_ARGS int + +#define TQT_VSNPRINTF ::_vsnprintf +#define TQT_SNPRINTF ::_snprintf + +# define F_OK 0 +# define X_OK 1 +# define W_OK 2 +# define R_OK 4 + +typedef int mode_t; + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/win32-msvc/qmake.conf b/tqtinterface/qt4/mkspecs/win32-msvc/qmake.conf new file mode 100644 index 0000000..3810ea2 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-msvc/qmake.conf @@ -0,0 +1,105 @@ +# +# +# qmake configuration for win32-msvc +# +# Written for Microsoft C++. +# + +MAKEFILE_GENERATOR = MSVC +TEMPLATE = app +CONFIG += qt warn_on release incremental flat link_prl precompile_header +DEFINES += UNICODE + +exists( $(TQTDIR)\.qtwinconfig ) { + include( $(TQTDIR)\.qtwinconfig ) +} + +TQMAKE_CC = cl +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = byacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -nologo -Zm200 +TQMAKE_CFLAGS_WARN_ON = -W3 +TQMAKE_CFLAGS_WARN_OFF = -W0 +TQMAKE_CFLAGS_RELEASE = -O1 +TQMAKE_CFLAGS_DEBUG = -Zi +TQMAKE_CFLAGS_MT = -MD +TQMAKE_CFLAGS_MT_DBG = -MDd +TQMAKE_CFLAGS_MT_DLL = -MD +TQMAKE_CFLAGS_MT_DLLDBG = -MDd +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_STL_ON = -GX +TQMAKE_CFLAGS_STL_OFF = +TQMAKE_CFLAGS_RTTI_ON = -GR +TQMAKE_CFLAGS_RTTI_OFF = +TQMAKE_CFLAGS_EXCEPTIONS_ON = -GX +TQMAKE_CFLAGS_EXCEPTIONS_OFF = + +TQMAKE_CXX = $$TQMAKE_CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_MT = $$TQMAKE_CFLAGS_MT +TQMAKE_CXXFLAGS_MT_DBG = $$TQMAKE_CFLAGS_MT_DBG +TQMAKE_CXXFLAGS_MT_DLL = $$TQMAKE_CFLAGS_MT_DLL +TQMAKE_CXXFLAGS_MT_DLLDBG= $$TQMAKE_CFLAGS_MT_DLLDBG +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_STL_ON = $$TQMAKE_CFLAGS_STL_ON +TQMAKE_CXXFLAGS_STL_OFF = $$TQMAKE_CFLAGS_STL_OFF +TQMAKE_CXXFLAGS_RTTI_ON = $$TQMAKE_CFLAGS_RTTI_ON +TQMAKE_CXXFLAGS_RTTI_OFF = $$TQMAKE_CFLAGS_RTTI_OFF +TQMAKE_CXXFLAGS_EXCEPTIONS_ON = $$TQMAKE_CFLAGS_EXCEPTIONS_ON +TQMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$TQMAKE_CFLAGS_EXCEPTIONS_OFF + +TQMAKE_INCDIR = +TQMAKE_INCDIR_QT = $(TQTDIR)\include +TQMAKE_LIBDIR_QT = $(TQTDIR)\lib + +TQMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src +TQMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< +TQMAKE_RUN_CC_IMP_BATCH = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<< +TQMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src +TQMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< +TQMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<< + +TQMAKE_LINK = link +TQMAKE_LFLAGS = /NOLOGO +TQMAKE_LFLAGS_RELEASE = delayimp.lib /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll +TQMAKE_LFLAGS_DEBUG = /DEBUG +TQMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:console +TQMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:windows +TQMAKE_LFLAGS_CONSOLE_DLL= /SUBSYSTEM:console /DLL +TQMAKE_LFLAGS_WINDOWS_DLL= /SUBSYSTEM:windows /DLL +TQMAKE_LFLAGS_TQT_DLL = /BASE:0x39D00000 + +TQMAKE_LIBS = +TQMAKE_LIBS_CONSOLE = +TQMAKE_LIBS_WINDOWS = kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib +TQMAKE_LIBS_QT = qt.lib +TQMAKE_LIBS_TQT_THREAD = qt-mt.lib +TQMAKE_LIBS_TQT_ENTRY = qtmain.lib + +TQMAKE_LIBS_OPENGL = opengl32.lib glu32.lib delayimp.lib +TQMAKE_LFLAGS_OPENGL = /DELAYLOAD:opengl32.dll + +TQMAKE_TQMOC = $(TQTDIR)\bin\tqmoc.exe +TQMAKE_UIC = $(TQTDIR)\bin\uic.exe +TQMAKE_IDC = $(TQTDIR)\bin\idc.exe + +TQMAKE_IDL = midl +TQMAKE_LIB = lib /NOLOGO +TQMAKE_RC = rc + +TQMAKE_ZIP = zip -r -9 + +TQMAKE_COPY = copy +TQMAKE_MOVE = move +TQMAKE_DEL_FILE = del +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = if not exist +TQMAKE_MKDIR = mkdir + +DSP_EXTENSION = .dsp diff --git a/tqtinterface/qt4/mkspecs/win32-msvc/qplatformdefs.h b/tqtinterface/qt4/mkspecs/win32-msvc/qplatformdefs.h new file mode 100644 index 0000000..edf7d8d --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-msvc/qplatformdefs.h @@ -0,0 +1,87 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +#ifdef UNICODE +#ifndef _UNICODE +#define _UNICODE +#endif +#endif + +// Get TQt defines/settings + +#include "tqglobal.h" + +#define _POSIX_ +#include <limits.h> +#undef _POSIX_ + +#include <tchar.h> +#include <io.h> +#include <direct.h> +#include <stdio.h> +#include <fcntl.h> +#include <errno.h> +#include <sys/stat.h> +#include <stdlib.h> +#include <windows.h> + +#define TQ_FS_FAT +#ifdef TQT_LARGEFILE_SUPPORT +#define TQT_STATBUF struct _stati64 // non-ANSI defs +#define TQT_STATBUF4TSTAT struct _stati64 // non-ANSI defs +#define TQT_STAT ::_stati64 +#define TQT_FSTAT ::_fstati64 +#else +#define TQT_STATBUF struct _stat // non-ANSI defs +#define TQT_STATBUF4TSTAT struct _stat // non-ANSI defs +#define TQT_STAT ::_stat +#define TQT_FSTAT ::_fstat +#endif +#define TQT_STAT_REG _S_IFREG +#define TQT_STAT_DIR _S_IFDIR +#define TQT_STAT_MASK _S_IFMT +#if defined(_S_IFLNK) +# define TQT_STAT_LNK _S_IFLNK +#endif +#define TQT_FILENO _fileno +#define TQT_OPEN ::_open +#define TQT_CLOSE ::_close +#ifdef TQT_LARGEFILE_SUPPORT +#define TQT_LSEEK ::_lseeki64 +#define TQT_TSTAT ::_tstati64 +#else +#define TQT_LSEEK ::_lseek +#define TQT_TSTAT ::_tstat +#endif +#define TQT_READ ::_read +#define TQT_WRITE ::_write +#define TQT_ACCESS ::_access +#define TQT_GETCWD ::_getcwd +#define TQT_CHDIR ::_chdir +#define TQT_MKDIR ::_mkdir +#define TQT_RMDIR ::_rmdir +#define TQT_OPEN_RDONLY _O_RDONLY +#define TQT_OPEN_WRONLY _O_WRONLY +#define TQT_OPEN_RDWR _O_RDWR +#define TQT_OPEN_CREAT _O_CREAT +#define TQT_OPEN_TRUNC _O_TRUNC +#define TQT_OPEN_APPEND _O_APPEND +#if defined(O_TEXT) +# define TQT_OPEN_TEXT _O_TEXT +# define TQT_OPEN_BINARY _O_BINARY +#endif + +#define TQT_SIGNAL_ARGS int + +#define TQT_VSNPRINTF ::_vsnprintf +#define TQT_SNPRINTF ::_snprintf + +# define F_OK 0 +# define X_OK 1 +# define W_OK 2 +# define R_OK 4 + +typedef int mode_t; + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/win32-msvc/win32app.dsp b/tqtinterface/qt4/mkspecs/win32-msvc/win32app.dsp new file mode 100644 index 0000000..6a95ecd --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-msvc/win32app.dsp @@ -0,0 +1,111 @@ +# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) $$MSVCDSP_CONSOLE Application" $$MSVCDSP_DSPTYPE + +CFG=$$MSVCDSP_PROJECT - Win32 $$MSVCDSP_CONFIGMODE +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Application") +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "$$MSVCDSP_WINCONDEF" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE $$PRECOMPILED_FLAGS_REL +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LINK32=link.exe +# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE $$PRECOMPILED_OBJECT +$$MSVCDSP_POST_LINK_REL + +!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEFD /W3 $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "$$MSVCDSP_WINCONDEF" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG $$PRECOMPILED_FLAGS_DEB +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LINK32=link.exe +# ADD LINK32 $$MSVCDSP_LIBS $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG $$PRECOMPILED_OBJECT +$$MSVCDSP_POST_LINK_DBG + +!ENDIF + +# Begin Target + +# Name "$$MSVCDSP_PROJECT - Win32 Release" +# Name "$$MSVCDSP_PROJECT - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +$$MSVCDSP_SOURCES +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +$$MSVCDSP_HEADERS +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group + +$$MSVCDSP_FORMS +$$MSVCDSP_TRANSLATIONS +$$MSVCDSP_LEXSOURCES +$$MSVCDSP_YACCSOURCES +$$MSVCDSP_PICTURES + +# Begin Group "Generated" +$$MSVCDSP_TQMOCSOURCES +$$MSVCDSP_FORMSOURCES +$$MSVCDSP_FORMHEADERS +$$MSVCDSP_IMAGES +$$MSVCDSP_STRIPPEDTRANSLATIONS +$$MSVCDSP_IDLSOURCES +# Prop Default_Filter "tqmoc" +# End Group +# End Target +# End Project diff --git a/tqtinterface/qt4/mkspecs/win32-msvc/win32dll.dsp b/tqtinterface/qt4/mkspecs/win32-msvc/win32dll.dsp new file mode 100644 index 0000000..c7843a8 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-msvc/win32dll.dsp @@ -0,0 +1,113 @@ +# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=$$MSVCDSP_PROJECT - Win32 $$MSVCDSP_CONFIGMODE +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP Ignore_Export_Lib 1 +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE $$PRECOMPILED_FLAGS_REL +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LINK32=link.exe +# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS $$QMAKE_LFLAGS_RELEASE $$PRECOMPILED_OBJECT +$$MSVCDSP_POST_LINK_REL + +!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP Ignore_Export_Lib 1 +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEFD /W3 $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG $$PRECOMPILED_FLAGS_DEB +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LINK32=link.exe +# ADD LINK32 $$MSVCDSP_LIBS /dll $$MSVCDSP_VERSION $$MSVCDSP_TARGET $$MSVCDSP_LFLAGS /pdbtype:sept $$QMAKE_LFLAGS_DEBUG $$PRECOMPILED_OBJECT +$$MSVCDSP_POST_LINK_DBG + +!ENDIF + +# Begin Target + +# Name "$$MSVCDSP_PROJECT - Win32 Release" +# Name "$$MSVCDSP_PROJECT - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +$$MSVCDSP_SOURCES +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +$$MSVCDSP_HEADERS +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group + +$$MSVCDSP_FORMS +$$MSVCDSP_TRANSLATIONS +$$MSVCDSP_LEXSOURCES +$$MSVCDSP_YACCSOURCES +$$MSVCDSP_PICTURES + +# Begin Group "Generated" +$$MSVCDSP_TQMOCSOURCES +$$MSVCDSP_FORMSOURCES +$$MSVCDSP_FORMHEADERS +$$MSVCDSP_IMAGES +$$MSVCDSP_STRIPPEDTRANSLATIONS +$$MSVCDSP_IDLSOURCES +# Prop Default_Filter "tqmoc" +# End Group +# End Target +# End Project diff --git a/tqtinterface/qt4/mkspecs/win32-msvc/win32lib.dsp b/tqtinterface/qt4/mkspecs/win32-msvc/win32lib.dsp new file mode 100644 index 0000000..fd9062a --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-msvc/win32lib.dsp @@ -0,0 +1,107 @@ +# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=$$MSVCDSP_PROJECT - Win32 $$MSVCDSP_CONFIGMODE +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRREL" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRREL" +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEF /W3 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_LIB" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE $$PRECOMPILED_FLAGS_REL +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD LIB32 /nologo $$MSVCDSP_TARGET $$PRECOMPILED_OBJECT +$$MSVCDSP_POST_LINK_REL + +!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP BASE Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "$$MSVCDSP_TARGETDIRDEB" +# PROP Intermediate_Dir "$$MSVCDSP_OBJECTSDIRDEB" +# PROP Target_Dir "" +# ADD CPP $$MSVCDSP_MTDEFD /W3 $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_LIB" $$MSVCDSP_DEFINES /FD /c $$MSVCDSP_CXXFLAGS $$QMAKE_CXXFLAGS_DEBUG $$PRECOMPILED_FLAGS_DEB +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD LIB32 /nologo $$MSVCDSP_TARGET $$PRECOMPILED_OBJECT +$$MSVCDSP_POST_LINK_DBG + +!ENDIF + +# Begin Target + +# Name "$$MSVCDSP_PROJECT - Win32 Release" +# Name "$$MSVCDSP_PROJECT - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +$$MSVCDSP_SOURCES +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +$$MSVCDSP_HEADERS +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group + +$$MSVCDSP_FORMS +$$MSVCDSP_TRANSLATIONS +$$MSVCDSP_LEXSOURCES +$$MSVCDSP_YACCSOURCES +$$MSVCDSP_PICTURES + +# Begin Group "Generated" +$$MSVCDSP_TQMOCSOURCES +$$MSVCDSP_FORMSOURCES +$$MSVCDSP_FORMHEADERS +$$MSVCDSP_IMAGES +$$MSVCDSP_STRIPPEDTRANSLATIONS +# Prop Default_Filter "tqmoc" +# End Group +# End Target +# End Project diff --git a/tqtinterface/qt4/mkspecs/win32-msvc2005/qmake.conf b/tqtinterface/qt4/mkspecs/win32-msvc2005/qmake.conf new file mode 100644 index 0000000..4bc7a31 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-msvc2005/qmake.conf @@ -0,0 +1,108 @@ +# +# +# qmake configuration for win32-msvc2005 +# +# Written for Microsoft Visual C++ 8.0 (2005) +# + +MAKEFILE_GENERATOR = MSVC.NET +TEMPLATE = app +CONFIG += qt warn_on release incremental flat link_prl precompile_header +DEFINES += UNICODE WIN32 + +exists( $(TQTDIR)\.qtwinconfig ) { + include( $(TQTDIR)\.qtwinconfig ) +} + +TQMAKE_CC = cl +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = byacc +TQMAKE_YACCFLAGS = -d + +# Warning 4996 is the depricated warning, supress it for now. +TQMAKE_CFLAGS = -nologo -Zm200 -wd4996 +TQMAKE_CFLAGS_WARN_ON = -W3 +TQMAKE_CFLAGS_WARN_OFF = -W0 +TQMAKE_CFLAGS_RELEASE = -O2 +TQMAKE_CFLAGS_DEBUG = -Zi -Gm +TQMAKE_CFLAGS_MT = -MD +TQMAKE_CFLAGS_MT_DBG = -MDd +TQMAKE_CFLAGS_MT_DLL = -MD +TQMAKE_CFLAGS_MT_DLLDBG = -MDd +TQMAKE_CFLAGS_YACC = +TQMAKE_CFLAGS_STL_ON = -EHsc +TQMAKE_CFLAGS_STL_OFF = +TQMAKE_CFLAGS_RTTI_ON = -GR +TQMAKE_CFLAGS_RTTI_OFF = +TQMAKE_CFLAGS_EXCEPTIONS_ON = -EHsc +TQMAKE_CFLAGS_EXCEPTIONS_OFF = + +TQMAKE_CXX = $$TQMAKE_CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON -w34100 -w34189 +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_MT = $$TQMAKE_CFLAGS_MT +TQMAKE_CXXFLAGS_MT_DBG = $$TQMAKE_CFLAGS_MT_DBG +TQMAKE_CXXFLAGS_MT_DLL = $$TQMAKE_CFLAGS_MT_DLL +TQMAKE_CXXFLAGS_MT_DLLDBG= $$TQMAKE_CFLAGS_MT_DLLDBG +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC +TQMAKE_CXXFLAGS_STL_ON = $$TQMAKE_CFLAGS_STL_ON +TQMAKE_CXXFLAGS_STL_OFF = $$TQMAKE_CFLAGS_STL_OFF +TQMAKE_CXXFLAGS_RTTI_ON = $$TQMAKE_CFLAGS_RTTI_ON +TQMAKE_CXXFLAGS_RTTI_OFF = $$TQMAKE_CFLAGS_RTTI_OFF +TQMAKE_CXXFLAGS_EXCEPTIONS_ON = $$TQMAKE_CFLAGS_EXCEPTIONS_ON +TQMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$TQMAKE_CFLAGS_EXCEPTIONS_OFF + +TQMAKE_INCDIR = +TQMAKE_INCDIR_QT = $(TQTDIR)\include +TQMAKE_LIBDIR_QT = $(TQTDIR)\lib + +TQMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src +TQMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< +TQMAKE_RUN_CC_IMP_BATCH = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<< +TQMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src +TQMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< +TQMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<< + +TQMAKE_LINK = link +TQMAKE_LFLAGS = /NOLOGO +TQMAKE_LFLAGS_RELEASE = /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll +TQMAKE_LFLAGS_DEBUG = /DEBUG +TQMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE +TQMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS +TQMAKE_LFLAGS_CONSOLE_DLL= /SUBSYSTEM:CONSOLE /DLL +TQMAKE_LFLAGS_WINDOWS_DLL= /SUBSYSTEM:WINDOWS /DLL +TQMAKE_LFLAGS_TQT_DLL = /BASE:0x39D00000 + +TQMAKE_LIBS = +TQMAKE_LIBS_CONSOLE = +TQMAKE_LIBS_WINDOWS = kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib delayimp.lib +TQMAKE_LIBS_QT = qt.lib +TQMAKE_LIBS_TQT_THREAD = qt-mt.lib +TQMAKE_LIBS_TQT_ENTRY = qtmain.lib + +TQMAKE_LIBS_OPENGL = opengl32.lib glu32.lib +TQMAKE_LFLAGS_OPENGL = /DELAYLOAD:opengl32.dll + +TQMAKE_TQMOC = $(TQTDIR)\bin\tqmoc.exe +TQMAKE_UIC = $(TQTDIR)\bin\uic.exe +TQMAKE_IDC = $(TQTDIR)\bin\idc.exe + +TQMAKE_IDL = midl +TQMAKE_LIB = lib /NOLOGO +TQMAKE_RC = rc + +TQMAKE_ZIP = zip -r -9 + +TQMAKE_COPY = copy +TQMAKE_MOVE = move +TQMAKE_DEL_FILE = del +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = if not exist +TQMAKE_MKDIR = mkdir + +VCPROJ_EXTENSION = .vcproj +VCSOLUTION_EXTENSION = .sln diff --git a/tqtinterface/qt4/mkspecs/win32-msvc2005/qplatformdefs.h b/tqtinterface/qt4/mkspecs/win32-msvc2005/qplatformdefs.h new file mode 100644 index 0000000..edf7d8d --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-msvc2005/qplatformdefs.h @@ -0,0 +1,87 @@ +#ifndef TQPLATFORMDEFS_H +#define TQPLATFORMDEFS_H + +#ifdef UNICODE +#ifndef _UNICODE +#define _UNICODE +#endif +#endif + +// Get TQt defines/settings + +#include "tqglobal.h" + +#define _POSIX_ +#include <limits.h> +#undef _POSIX_ + +#include <tchar.h> +#include <io.h> +#include <direct.h> +#include <stdio.h> +#include <fcntl.h> +#include <errno.h> +#include <sys/stat.h> +#include <stdlib.h> +#include <windows.h> + +#define TQ_FS_FAT +#ifdef TQT_LARGEFILE_SUPPORT +#define TQT_STATBUF struct _stati64 // non-ANSI defs +#define TQT_STATBUF4TSTAT struct _stati64 // non-ANSI defs +#define TQT_STAT ::_stati64 +#define TQT_FSTAT ::_fstati64 +#else +#define TQT_STATBUF struct _stat // non-ANSI defs +#define TQT_STATBUF4TSTAT struct _stat // non-ANSI defs +#define TQT_STAT ::_stat +#define TQT_FSTAT ::_fstat +#endif +#define TQT_STAT_REG _S_IFREG +#define TQT_STAT_DIR _S_IFDIR +#define TQT_STAT_MASK _S_IFMT +#if defined(_S_IFLNK) +# define TQT_STAT_LNK _S_IFLNK +#endif +#define TQT_FILENO _fileno +#define TQT_OPEN ::_open +#define TQT_CLOSE ::_close +#ifdef TQT_LARGEFILE_SUPPORT +#define TQT_LSEEK ::_lseeki64 +#define TQT_TSTAT ::_tstati64 +#else +#define TQT_LSEEK ::_lseek +#define TQT_TSTAT ::_tstat +#endif +#define TQT_READ ::_read +#define TQT_WRITE ::_write +#define TQT_ACCESS ::_access +#define TQT_GETCWD ::_getcwd +#define TQT_CHDIR ::_chdir +#define TQT_MKDIR ::_mkdir +#define TQT_RMDIR ::_rmdir +#define TQT_OPEN_RDONLY _O_RDONLY +#define TQT_OPEN_WRONLY _O_WRONLY +#define TQT_OPEN_RDWR _O_RDWR +#define TQT_OPEN_CREAT _O_CREAT +#define TQT_OPEN_TRUNC _O_TRUNC +#define TQT_OPEN_APPEND _O_APPEND +#if defined(O_TEXT) +# define TQT_OPEN_TEXT _O_TEXT +# define TQT_OPEN_BINARY _O_BINARY +#endif + +#define TQT_SIGNAL_ARGS int + +#define TQT_VSNPRINTF ::_vsnprintf +#define TQT_SNPRINTF ::_snprintf + +# define F_OK 0 +# define X_OK 1 +# define W_OK 2 +# define R_OK 4 + +typedef int mode_t; + + +#endif // TQPLATFORMDEFS_H diff --git a/tqtinterface/qt4/mkspecs/win32-watcom/qmake.conf b/tqtinterface/qt4/mkspecs/win32-watcom/qmake.conf new file mode 100644 index 0000000..ae03ec0 --- /dev/null +++ b/tqtinterface/qt4/mkspecs/win32-watcom/qmake.conf @@ -0,0 +1,68 @@ +# +# +# qmake configuration for win32-watcom +# +# Written for Watcom C++, now OpenWatcom. +# + +TEMPLATE = app +CONFIG += qt warn_on release link_prl + +TQMAKE_CC = wcl386 +TQMAKE_LEX = flex +TQMAKE_LEXFLAGS = +TQMAKE_YACC = byacc +TQMAKE_YACCFLAGS = -d +TQMAKE_CFLAGS = -zq +TQMAKE_CFLAGS_WARN_ON = -w2 +TQMAKE_CFLAGS_WARN_OFF = -w0 +TQMAKE_CFLAGS_RELEASE = -ox +TQMAKE_CFLAGS_DEBUG = -d2 +TQMAKE_CFLAGS_YACC = + +TQMAKE_CXX = $$TQMAKE_CC +TQMAKE_CXXFLAGS = $$TQMAKE_CFLAGS +TQMAKE_CXXFLAGS_WARN_ON = $$TQMAKE_CFLAGS_WARN_ON +TQMAKE_CXXFLAGS_WARN_OFF = $$TQMAKE_CFLAGS_WARN_OFF +TQMAKE_CXXFLAGS_RELEASE = $$TQMAKE_CFLAGS_RELEASE +TQMAKE_CXXFLAGS_DEBUG = $$TQMAKE_CFLAGS_DEBUG +TQMAKE_CXXFLAGS_YACC = $$TQMAKE_CFLAGS_YACC + +TQMAKE_INCDIR = +TQMAKE_INCDIR_QT = $(TQTDIR)\include + +TQMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -fo=$obj $src +TQMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -fo=$obj $src + +TQMAKE_LINK = wlink +TQMAKE_LFLAGS = op quiet op c +TQMAKE_LFLAGS_RELEASE = +TQMAKE_LFLAGS_DEBUG = d all +TQMAKE_LFLAGS_CONSOLE = sys nt +TQMAKE_LFLAGS_WINDOWS = sys nt_win +TQMAKE_LFLAGS_CONSOLE_DLL= sys nt +TQMAKE_LFLAGS_WINDOWS_DLL= sys nt_win + +TQMAKE_LIBS = +TQMAKE_LIBS_CONSOLE = +TQMAKE_LIBS_WINDOWS = +TQMAKE_LIBS_QT = %TQTDIR%\lib\qt.lib +TQMAKE_LIBS_TQT_ENTRY = %TQTDIR%\lib\qtmain.lib + +TQMAKE_LIBS_OPENGL = opengl32.lib + +TQMAKE_TQMOC = $(TQTDIR)/bin/tqmoc.exe +TQMAKE_UIC = $(TQTDIR)/bin/uic.exe +TQMAKE_IDC = $(TQTDIR)/bin/idc.exe + +TQMAKE_LIB = wlib -b -c -n -q -p=512 +TQMAKE_RC = rc + +TQMAKE_ZIP = zip -r -9 + +TQMAKE_COPY = copy +TQMAKE_MOVE = move +TQMAKE_DEL_FILE = del +TQMAKE_DEL_DIR = rmdir +TQMAKE_CHK_DIR_EXISTS = test -d +TQMAKE_MKDIR = mkdir -p |