1 ## Makefile.am for gtk+/gdk
11 INCLUDES = @STRIP_BEGIN@ \
12 -DG_LOG_DOMAIN=\"Gdk\" \
22 # libraries to compile and install
24 lib_LTLIBRARIES = libgdk.la
26 # libtool stuff: set version and export symbols for resolving
27 libgdkincludedir = $(includedir)/gdk
28 libgdk_la_LDFLAGS = @STRIP_BEGIN@ \
29 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
30 -release $(LT_RELEASE) \
42 # setup source file variables
45 # GDK header files for public installation (non-generated)
47 # Note: files added here may need to be be propagated to gdk_headers in gtk/Makefile.am
49 gdk_public_h_sources = @STRIP_BEGIN@ \
76 gdk_c_sources = @STRIP_BEGIN@ \
91 # setup GDK sources and their dependancies
93 libgdkinclude_HEADERS = $(gdk_public_h_sources)
94 libgdk_la_SOURCES = $(gdk_c_sources)
95 MAINTAINERCLEANFILES +=
101 # rules to generate built sources
103 # we only need to remake these headers once a new X version is released
105 sed -e 's/^#define[ ]*XC\([^ ]*\)[ ]*\([^ ]*\)[ ]*.*$$/GDK\1 = \2,/' \
106 -e 'tb' -e 'd' -e ':b' \
107 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
108 < @x_includes@/X11/cursorfont.h > gdkcursors.h ; \
109 sed -e 's/^#define[ ]*XK\([^ ]*\)[ ]*\([^ ]*\)[ ]*.*$$/#define GDK\1 \2/' \
110 -e 'tb' -e 'd' -e ':b' -e 's/ 0X/ 0x/' \
111 < @x_includes@/X11/keysymdef.h > gdkkeysyms.h
114 # Rule to install gdkconfig.h header file
116 configexecincludedir = $(pkglibdir)/include
117 #configexecinclude_DATA = gdkconfig.h
118 install-exec-local: gdkconfig.h
119 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
120 file=$(DESTDIR)$(configexecincludedir)/gdkconfig.h; \
121 if test -r $$file && cmp -s gdkconfig.h $$file; then :; \
122 else $(INSTALL_DATA) gdkconfig.h $$file; fi
124 BUILT_SOURCES = stamp-gc-h #note: not gdkconfig.h
125 gdkconfig.h: stamp-gc-h
126 @if test -f gdkconfig.h; then :; \
127 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
128 stamp-gc-h: ../config.status
129 cd .. && CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=gdk/gdkconfig.h ./config.status
130 echo timestamp > stamp-gc-h
135 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \