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

3 4
SUBDIRS=x11

5
INCLUDES = @STRIP_BEGIN@ \
6 7 8 9 10 11
	-DG_LOG_DOMAIN=\"Gdk\"	\
	-I$(top_srcdir)		\
	@GTK_DEBUG_FLAGS@ 	\
	@GTK_XIM_FLAGS@		\
	@GTK_LOCALE_FLAGS@	\
	@GLIB_CFLAGS@		\
12 13 14 15 16 17 18
	@x_cflags@ 		\
@STRIP_END@

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

20 21 22 23 24 25 26 27 28 29 30 31
# 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 \
	@GLIB_DEPLIBS@	\
	@x_ldflags@	\
	@x_libs@	\
	-lm		\
@STRIP_END@

32 33 34
libgdk_la_LIBADD = \
	x11/libgdk-x11.la	

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

124 125 126
#
# Rule to install gdkconfig.h header file
#
127 128 129 130 131 132 133
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
134 135 136

BUILT_SOURCES = stamp-gc-h #note: not gdkconfig.h
gdkconfig.h: stamp-gc-h
137 138
	@if test -f gdkconfig.h; then :; \
	else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
139 140 141 142
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
143 144 145 146 147 148
.PHONY: files

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