]> Pileus Git - ~andy/gtk/blob - gdk/Makefile.am
configure.in gdk/Makefile.am gdk/x11/Makefile.am Small fixes, thanks to
[~andy/gtk] / gdk / Makefile.am
1 ## Makefile.am for gtk+/gdk
2
3 SUBDIRS=x11 win32
4
5 EXTRA_DIST =    \
6         gdkconfig.h.win32 \
7         gdk.def \
8         makefile.cygwin \
9         makefile.msc
10
11 INCLUDES = @STRIP_BEGIN@ \
12         -DG_LOG_DOMAIN=\"Gdk\"  \
13         -I$(top_srcdir)         \
14         @GTK_DEBUG_FLAGS@       \
15         @GTK_XIM_FLAGS@         \
16         @GTK_LOCALE_FLAGS@      \
17         @GLIB_CFLAGS@           \
18         @x_cflags@              \
19 @STRIP_END@
20
21 #
22 # libraries to compile and install
23 #
24 lib_LTLIBRARIES = libgdk.la
25
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) \
31         -export-dynamic \
32         @GLIB_DEPLIBS@  \
33         @x_ldflags@     \
34         @x_libs@        \
35         -lm             \
36 @STRIP_END@
37
38 libgdk_la_LIBADD = \
39         x11/libgdk-x11.la       
40
41 #
42 # setup source file variables
43 #
44 #
45 # GDK header files for public installation (non-generated)
46 #
47 # Note: files added here may need to be be propagated to gdk_headers in gtk/Makefile.am
48 #
49 gdk_public_h_sources = @STRIP_BEGIN@ \
50         gdk.h           \
51         gdkcc.h         \
52         gdkcolor.h      \
53         gdkcompat.h     \
54         gdkcursor.h     \
55         gdkcursors.h    \
56         gdkdnd.h        \
57         gdkdrawable.h   \
58         gdkevents.h     \
59         gdkfont.h       \
60         gdkgc.h         \
61         gdkkeysyms.h    \
62         gdki18n.h       \
63         gdkim.h         \
64         gdkimage.h      \
65         gdkinput.h      \
66         gdkpixmap.h     \
67         gdkprivate.h    \
68         gdkproperty.h   \
69         gdkregion.h     \
70         gdkrgb.h        \
71         gdkselection.h  \
72         gdktypes.h      \
73         gdkvisual.h     \
74         gdkwindow.h     \
75 @STRIP_END@
76 gdk_c_sources = @STRIP_BEGIN@ \
77         gdk.c           \
78         gdkcolor.c      \
79         gdkdraw.c       \
80         gdkevents.c     \
81         gdkfont.c       \
82         gdkgc.c         \
83         gdkglobals.c    \
84         gdkimage.c      \
85         gdkrgb.c        \
86         gdkrectangle.c  \
87         gdkwindow.c     \
88 @STRIP_END@
89
90 #
91 # setup GDK sources and their dependancies
92 #
93 libgdkinclude_HEADERS = $(gdk_public_h_sources)
94 libgdk_la_SOURCES = $(gdk_c_sources)
95 MAINTAINERCLEANFILES +=
96 EXTRA_HEADERS +=
97 EXTRA_DIST +=
98 EXTRA_DIST +=
99
100 #
101 # rules to generate built sources
102 #
103 # we only need to remake these headers once a new X version is released
104 X-derived-headers:
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
112
113 #
114 # Rule to install gdkconfig.h header file
115 #
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
123
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
131
132 .PHONY: files
133
134 files:
135         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
136           echo $$p; \
137         done