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