Diffstat (limited to 'development/macosx/config-files/qte-2.3.7') (more/less context) (ignore whitespace changes)
-rw-r--r-- | development/macosx/config-files/qte-2.3.7/darwin-generic-g++-shared | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/development/macosx/config-files/qte-2.3.7/darwin-generic-g++-shared b/development/macosx/config-files/qte-2.3.7/darwin-generic-g++-shared new file mode 100644 index 0000000..ebeabfc --- a/dev/null +++ b/development/macosx/config-files/qte-2.3.7/darwin-generic-g++-shared | |||
@@ -0,0 +1,98 @@ | |||
1 | # Compiling | ||
2 | INTERFACE_DECL_PATH = . | ||
3 | SYSCONF_CXX = g++ | ||
4 | SYSCONF_CC = gcc | ||
5 | DASHCROSS = | ||
6 | |||
7 | # Compiling with support libraries | ||
8 | SYSCONF_CXXFLAGS_X11= -I/usr/X11R6/include | ||
9 | SYSCONF_CXXFLAGS_QT= -I$(QTDIR)/include | ||
10 | SYSCONF_CXXFLAGS_QTOPIA= -I$(QPEDIR)/include | ||
11 | SYSCONF_CXXFLAGS_OPENGL= -I/usr/X11R6/include | ||
12 | |||
13 | # Compiling YACC output | ||
14 | SYSCONF_CXXFLAGS_YACC = -Wno-unused -Wno-parentheses | ||
15 | |||
16 | # Linking with support libraries | ||
17 | SYSCONF_RPATH_X11= -L/usr/X11R6/lib | ||
18 | SYSCONF_RPATH_QT= -L$(QTDIR)/lib | ||
19 | SYSCONF_RPATH_QTOPIA= -L$(QPEDIR)/lib | ||
20 | SYSCONF_RPATH_OPENGL= -L/usr/X11R6/lib | ||
21 | |||
22 | # Linking with support libraries | ||
23 | # X11 | ||
24 | SYSCONF_LFLAGS_X11= -L/usr/X11R6/lib | ||
25 | SYSCONF_LIBS_X11= | ||
26 | # Qt, Qt+OpenGL | ||
27 | SYSCONF_LFLAGS_QT= -L$(QTDIR)/lib | ||
28 | SYSCONF_LFLAGS_QTOPIA= -L$(QPEDIR)/lib | ||
29 | SYSCONF_LIBS_QT = -lqte$(QT_THREAD_SUFFIX) | ||
30 | SYSCONF_LIBS_QT_OPENGL= | ||
31 | SYSCONF_LIBS_QTOPIA= -lqtopia | ||
32 | # OpenGL | ||
33 | SYSCONF_LFLAGS_OPENGL= -L/usr/X11R6/lib | ||
34 | SYSCONF_LIBS_OPENGL= -lGLU -lGL -lXmu | ||
35 | # Yacc | ||
36 | SYSCONF_LIBS_YACC= | ||
37 | |||
38 | # Linking applications | ||
39 | SYSCONF_LINK = g++ | ||
40 | SYSCONF_LFLAGS = | ||
41 | SYSCONF_LIBS = | ||
42 | |||
43 | # Link flags for shared objects | ||
44 | SYSCONF_LFLAGS_SHOBJ= -dynamiclib | ||
45 | |||
46 | # Flags for threading | ||
47 | SYSCONF_CFLAGS_THREAD= -pthread -D_THREAD_SAFE | ||
48 | SYSCONF_CXXFLAGS_THREAD= -pthread -D_THREAD_SAFE | ||
49 | SYSCONF_LFLAGS_THREAD= -pthread | ||
50 | SYSCONF_LIBS_THREAD= | ||
51 | |||
52 | # Meta-object compiler | ||
53 | SYSCONF_MOC = $(QTDIR)/bin/moc | ||
54 | |||
55 | # UI compiler | ||
56 | SYSCONF_UIC = $(QTDIR)/bin/uic | ||
57 | |||
58 | # Linking shared libraries | ||
59 | # - Build the $(TARGET) library, eg. lib$(TARGET).so.2.2.2 | ||
60 | # - Place target in $(DESTDIR) - which has a trailing / | ||
61 | # - Usually needs to incorporate $(VER_MAJ), $(VER_MIN) and $(VER_PATCH) | ||
62 | # | ||
63 | SYSCONF_LINK_SHLIB= g++ | ||
64 | SYSCONF_LINK_TARGET_SHARED= lib$(TARGET).dylib.$(VER_MAJ).$(VER_MIN).$(VER_PATCH) | ||
65 | SYSCONF_LINK_LIB_SHARED= $(SYSCONF_LINK_SHLIB) -dynamiclib \ | ||
66 | $(LFLAGS) -o $(SYSCONF_LINK_TARGET_SHARED) \ | ||
67 | $(OBJECTS) $(OBJMOC) $(LIBS) && \ | ||
68 | mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \ | ||
69 | cd $(DESTDIR) && \ | ||
70 | rm -f lib$(TARGET).dylib lib$(TARGET).dylib.$(VER_MAJ) lib$(TARGET).dylib.$(VER_MAJ).$(VER_MIN); \ | ||
71 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).dylib; \ | ||
72 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).dylib.$(VER_MAJ); \ | ||
73 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).dylib.$(VER_MAJ).$(VER_MIN) | ||
74 | |||
75 | # Linking static libraries | ||
76 | # - Build the $(TARGET) library, eg. lib$(TARGET).a | ||
77 | # - Place target in $(DESTDIR) - which has a trailing / | ||
78 | # | ||
79 | SYSCONF_AR = ar cqs | ||
80 | SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a | ||
81 | SYSCONF_LINK_LIB_STATIC= rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \ | ||
82 | $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC) | ||
83 | # Compiling application source | ||
84 | SYSCONF_CXXFLAGS= -pipe -fno-exceptions -DQWS -fno-rtti -fno-exceptions -DQT_NO_QWS_LINUXFB -DQT_NO_QWS_TRANSFORMED -O0 -Wall -W -DNO_DEBUG | ||
85 | SYSCONF_CFLAGS = -pipe -fno-exceptions -O2 -Wall -W | ||
86 | # Default link type (static linking is still be used where required) | ||
87 | SYSCONF_LINK_LIB= $(SYSCONF_LINK_LIB_SHARED) | ||
88 | SYSCONF_LINK_TARGET= $(SYSCONF_LINK_TARGET_SHARED) | ||
89 | # Compiling library source | ||
90 | SYSCONF_CXXFLAGS_LIB= -fPIC | ||
91 | SYSCONF_CFLAGS_LIB= -fPIC | ||
92 | # Compiling shared-object source | ||
93 | SYSCONF_CXXFLAGS_SHOBJ= -fPIC | ||
94 | SYSCONF_CFLAGS_SHOBJ= -fPIC | ||
95 | # Linking Qt | ||
96 | SYSCONF_LIBS_QTLIB= $(SYSCONF_LFLAGS_X11) $(QT_LIBS_MT) $(QT_LIBS_OPT) | ||
97 | # Linking Qt applications | ||
98 | SYSCONF_LIBS_QTAPP= | ||