1 ## Makefile.am for gtk+/gdk
11 INCLUDES = @STRIP_BEGIN@ \
12 -DG_LOG_DOMAIN=\"Gdk\" \
14 -I$(top_builddir)/gdk \
23 # libraries to compile and install
25 lib_LTLIBRARIES = libgdk.la
27 # libtool stuff: set version and export symbols for resolving
28 libgdkincludedir = $(includedir)/gdk
29 libgdk_la_LDFLAGS = @STRIP_BEGIN@ \
30 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
31 -release $(LT_RELEASE) \
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@ \
77 gdk_c_sources = @STRIP_BEGIN@ \
94 # setup GDK sources and their dependancies
96 libgdkinclude_HEADERS = $(gdk_public_h_sources)
97 libgdk_la_SOURCES = $(gdk_c_sources)
98 MAINTAINERCLEANFILES +=
104 # rules to generate built sources
106 # we only need to remake these headers once a new X version is released
108 sed -e 's/^#define[ ]*XC\([^ ]*\)[ ]*\([^ ]*\)[ ]*.*$$/GDK\1 = \2,/' \
109 -e 'tb' -e 'd' -e ':b' \
110 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
111 < @x_includes@/X11/cursorfont.h > gdkcursors.h ; \
112 sed -e 's/^#define[ ]*XK\([^ ]*\)[ ]*\([^ ]*\)[ ]*.*$$/#define GDK\1 \2/' \
113 -e 'tb' -e 'd' -e ':b' -e 's/ 0X/ 0x/' \
114 < @x_includes@/X11/keysymdef.h > gdkkeysyms.h
117 # Rule to install gdkconfig.h header file
119 configexecincludedir = $(pkglibdir)/include
120 #configexecinclude_DATA = gdkconfig.h
121 install-exec-local: gdkconfig.h
122 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
123 file=$(DESTDIR)$(configexecincludedir)/gdkconfig.h; \
124 if test -r $$file && cmp -s gdkconfig.h $$file; then :; \
125 else $(INSTALL_DATA) gdkconfig.h $$file; fi
127 BUILT_SOURCES = stamp-gc-h #note: not gdkconfig.h
128 gdkconfig.h: stamp-gc-h
129 @if test -f gdkconfig.h; then :; \
130 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
131 stamp-gc-h: ../config.status
132 cd .. && CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=gdk/gdkconfig.h ./config.status
133 echo timestamp > stamp-gc-h
138 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \