source: branches/vendor/trolltech/qt/current/mkspecs/solaris-g++-64/qmake.conf @ 2

Last change on this file since 2 was 2, checked in by Dmitry A. Kuminov, 12 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 3.5 KB
Line 
1#
2# qmake configuration for solaris-g++64
3#
4# The X11 header files used to be broken on Solaris until patches were
5# released in early 2001 for Solaris 2.6, 7, and 8. On Solaris 2.5.1
6# or non-patched systems -fpermissive works around the incompatibility
7# between GCC 2.95 or better and Solaris - but we still get warnings
8# because we don't use -isystem.
9#
10# From the standards(5) manual page:
11#       The XNS4 specification is safe for use only in ILP32 (32-bit)
12#       environments and should not be used for LP64 (64-bit)
13#       application environments. Use XNS5, which has LP64-clean
14#       interfaces that are portable across ILP32 and LP64 environments.
15#       [...]
16#       For platforms supporting the LP64 (64-bit) programming environment
17#       where the SC5.0 Compilers have been installed, SUSv2-conforming LP64
18#       applications using XNS5 library calls should be built with command
19#       lines of the form:
20#               c89 $(getconf XBS5_LP64_OFF64_CFLAGS) -D_XOPEN_SOURCE=500 \
21#                   $(getconf XBS5_LP64_OFF64_LDFLAGS) foo.c -o foo \
22#                   $(getconf XBS5_LP64_OFF64_LIBS) -lxnet
23# So it appears that _XOPEN_SOURCE=500 should be defined when building
24# 64-bit applications (on Solaris 7 and better). But then __EXTENSIONS__
25# should be defined as well to recover all the default system interface.
26#
27
28MAKEFILE_GENERATOR      = UNIX
29TEMPLATE                = app
30CONFIG                  += qt warn_on release link_prl
31QT                      += core gui
32
33QMAKE_CC                = gcc
34QMAKE_LEX               = flex
35QMAKE_LEXFLAGS          =
36QMAKE_YACC              = yacc
37QMAKE_YACCFLAGS         = -d
38QMAKE_CFLAGS            = -m64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
39QMAKE_CFLAGS_DEPS       = -M
40QMAKE_CFLAGS_WARN_ON    = -Wall -W
41QMAKE_CFLAGS_WARN_OFF   = -w
42QMAKE_CFLAGS_RELEASE    = -O2
43QMAKE_CFLAGS_DEBUG      = -g
44QMAKE_CFLAGS_SHLIB      = -fPIC
45QMAKE_CFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_SHLIB
46QMAKE_CFLAGS_YACC       = -Wno-unused -Wno-parentheses
47QMAKE_CFLAGS_THREAD     = -D_REENTRANT
48
49QMAKE_CXX               = g++
50QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS
51QMAKE_CXXFLAGS_DEPS     = $$QMAKE_CFLAGS_DEPS
52QMAKE_CXXFLAGS_WARN_ON  = $$QMAKE_CFLAGS_WARN_ON
53QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
54QMAKE_CXXFLAGS_RELEASE  = $$QMAKE_CFLAGS_RELEASE
55QMAKE_CXXFLAGS_DEBUG    = $$QMAKE_CFLAGS_DEBUG
56QMAKE_CXXFLAGS_SHLIB    = $$QMAKE_CFLAGS_SHLIB
57QMAKE_CXXFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_STATIC_LIB
58QMAKE_CXXFLAGS_YACC     = $$QMAKE_CFLAGS_YACC
59QMAKE_CXXFLAGS_THREAD   = $$QMAKE_CFLAGS_THREAD
60
61QMAKE_INCDIR            = /usr/sfw/include
62QMAKE_LIBDIR            = /usr/sfw/lib/64
63QMAKE_INCDIR_X11        = /usr/openwin/include
64QMAKE_LIBDIR_X11        = /usr/openwin/lib/64
65QMAKE_INCDIR_QT         = $$[QT_INSTALL_HEADERS]
66QMAKE_LIBDIR_QT         = $$[QT_INSTALL_LIBS]
67QMAKE_INCDIR_OPENGL     = /usr/openwin/include
68QMAKE_LIBDIR_OPENGL     = /usr/openwin/lib/64
69
70QMAKE_LINK              = g++
71QMAKE_LINK_SHLIB        = g++
72QMAKE_LINK_C            = gcc
73QMAKE_LINK_C_SHLIB      = gcc
74QMAKE_LFLAGS            = -m64
75QMAKE_LFLAGS_RELEASE    =
76QMAKE_LFLAGS_DEBUG      = -g
77QMAKE_LFLAGS_SHLIB      = -shared
78QMAKE_LFLAGS_PLUGIN     = $$QMAKE_LFLAGS_SHLIB
79QMAKE_LFLAGS_SONAME     = -h$$LITERAL_WHITESPACE
80QMAKE_LFLAGS_THREAD     =
81QMAKE_LFLAGS_NOUNDEF    = -z defs
82QMAKE_RPATH             = -Wl,-R,
83
84QMAKE_LIBS              =
85QMAKE_LIBS_DYNLOAD      = -ldl
86QMAKE_LIBS_X11          = -lXext -lX11 -lresolv -lsocket -lnsl
87QMAKE_LIBS_X11SM        = -lSM -lICE
88QMAKE_LIBS_NIS          =
89QMAKE_LIBS_OPENGL       = -lGLU -lGL
90QMAKE_LIBS_OPENGL_QT    = -lGL
91QMAKE_LIBS_THREAD       = -lpthread -lrt
92QMAKE_LIBS_NETWORK      = -lresolv -lsocket -lxnet -lnsl
93
94QMAKE_MOC               = $$[QT_INSTALL_BINS]/moc
95QMAKE_UIC               = $$[QT_INSTALL_BINS]/uic
96
97QMAKE_AR                = ar cq
98QMAKE_OBJCOPY           = objcopy
99QMAKE_RANLIB            =
100
101QMAKE_TAR               = tar -cf
102QMAKE_GZIP              = gzip -9f
103
104QMAKE_COPY              = cp -f
105QMAKE_MOVE              = mv -f
106QMAKE_DEL_FILE          = rm -f
107QMAKE_DEL_DIR           = rmdir
108QMAKE_CHK_DIR_EXISTS    = test -d
109QMAKE_MKDIR             = mkdir -p
110include(../common/unix.conf)
111load(qt_config)
Note: See TracBrowser for help on using the repository browser.