|
1 # |
|
2 # qmake configuration for macx-xlc |
|
3 # |
|
4 # Mac OS X + IBM's XL C/C++ Advanced Edition for Mac OS X |
|
5 # |
|
6 |
|
7 MAKEFILE_GENERATOR = UNIX |
|
8 TEMPLATE = app |
|
9 CONFIG += qt warn_on release app_bundle global_init_link_order lib_version_first plugin_no_soname link_prl |
|
10 QT += core gui |
|
11 |
|
12 QMAKE_CC = xlc |
|
13 QMAKE_CC_THREAD = xlc_r |
|
14 QMAKE_LEX = flex |
|
15 QMAKE_LEXFLAGS = |
|
16 QMAKE_YACC = yacc |
|
17 QMAKE_YACCFLAGS = -d |
|
18 QMAKE_CFLAGS = -qstrict |
|
19 QMAKE_CFLAGS_WARN_ON = |
|
20 QMAKE_CFLAGS_WARN_OFF = |
|
21 QMAKE_CFLAGS_RELEASE = -O3 |
|
22 QMAKE_CFLAGS_DEBUG = -g |
|
23 QMAKE_EXTENSION_SHLIB = dylib |
|
24 QMAKE_CFLAGS_SHLIB = |
|
25 QMAKE_CFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_SHLIB |
|
26 QMAKE_CFLAGS_YACC = |
|
27 QMAKE_CFLAGS_THREAD = -qthreaded |
|
28 QMAKE_EXTENSION_SHLIB = dylib |
|
29 QMAKE_COMPILER_DEFINES += __APPLE__ __xlc__ |
|
30 |
|
31 QMAKE_CXX = xlc++ |
|
32 QMAKE_CXX_THREAD = xlc++_r |
|
33 QMAKE_CXXFLAGS = -+ $$QMAKE_CFLAGS |
|
34 QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON |
|
35 QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF |
|
36 QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE |
|
37 QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG |
|
38 QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB |
|
39 QMAKE_CXXFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_STATIC_LIB |
|
40 QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC |
|
41 QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD |
|
42 |
|
43 QMAKE_INCDIR = |
|
44 QMAKE_LIBDIR = |
|
45 QMAKE_INCDIR_X11 = |
|
46 QMAKE_LIBDIR_X11 = |
|
47 QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] |
|
48 QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] |
|
49 QMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \ |
|
50 /System/Library/Frameworks/AGL.framework/Headers/ |
|
51 QMAKE_LIBDIR_OPENGL = |
|
52 |
|
53 QMAKE_LINK = xlc++ |
|
54 QMAKE_LINK_THREAD = xlc++_r |
|
55 QMAKE_LINK_SHLIB = ld |
|
56 #QMAKE_LINK_SHLIB_CMD = makeC++SharedLib -p 0 \ |
|
57 # -o $(TARGETD) \ |
|
58 # $(LFLAGS) $(OBJECTS) $(OBJMOC) $(LIBS); \ |
|
59 # $(AR) lib$(QMAKE_TARGET).a $(TARGETD); \ |
|
60 # $(RANLIB) lib$(QMAKE_TARGET).a; \ |
|
61 # mv lib$(QMAKE_TARGET).a $(DESTDIR) |
|
62 QMAKE_LFLAGS = -headerpad_max_install_names |
|
63 QMAKE_LFLAGS_RELEASE = |
|
64 QMAKE_LFLAGS_DEBUG = |
|
65 QMAKE_LFLAGS_SHLIB = -prebind -qmkshrobj |
|
66 QMAKE_LFLAGS_PLUGIN = -bundle |
|
67 QMAKE_LFLAGS_SONAME = |
|
68 #QMAKE_LFLAGS_THREAD = -L/usr/lib/threads |
|
69 #QMAKE_AIX_SHLIB = 1 |
|
70 #QMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE} |
|
71 #QMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE} |
|
72 |
|
73 QMAKE_LIBS = |
|
74 QMAKE_LIBS_DYNLOAD = |
|
75 QMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL |
|
76 QMAKE_LIBS_OPENGL_QT = $$QMAKE_LIBS_OPENGL |
|
77 #QMAKE_LIBS_THREAD = -lpthreads |
|
78 |
|
79 QMAKE_MOC = $$[QT_INSTALL_BINS]/moc |
|
80 QMAKE_UIC = $$[QT_INSTALL_BINS]/uic |
|
81 |
|
82 QMAKE_AR = ar cq |
|
83 QMAKE_OBJCOPY = objcopy |
|
84 QMAKE_RANLIB = ranlib -s |
|
85 |
|
86 QMAKE_TAR = tar -cf |
|
87 QMAKE_GZIP = gzip -9f |
|
88 |
|
89 QMAKE_COPY = cp -f |
|
90 QMAKE_COPY_FILE = $$QMAKE_COPY |
|
91 QMAKE_COPY_DIR = $$QMAKE_COPY -R |
|
92 QMAKE_MOVE = mv -f |
|
93 QMAKE_DEL_FILE = rm -f |
|
94 QMAKE_DEL_DIR = rmdir |
|
95 QMAKE_CHK_DIR_EXISTS = test -d |
|
96 QMAKE_MKDIR = mkdir -p |
|
97 include(../common/unix.conf) |
|
98 load(qt_config) |