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 -L../gdk-pixbuf/.libs -lgdk_pixbuf \
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@ \
95 gdkpixbuf-drawable.c \
99 gdkpolyreg-generic.c \
102 gdkregion-generic.c \
103 gdkregion-generic.h \
108 # setup GDK sources and their dependancies
110 extra = @gdktargetlib@
113 libgdk_x11_includedir = $(includedir)/gtk-2.0/gdk
115 libgdk_x11_1_3_la_LIBADD = \
116 $(gtarget)/libgdk-$(gtarget).la
118 libgdk_x11_include_HEADERS = $(gdk_public_h_sources)
119 libgdk_x11_1_3_la_SOURCES = $(gdk_c_sources)
123 libgdk_nanox_includedir = $(includedir)/gtk-2.0/gdk
125 libgdk_nanox_1_3_la_LIBADD = \
126 $(gtarget)/libgdk-$(gtarget).la
128 libgdk_nanox_include_HEADERS = $(gdk_public_h_sources)
129 libgdk_nanox_1_3_la_SOURCES = $(gdk_c_sources)
133 libgdk_linux_fb_includedir = $(includedir)/gtk-2.0/gdk
135 libgdk_linux_fb_1_3_la_LIBADD = \
136 $(gtarget)/libgdk-$(gtarget).la
138 libgdk_linux_fb_include_HEADERS = $(gdk_public_h_sources)
139 libgdk_linux_fb_1_3_la_SOURCES = $(gdk_c_sources)
142 # now define the real one to workaround automake's mishandling
143 lib_LTLIBRARIES = $(extra)
145 EXTRA_LTLIBRARIES = libgdk-x11-1.3.la libgdk-nanox-1.3.la libgdk-linux-fb-1.3.la
147 MAINTAINERCLEANFILES +=
153 # rules to generate built sources
155 # we only need to remake these headers once a new X version is released
157 sed -e 's/^#define[ ]*XC\([^ ]*\)[ ]*\([^ ]*\)[ ]*.*$$/GDK\1 = \2,/' \
158 -e 'tb' -e 'd' -e ':b' \
159 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
160 < @x_includes@/X11/cursorfont.h > gdkcursors.h ; \
161 sed -e 's/^#define[ ]*XK\([^ ]*\)[ ]*\([^ ]*\)[ ]*.*$$/#define GDK\1 \2/' \
162 -e 'tb' -e 'd' -e ':b' -e 's/ 0X/ 0x/' \
163 < @x_includes@/X11/keysymdef.h > gdkkeysyms.h
166 # Rule to install gdkconfig.h header file
168 configexecincludedir = $(libdir)/gtk-2.0/include
169 #configexecinclude_DATA = gdkconfig.h
170 install-exec-local: gdkconfig.h
171 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
172 file=$(DESTDIR)$(configexecincludedir)/gdkconfig.h; \
173 if test -r $$file && cmp -s gdkconfig.h $$file; then :; \
174 else $(INSTALL_DATA) gdkconfig.h $$file; fi
176 BUILT_SOURCES = stamp-gc-h #note: not gdkconfig.h
177 gdkconfig.h: stamp-gc-h
178 @if test -f gdkconfig.h; then :; \
179 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
180 stamp-gc-h: ../config.status
181 cd .. && CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=gdk/gdkconfig.h ./config.status
182 echo timestamp > stamp-gc-h
184 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gdk/makefile.mingw.in
185 cd $(top_builddir) && CONFIG_FILES=gdk/$@ CONFIG_HEADERS= $(SHELL) ./config.status
190 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \