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

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

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

18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
# 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@

#
# setup source file variables
#
# GDK header files for public installation (non-generated)
gdk_public_h_sources = @STRIP_BEGIN@ \
	gdk.h		\
	gdkcursors.h	\
	gdkrgb.h	\
	gdki18n.h	\
	gdkkeysyms.h	\
	gdkprivate.h	\
	gdktypes.h	\
	gdkx.h		\
@STRIP_END@
gdk_c_sources = @STRIP_BEGIN@ \
Elliot Lee's avatar
Elliot Lee committed
45
	gdk.c		\
46
	gdkcc.c		\
Elliot Lee's avatar
Elliot Lee committed
47 48
	gdkcolor.c	\
	gdkcursor.c	\
49
	gdkdnd.c	\
Elliot Lee's avatar
Elliot Lee committed
50
	gdkdraw.c	\
51
	gdkevents.c     \
Elliot Lee's avatar
Elliot Lee committed
52 53 54
	gdkfont.c	\
	gdkgc.c		\
	gdkglobals.c	\
55
	gdkim.c		\
Elliot Lee's avatar
Elliot Lee committed
56 57
	gdkimage.c	\
	gdkinput.c	\
58 59 60 61 62
	gdkinput.h	\
	gdkinputnone.h  \
	gdkinputcommon.h\
	gdkinputgxi.h	\
	gdkinputxfree.h	\
Elliot Lee's avatar
Elliot Lee committed
63 64
	gdkpixmap.c	\
	gdkproperty.c	\
Manish Singh's avatar
Manish Singh committed
65
	gdkrgb.c	\
Elliot Lee's avatar
Elliot Lee committed
66
	gdkrectangle.c	\
67
	gdkregion.c	\
Elliot Lee's avatar
Elliot Lee committed
68 69 70 71
	gdkselection.c	\
	gdkvisual.c	\
	gdkwindow.c	\
	gdkxid.c 	\
72
	MwmUtil.h       \
73 74
	gxid_lib.h	\
	gxid_proto.h	\
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
        gxid_lib.c	\
@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
100

101 102 103
#
# Rule to install gdkconfig.h header file
#
104 105 106 107 108 109 110
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
111 112 113

BUILT_SOURCES = stamp-gc-h #note: not gdkconfig.h
gdkconfig.h: stamp-gc-h
114 115
	@if test -f gdkconfig.h; then :; \
	else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
116 117 118 119
stamp-gc-h: ../config.status
	cd .. && CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=gdk/gdkconfig.h ./config.status
	echo timestamp > stamp-gc-h

120 121 122
#
# extra programs
#
Elliot Lee's avatar
Elliot Lee committed
123 124
EXTRA_PROGRAMS = gxid
bin_PROGRAMS = @xinput_progs@
125 126 127 128 129 130
LDADDS = @STRIP_BEGIN@ \
	@x_ldflags@	\
	@x_libs@	\
	@GLIB_LIBS@	\
	-lm		\
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
131
gxid_SOURCES = gxid.c
Tim Janik's avatar
Tim Janik committed
132
gxid_LDADD = $(LDADDS)
Elliot Lee's avatar
Elliot Lee committed
133 134 135 136 137 138 139 140


.PHONY: files

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