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

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

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

141 142 143
#
# extra programs
#
Elliot Lee's avatar
Elliot Lee committed
144 145
EXTRA_PROGRAMS = gxid
bin_PROGRAMS = @xinput_progs@
146 147 148 149 150 151
LDADDS = @STRIP_BEGIN@ \
	@x_ldflags@	\
	@x_libs@	\
	@GLIB_LIBS@	\
	-lm		\
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
152
gxid_SOURCES = gxid.c
Tim Janik's avatar
Tim Janik committed
153
gxid_LDADD = $(LDADDS)
Elliot Lee's avatar
Elliot Lee committed
154 155 156 157 158 159 160 161


.PHONY: files

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