source: trunk/third/gtk/gdk/Makefile.am @ 21610

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
3INCLUDES = @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#
16lib_LTLIBRARIES = libgdk.la
17
18# libtool stuff: set version and export symbols for resolving
19libgdkincludedir = $(includedir)/gtk-1.2/gdk
20libgdk_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)
34gdk_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@
44gdk_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#
81libgdkinclude_HEADERS = $(gdk_public_h_sources)
82libgdk_la_SOURCES = $(gdk_c_sources)
83MAINTAINERCLEANFILES +=
84EXTRA_HEADERS +=
85EXTRA_DIST +=
86EXTRA_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
92X-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#
104EXTRA_PROGRAMS = gxid
105bin_PROGRAMS = @xinput_progs@
106LDADDS = @STRIP_BEGIN@ \
107        @x_ldflags@     \
108        @x_libs@        \
109        @GLIB_LIBS@     \
110        -lm             \
111@STRIP_END@
112gxid_SOURCES = gxid.c
113gxid_LDADD = $(LDADDS)
114
115
116.PHONY: files
117
118files:
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.