Makefile.am 3.11 KB
Newer Older
1
## Makefile.am for gtk+/gdk
Elliot Lee's avatar
Elliot Lee committed
2

Tor Lillqvist's avatar
Tor Lillqvist committed
3 4 5
SUBDIRS=x11 win32

EXTRA_DIST =	\
6 7 8 9
	gdkconfig.h.win32 \
	gdk.def \
	makefile.cygwin \
	makefile.msc
10

11
INCLUDES = @STRIP_BEGIN@ \
12 13
	-DG_LOG_DOMAIN=\"Gdk\"	\
	-I$(top_srcdir)		\
Owen Taylor's avatar
Owen Taylor committed
14
	-I$(top_builddir)/gdk	\
15 16 17
	@GTK_DEBUG_FLAGS@ 	\
	@GTK_XIM_FLAGS@		\
	@GTK_LOCALE_FLAGS@	\
18
	@PANGO_CFLAGS@		\
19
	@GLIB_CFLAGS@		\
20 21 22 23 24 25 26
	@x_cflags@ 		\
@STRIP_END@

#
# libraries to compile and install
#
lib_LTLIBRARIES = libgdk.la
Elliot Lee's avatar
Elliot Lee committed
27

28 29 30 31 32 33
# libtool stuff: set version and export symbols for resolving
libgdkincludedir = $(includedir)/gdk
libgdk_la_LDFLAGS = @STRIP_BEGIN@ \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	-release $(LT_RELEASE) \
	-export-dynamic \
34
	@PANGO_LIBS@	\
35 36 37 38 39 40
	@GLIB_DEPLIBS@	\
	@x_ldflags@	\
	@x_libs@	\
	-lm		\
@STRIP_END@

41 42 43
libgdk_la_LIBADD = \
	x11/libgdk-x11.la	

44 45 46
#
# setup source file variables
#
Owen Taylor's avatar
Started  
Owen Taylor committed
47
#
48
# GDK header files for public installation (non-generated)
Owen Taylor's avatar
Started  
Owen Taylor committed
49 50 51
#
# Note: files added here may need to be be propagated to gdk_headers in gtk/Makefile.am
#
52 53
gdk_public_h_sources = @STRIP_BEGIN@ \
	gdk.h		\
Owen Taylor's avatar
Started  
Owen Taylor committed
54 55
	gdkcc.h		\
	gdkcolor.h	\
56
	gdkcompat.h	\
Owen Taylor's avatar
Started  
Owen Taylor committed
57
	gdkcursor.h     \
58
	gdkcursors.h	\
Owen Taylor's avatar
Started  
Owen Taylor committed
59 60 61 62 63
	gdkdnd.h	\
	gdkdrawable.h	\
	gdkevents.h	\
	gdkfont.h	\
	gdkgc.h		\
64
	gdkkeysyms.h	\
Owen Taylor's avatar
Started  
Owen Taylor committed
65 66 67 68
	gdki18n.h	\
	gdkim.h		\
	gdkimage.h	\
	gdkinput.h	\
69
	gdkpango.h	\
Owen Taylor's avatar
Started  
Owen Taylor committed
70
	gdkpixmap.h	\
71
	gdkprivate.h	\
Owen Taylor's avatar
Started  
Owen Taylor committed
72 73 74 75
	gdkproperty.h	\
	gdkregion.h	\
	gdkrgb.h	\
	gdkselection.h	\
76
	gdktypes.h	\
Owen Taylor's avatar
Started  
Owen Taylor committed
77 78
	gdkvisual.h	\
	gdkwindow.h	\
79 80
@STRIP_END@
gdk_c_sources = @STRIP_BEGIN@ \
Elliot Lee's avatar
Elliot Lee committed
81 82
	gdk.c		\
	gdkcolor.c	\
83
	gdkcursor.c	\
Elliot Lee's avatar
Elliot Lee committed
84
	gdkdraw.c	\
85
	gdkevents.c     \
Elliot Lee's avatar
Elliot Lee committed
86 87 88
	gdkfont.c	\
	gdkgc.c		\
	gdkglobals.c	\
89
	gdkkeyuni.c	\
Elliot Lee's avatar
Elliot Lee committed
90
	gdkimage.c	\
91
	gdkinternals.h  \
92
	gdkpango.c	\
Manish Singh's avatar
Manish Singh committed
93
	gdkrgb.c	\
Elliot Lee's avatar
Elliot Lee committed
94 95
	gdkrectangle.c	\
	gdkwindow.c	\
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
@STRIP_END@

#
# setup GDK sources and their dependancies
#
libgdkinclude_HEADERS = $(gdk_public_h_sources)
libgdk_la_SOURCES = $(gdk_c_sources)
MAINTAINERCLEANFILES +=
EXTRA_HEADERS +=
EXTRA_DIST +=
EXTRA_DIST +=

#
# rules to generate built sources
#
# we only need to remake these headers once a new X version is released
X-derived-headers:
	sed -e 's/^#define[ 	]*XC\([^ 	]*\)[ 	]*\([^ 	]*\)[ 	]*.*$$/GDK\1 = \2,/' \
	    -e 'tb' -e 'd' -e ':b' \
	    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
	    < @x_includes@/X11/cursorfont.h > gdkcursors.h ; \
	sed -e 's/^#define[ 	]*XK\([^ 	]*\)[ 	]*\([^ 	]*\)[ 	]*.*$$/#define GDK\1 \2/' \
	    -e 'tb' -e 'd' -e ':b' -e 's/ 0X/ 0x/' \
	    < @x_includes@/X11/keysymdef.h > gdkkeysyms.h
Elliot Lee's avatar
Elliot Lee committed
120

121 122 123
#
# Rule to install gdkconfig.h header file
#
124 125 126 127 128 129 130
configexecincludedir = $(pkglibdir)/include
#configexecinclude_DATA = gdkconfig.h
install-exec-local: gdkconfig.h
	$(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
	file=$(DESTDIR)$(configexecincludedir)/gdkconfig.h; \
	if test -r $$file && cmp -s gdkconfig.h $$file; then :; \
	else $(INSTALL_DATA) gdkconfig.h $$file; fi
131 132 133

BUILT_SOURCES = stamp-gc-h #note: not gdkconfig.h
gdkconfig.h: stamp-gc-h
134 135
	@if test -f gdkconfig.h; then :; \
	else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
136 137 138 139
stamp-gc-h: ../config.status
	cd .. && CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=gdk/gdkconfig.h ./config.status
	echo timestamp > stamp-gc-h

Elliot Lee's avatar
Elliot Lee committed
140 141 142 143 144 145
.PHONY: files

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done