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