Revision 21610,
2.4 KB
checked in by ghudson, 19 years ago
(diff) |
RHEL 4 ships a native libgdk.so which depends on libXi. (It has a libtool
dependency on libXi, but not an ELF dependency on it, so the linker doesn't
pick up libXi automatically either.) Due to what I think are bugs in older
versions of libtool, linking of GNOME 1 programs picks up both the Athena
and native gtk and gdk libraries, but only picks up the libtool
dependencies of the Athena one. So, add -lXi to the Athena gdk library's
dependencies, even though we don't need it, to make GNOME 1 programs link
properly.
|
Line | |
---|
1 | ## Makefile.am for gtk+/gdk |
---|
2 | |
---|
3 | INCLUDES = @STRIP_BEGIN@ \ |
---|
4 | -DG_LOG_DOMAIN=\"Gdk\" \ |
---|
5 | -I$(top_srcdir) \ |
---|
6 | @GTK_DEBUG_FLAGS@ \ |
---|
7 | @GTK_XIM_FLAGS@ \ |
---|
8 | @GTK_LOCALE_FLAGS@ \ |
---|
9 | @GLIB_CFLAGS@ \ |
---|
10 | @x_cflags@ \ |
---|
11 | @STRIP_END@ |
---|
12 | |
---|
13 | # |
---|
14 | # libraries to compile and install |
---|
15 | # |
---|
16 | lib_LTLIBRARIES = libgdk.la |
---|
17 | |
---|
18 | # libtool stuff: set version and export symbols for resolving |
---|
19 | libgdkincludedir = $(includedir)/gtk-1.2/gdk |
---|
20 | libgdk_la_LDFLAGS = @STRIP_BEGIN@ \ |
---|
21 | -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ |
---|
22 | -release $(LT_RELEASE) \ |
---|
23 | -export-dynamic \ |
---|
24 | @GLIB_DEPLIBS@ \ |
---|
25 | @x_ldflags@ \ |
---|
26 | @x_libs@ -lXi \ |
---|
27 | -lm \ |
---|
28 | @STRIP_END@ |
---|
29 | |
---|
30 | # |
---|
31 | # setup source file variables |
---|
32 | # |
---|
33 | # GDK header files for public installation (non-generated) |
---|
34 | gdk_public_h_sources = @STRIP_BEGIN@ \ |
---|
35 | gdk.h \ |
---|
36 | gdkcursors.h \ |
---|
37 | gdkrgb.h \ |
---|
38 | gdki18n.h \ |
---|
39 | gdkkeysyms.h \ |
---|
40 | gdkprivate.h \ |
---|
41 | gdktypes.h \ |
---|
42 | gdkx.h \ |
---|
43 | @STRIP_END@ |
---|
44 | gdk_c_sources = @STRIP_BEGIN@ \ |
---|
45 | gdk.c \ |
---|
46 | gdkcc.c \ |
---|
47 | gdkcolor.c \ |
---|
48 | gdkcursor.c \ |
---|
49 | gdkdnd.c \ |
---|
50 | gdkdraw.c \ |
---|
51 | gdkevents.c \ |
---|
52 | gdkfont.c \ |
---|
53 | gdkgc.c \ |
---|
54 | gdkglobals.c \ |
---|
55 | gdkim.c \ |
---|
56 | gdkimage.c \ |
---|
57 | gdkinput.c \ |
---|
58 | gdkinput.h \ |
---|
59 | gdkinputnone.h \ |
---|
60 | gdkinputcommon.h\ |
---|
61 | gdkinputgxi.h \ |
---|
62 | gdkinputxfree.h \ |
---|
63 | gdkpixmap.c \ |
---|
64 | gdkproperty.c \ |
---|
65 | gdkrgb.c \ |
---|
66 | gdkrectangle.c \ |
---|
67 | gdkregion.c \ |
---|
68 | gdkselection.c \ |
---|
69 | gdkvisual.c \ |
---|
70 | gdkwindow.c \ |
---|
71 | gdkxid.c \ |
---|
72 | MwmUtil.h \ |
---|
73 | gxid_lib.h \ |
---|
74 | gxid_proto.h \ |
---|
75 | gxid_lib.c \ |
---|
76 | @STRIP_END@ |
---|
77 | |
---|
78 | # |
---|
79 | # setup GDK sources and their dependancies |
---|
80 | # |
---|
81 | libgdkinclude_HEADERS = $(gdk_public_h_sources) |
---|
82 | libgdk_la_SOURCES = $(gdk_c_sources) |
---|
83 | MAINTAINERCLEANFILES += |
---|
84 | EXTRA_HEADERS += |
---|
85 | EXTRA_DIST += |
---|
86 | EXTRA_DIST += |
---|
87 | |
---|
88 | # |
---|
89 | # rules to generate built sources |
---|
90 | # |
---|
91 | # we only need to remake these headers once a new X version is released |
---|
92 | X-derived-headers: |
---|
93 | sed -e 's/^#define[ ]*XC\([^ ]*\)[ ]*\([^ ]*\)[ ]*.*$$/GDK\1 = \2,/' \ |
---|
94 | -e 'tb' -e 'd' -e ':b' \ |
---|
95 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ |
---|
96 | < @x_includes@/X11/cursorfont.h > gdkcursors.h ; \ |
---|
97 | sed -e 's/^#define[ ]*XK\([^ ]*\)[ ]*\([^ ]*\)[ ]*.*$$/#define GDK\1 \2/' \ |
---|
98 | -e 'tb' -e 'd' -e ':b' -e 's/ 0X/ 0x/' \ |
---|
99 | < @x_includes@/X11/keysymdef.h > gdkkeysyms.h |
---|
100 | |
---|
101 | # |
---|
102 | # extra programs |
---|
103 | # |
---|
104 | EXTRA_PROGRAMS = gxid |
---|
105 | bin_PROGRAMS = @xinput_progs@ |
---|
106 | LDADDS = @STRIP_BEGIN@ \ |
---|
107 | @x_ldflags@ \ |
---|
108 | @x_libs@ \ |
---|
109 | @GLIB_LIBS@ \ |
---|
110 | -lm \ |
---|
111 | @STRIP_END@ |
---|
112 | gxid_SOURCES = gxid.c |
---|
113 | gxid_LDADD = $(LDADDS) |
---|
114 | |
---|
115 | |
---|
116 | .PHONY: files |
---|
117 | |
---|
118 | files: |
---|
119 | @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \ |
---|
120 | echo $$p; \ |
---|
121 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.