source: branches/vendor/trolltech/qt/current/mkspecs/solaris-cc-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.2 KB
Line 
1#
2# qmake configuration for solaris-cc-64
3#
4# Written for Forte Developer 6 and Sun ONE Studio 7 and 8
5#
6# From the standards(5) manual page:
7#       The XNS4 specification is safe for use only in ILP32 (32-bit)
8#       environments and should not be used for LP64 (64-bit)
9#       application environments. Use XNS5, which has LP64-clean
10#       interfaces that are portable across ILP32 and LP64 environments.
11#       [...]
12#       For platforms supporting the LP64 (64-bit) programming environment
13#       where the SC5.0 Compilers have been installed, SUSv2-conforming LP64
14#       applications using XNS5 library calls should be built with command
15#       lines of the form:
16#               c89 $(getconf XBS5_LP64_OFF64_CFLAGS) -D_XOPEN_SOURCE=500 \
17#                   $(getconf XBS5_LP64_OFF64_LDFLAGS) foo.c -o foo \
18#                   $(getconf XBS5_LP64_OFF64_LIBS) -lxnet
19# So it appears that _XOPEN_SOURCE=500 should be defined when building
20# 64-bit applications (on Solaris 7 and better). But then __EXTENSIONS__
21# should be defined as well to recover all the default system interface.
22#
23
24MAKEFILE_GENERATOR      = UNIX
25TEMPLATE                = app
26CONFIG                  += qt warn_on release link_prl
27QT                      += core gui
28
29QMAKE_CC                = cc
30QMAKE_LEX               = flex
31QMAKE_LEXFLAGS          =
32QMAKE_YACC              = yacc
33QMAKE_YACCFLAGS         = -d
34QMAKE_CFLAGS            = -xarch=generic64
35QMAKE_CFLAGS_DEPS       = -xM
36QMAKE_CFLAGS_WARN_ON    =
37QMAKE_CFLAGS_WARN_OFF   = -w
38QMAKE_CFLAGS_RELEASE    = -O
39QMAKE_CFLAGS_DEBUG      = -g
40QMAKE_CFLAGS_SHLIB      = -KPIC
41QMAKE_CFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_SHLIB
42QMAKE_CFLAGS_YACC       =
43QMAKE_CFLAGS_THREAD     = -mt
44
45QMAKE_CXX               = CC
46QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS
47QMAKE_CXXFLAGS_DEPS     = $$QMAKE_CFLAGS_DEPS
48QMAKE_CXXFLAGS_WARN_ON  = $$QMAKE_CFLAGS_WARN_ON
49QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
50QMAKE_CXXFLAGS_RELEASE  = -O
51QMAKE_CXXFLAGS_DEBUG    = $$QMAKE_CFLAGS_DEBUG
52QMAKE_CXXFLAGS_SHLIB    = $$QMAKE_CFLAGS_SHLIB
53QMAKE_CXXFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_STATIC_LIB
54QMAKE_CXXFLAGS_YACC     = $$QMAKE_CFLAGS_YACC
55QMAKE_CXXFLAGS_THREAD   = $$QMAKE_CFLAGS_THREAD
56
57QMAKE_INCDIR            = /usr/sfw/include
58QMAKE_LIBDIR            = /usr/sfw/lib/64
59QMAKE_INCDIR_X11        = /usr/openwin/include
60QMAKE_LIBDIR_X11        = /usr/openwin/lib/64
61QMAKE_INCDIR_QT         = $$[QT_INSTALL_HEADERS]
62QMAKE_LIBDIR_QT         = $$[QT_INSTALL_LIBS]
63QMAKE_INCDIR_OPENGL     = /usr/openwin/include
64QMAKE_LIBDIR_OPENGL     = /usr/openwin/lib/64
65
66QMAKE_LINK              = CC
67QMAKE_LINK_SHLIB        = CC
68QMAKE_LFLAGS            = -xarch=generic64
69QMAKE_LFLAGS_RELEASE    =
70QMAKE_LFLAGS_DEBUG      =
71QMAKE_LFLAGS_SHLIB      = -G
72QMAKE_LFLAGS_PLUGIN     = $$QMAKE_LFLAGS_SHLIB
73QMAKE_LFLAGS_SONAME     = -h$$LITERAL_WHITESPACE
74QMAKE_LFLAGS_THREAD     = -mt
75QMAKE_LFLAGS_NOUNDEF    = -z defs
76QMAKE_RPATH             = -R
77
78QMAKE_LIBS              =
79QMAKE_LIBS_DYNLOAD      = -ldl
80QMAKE_LIBS_X11          = -lXext -lX11 -lresolv -lsocket -lnsl
81QMAKE_LIBS_X11SM        = -lSM -lICE
82QMAKE_LIBS_NIS          =
83QMAKE_LIBS_OPENGL       = -lGLU -lGL
84QMAKE_LIBS_OPENGL_QT    = -lGL
85QMAKE_LIBS_THREAD       = -lpthread -lrt
86QMAKE_LIBS_NETWORK      = -lresolv -lsocket -lxnet -lnsl
87
88QMAKE_MOC               = $$[QT_INSTALL_BINS]/moc
89QMAKE_UIC               = $$[QT_INSTALL_BINS]/uic
90
91QMAKE_AR                = CC -xar -o
92QMAKE_OBJCOPY           = objcopy
93QMAKE_RANLIB            =
94
95QMAKE_CLEAN             = -r $(OBJECTS_DIR)Templates.DB $(OBJECTS_DIR)SunWS_cache
96
97QMAKE_TAR               = tar -cf
98QMAKE_GZIP              = gzip -9f
99
100QMAKE_COPY              = cp -f
101QMAKE_MOVE              = mv -f
102QMAKE_DEL_FILE          = rm -f
103QMAKE_DEL_DIR           = rmdir
104QMAKE_CHK_DIR_EXISTS    = test -d
105QMAKE_MKDIR             = mkdir -p
106include(../common/unix.conf)
107load(qt_config)
Note: See TracBrowser for help on using the repository browser.