|
1 # |
|
2 # qmake configuration for solaris-g++ |
|
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 |
|
11 MAKEFILE_GENERATOR = UNIX |
|
12 TEMPLATE = app |
|
13 CONFIG += qt warn_on release link_prl |
|
14 QT += core gui |
|
15 |
|
16 QMAKE_CC = gcc |
|
17 QMAKE_LEX = flex |
|
18 QMAKE_LEXFLAGS = |
|
19 QMAKE_YACC = yacc |
|
20 QMAKE_YACCFLAGS = -d |
|
21 QMAKE_CFLAGS = |
|
22 QMAKE_CFLAGS_DEPS = -M |
|
23 QMAKE_CFLAGS_WARN_ON = -Wall -W |
|
24 QMAKE_CFLAGS_WARN_OFF = -w |
|
25 QMAKE_CFLAGS_RELEASE = -O2 |
|
26 QMAKE_CFLAGS_DEBUG = -g |
|
27 QMAKE_CFLAGS_SHLIB = -fPIC |
|
28 QMAKE_CFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_SHLIB |
|
29 QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses |
|
30 QMAKE_CFLAGS_THREAD = -D_REENTRANT |
|
31 |
|
32 QMAKE_CXX = g++ |
|
33 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS |
|
34 QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS |
|
35 QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON |
|
36 QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF |
|
37 QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE |
|
38 QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG |
|
39 QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB |
|
40 QMAKE_CXXFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_STATIC_LIB |
|
41 QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC |
|
42 QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD |
|
43 |
|
44 QMAKE_INCDIR = /usr/sfw/include |
|
45 QMAKE_LIBDIR = /usr/sfw/lib |
|
46 QMAKE_INCDIR_X11 = /usr/openwin/include |
|
47 QMAKE_LIBDIR_X11 = /usr/openwin/lib |
|
48 QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] |
|
49 QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] |
|
50 QMAKE_INCDIR_OPENGL = /usr/openwin/include |
|
51 QMAKE_LIBDIR_OPENGL = /usr/openwin/lib |
|
52 |
|
53 QMAKE_LINK = g++ |
|
54 QMAKE_LINK_SHLIB = g++ |
|
55 QMAKE_LINK_C = gcc |
|
56 QMAKE_LINK_C_SHLIB = gcc |
|
57 QMAKE_LFLAGS = |
|
58 QMAKE_LFLAGS_RELEASE = |
|
59 QMAKE_LFLAGS_DEBUG = -g |
|
60 QMAKE_LFLAGS_SHLIB = -shared |
|
61 QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB |
|
62 QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE |
|
63 QMAKE_LFLAGS_THREAD = |
|
64 QMAKE_LFLAGS_NOUNDEF = -z defs |
|
65 QMAKE_RPATH = -Wl,-R, |
|
66 |
|
67 QMAKE_LIBS = |
|
68 QMAKE_LIBS_DYNLOAD = -ldl |
|
69 QMAKE_LIBS_X11 = -lXext -lX11 -lresolv -lsocket -lnsl |
|
70 QMAKE_LIBS_X11SM = -lSM -lICE |
|
71 QMAKE_LIBS_NIS = |
|
72 QMAKE_LIBS_OPENGL = -lGLU -lGL |
|
73 QMAKE_LIBS_OPENGL_QT = -lGL |
|
74 QMAKE_LIBS_THREAD = -lpthread -lrt |
|
75 QMAKE_LIBS_NETWORK = -lresolv -lsocket -lxnet -lnsl |
|
76 |
|
77 QMAKE_MOC = $$[QT_INSTALL_BINS]/moc |
|
78 QMAKE_UIC = $$[QT_INSTALL_BINS]/uic |
|
79 |
|
80 QMAKE_AR = ar cq |
|
81 QMAKE_OBJCOPY = objcopy |
|
82 QMAKE_RANLIB = |
|
83 |
|
84 QMAKE_TAR = tar -cf |
|
85 QMAKE_GZIP = gzip -9f |
|
86 |
|
87 QMAKE_COPY = cp -f |
|
88 QMAKE_MOVE = mv -f |
|
89 QMAKE_DEL_FILE = rm -f |
|
90 QMAKE_DEL_DIR = rmdir |
|
91 QMAKE_CHK_DIR_EXISTS = test -d |
|
92 QMAKE_MKDIR = mkdir -p |
|
93 include(../common/unix.conf) |
|
94 load(qt_config) |