1 ## Makefile.am for gtk+/gdk
4 DIST_SUBDIRS=linux-fb nanox win32 x11
12 common_includes = @STRIP_BEGIN@ \
13 -DG_LOG_DOMAIN=\"Gdk\" \
15 -I$(top_builddir)/gdk \
16 -I$(top_srcdir)/gdk-pixbuf \
25 INCLUDES = $(common_includes)
28 # libtool stuff: set version and export symbols for resolving
29 # since automake doesn't support conditionalized libsomething_la_LDFLAGS
30 # we use the general approach here
31 LDFLAGS = @STRIP_BEGIN@ \
32 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
43 # setup source file variables
46 # GDK header files for public installation (non-generated)
48 # Note: files added here may need to be be propagated to gdk_headers in gtk/Makefile.am
50 gdk_public_h_sources = @STRIP_BEGIN@ \
80 gdk_c_sources = @STRIP_BEGIN@ \
93 gdkpixbuf-drawable.c \
97 gdkpolyreg-generic.c \
100 gdkregion-generic.c \
101 gdkregion-generic.h \
106 # setup GDK sources and their dependancies
108 extra = @gdktargetlib@
111 libgdk_x11_includedir = $(includedir)/gtk-2.0/gdk
113 libgdk_x11_1_3_la_LIBADD = \
114 $(gtarget)/libgdk-$(gtarget).la
116 libgdk_x11_include_HEADERS = $(gdk_public_h_sources)
117 libgdk_x11_1_3_la_SOURCES = $(gdk_c_sources)
121 libgdk_nanox_includedir = $(includedir)/gtk-2.0/gdk
123 libgdk_nanox_1_3_la_LIBADD = \
124 $(gtarget)/libgdk-$(gtarget).la
126 libgdk_nanox_include_HEADERS = $(gdk_public_h_sources)
127 libgdk_nanox_1_3_la_SOURCES = $(gdk_c_sources)
131 libgdk_linux_fb_includedir = $(includedir)/gtk-2.0/gdk
133 libgdk_linux_fb_1_3_la_LIBADD = \
134 $(gtarget)/libgdk-$(gtarget).la
136 libgdk_linux_fb_include_HEADERS = $(gdk_public_h_sources)
137 libgdk_linux_fb_1_3_la_SOURCES = $(gdk_c_sources)
140 # now define the real one to workaround automake's mishandling
141 lib_LTLIBRARIES = $(extra)
143 EXTRA_LTLIBRARIES = libgdk-x11-1.3.la libgdk-nanox-1.3.la libgdk-linux-fb-1.3.la
145 MAINTAINERCLEANFILES +=
151 # rules to generate built sources
153 # we only need to remake these headers once a new X version is released
155 sed -e 's/^#define[ ]*XC\([^ ]*\)[ ]*\([^ ]*\)[ ]*.*$$/GDK\1 = \2,/' \
156 -e 'tb' -e 'd' -e ':b' \
157 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
158 < @x_includes@/X11/cursorfont.h > gdkcursors.h ; \
159 sed -e 's/^#define[ ]*XK\([^ ]*\)[ ]*\([^ ]*\)[ ]*.*$$/#define GDK\1 \2/' \
160 -e 'tb' -e 'd' -e ':b' -e 's/ 0X/ 0x/' \
161 < @x_includes@/X11/keysymdef.h > gdkkeysyms.h
164 # Rule to install gdkconfig.h header file
166 configexecincludedir = $(libdir)/gtk-2.0/include
167 #configexecinclude_DATA = gdkconfig.h
168 install-exec-local: gdkconfig.h
169 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
170 file=$(DESTDIR)$(configexecincludedir)/gdkconfig.h; \
171 if test -r $$file && cmp -s gdkconfig.h $$file; then :; \
172 else $(INSTALL_DATA) gdkconfig.h $$file; fi
174 BUILT_SOURCES = stamp-gc-h #note: not gdkconfig.h
175 gdkconfig.h: stamp-gc-h
176 @if test -f gdkconfig.h; then :; \
177 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
178 stamp-gc-h: ../config.status
179 cd .. && CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=gdk/gdkconfig.h ./config.status
180 echo timestamp > stamp-gc-h
185 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \