2 # qmake configuration for darwin-g++
4 # Written for Qt/X11 on Darwin and XFree86
7 MAKEFILE_GENERATOR = UNIX
8 QMAKE_PLATFORM = mac macx
9 CONFIG += native_precompiled_headers
10 DEFINES += __USE_WS_X11__
20 QMAKE_CFLAGS_DEPS = -M
21 QMAKE_CFLAGS_WARN_ON = -Wall -W
22 QMAKE_CFLAGS_WARN_OFF = -w
23 QMAKE_CFLAGS_RELEASE = -O2
24 QMAKE_CFLAGS_DEBUG = -g
25 QMAKE_CFLAGS_SHLIB = -fPIC
26 QMAKE_CFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_SHLIB
27 QMAKE_EXTENSION_SHLIB = dylib
28 QMAKE_EXTENSION_PLUGIN = so
29 QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
30 QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
32 QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
33 QMAKE_CFLAGS_USE_PRECOMPILE += -include ${QMAKE_PCH_OUTPUT_BASE}
36 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
37 QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS
38 QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
39 QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
40 QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
41 QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
42 QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB
43 QMAKE_CXXFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_STATIC_LIB
44 QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC
45 QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
46 QMAKE_CXXFLAGS_THREAD =
50 QMAKE_INCDIR_X11 = /usr/X11R6/include
51 QMAKE_LIBDIR_X11 = /usr/X11R6/lib
52 QMAKE_INCDIR_OPENGL = /usr/X11R6/include
53 QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib
56 QMAKE_LINK_SHLIB = c++
57 QMAKE_LFLAGS += -headerpad_max_install_names
59 QMAKE_LFLAGS_RELEASE =
61 QMAKE_LFLAGS_APP = -prebind
62 QMAKE_LFLAGS_SHLIB = -prebind -dynamiclib -single_module
63 QMAKE_LFLAGS_PLUGIN = -prebind -bundle
65 QMAKE_LFLAGS_SONAME += -install_name$${LITERAL_WHITESPACE}
67 QMAKE_LFLAGS_VERSION = -current_version$${LITERAL_WHITESPACE}
68 QMAKE_LFLAGS_COMPAT_VERSION = -compatibility_version$${LITERAL_WHITESPACE}
73 QMAKE_LIBS_X11 = -lXext -lX11 -lm
74 QMAKE_LIBS_OPENGL = -lGL
75 QMAKE_LIBS_OPENGL_QT = -lGL
79 QMAKE_OBJCOPY = objcopy
80 QMAKE_RANLIB = ranlib -s
82 QMAKE_PCH_OUTPUT_EXT = .gch
84 QMAKE_CXXFLAGS_PRECOMPILE += -x objective-c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
85 QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
87 include(../common/unix.conf)