File: Makefile.am

package info (click to toggle)
mx 1.4.6-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,628 kB
  • sloc: ansic: 46,358; sh: 11,012; makefile: 645; xml: 13
file content (96 lines) | stat: -rw-r--r-- 2,149 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
NULL =

source_gtk_h = \
	$(top_srcdir)/mx-gtk/mx-gtk-frame.h 		\
	$(top_srcdir)/mx-gtk/mx-gtk-light-switch.h 	\
	$(NULL)

source_gtk_c = \
	$(top_srcdir)/mx-gtk/mx-gtk-frame.c 		\
	$(top_srcdir)/mx-gtk/mx-gtk-light-switch.c 	\
	$(NULL)

mxincludedir = $(includedir)/mx-$(MX_API_VERSION)/mx-gtk
mxinclude_DATA = 				\
	$(source_gtk_h)				\
	$(top_srcdir)/mx-gtk/mx-gtk.h 		\
	$(NULL)

lib_LTLIBRARIES = libmx-gtk-@MX_API_VERSION@.la

#
# Mx GTK+ Library
#
# This is a seperate library with GTK+ widgets.
#

# libmx-gtk library

libmx_gtk_@MX_API_VERSION@_la_CFLAGS =	\
	$(common_includes)			\
	-DG_LOG_DOMAIN=\"MxGtk\"		\
	-DGTK_DISABLE_DEPRECATED		\
	$(MX_MAINTAINER_CFLAGS)		\
	$(MX_DEBUG_CFLAGS)			\
	$(GTK_CFLAGS)				\
	$(NULL)

libmx_gtk_@MX_API_VERSION@_la_LDFLAGS = $(GTK_LT_LDFLAGS) $(common_ldflags)

libmx_gtk_@MX_API_VERSION@_la_SOURCES =	\
	$(source_gtk_h)			\
	$(source_h_priv)		\
	$(source_gtk_c)			\
	mx-gtk.h 			\
	$(NULL)

libmx_gtk_@MX_API_VERSION@_la_LIBADD = $(GTK_LIBS)

CLEANFILES=

#
# Introspection Data
#

if HAVE_INTROSPECTION

BUILT_GIRSOURCES =

MxGtk-@MX_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libmx-gtk-@MX_API_VERSION@.la
	$(AM_V_GEN)$(INTROSPECTION_SCANNER) -v \
		--namespace MxGtk --nsversion=@MX_API_VERSION@ \
		$(common_includes) \
		--c-include="mx-gtk/mx-gtk.h" \
		--include=GObject-2.0 \
		--include=Gtk-2.0 \
		--library=libmx-gtk-@MX_API_VERSION@.la \
		--libtool="$(top_builddir)/libtool" \
		--pkg gobject-2.0 \
		--pkg gtk+-2.0 \
		--pkg-export mx-gtk-1.0 \
		--output $@ \
		$(source_gtk_h) \
		$(top_srcdir)/mx-gtk/mx-gtk.h \
		$(source_gtk_c)

BUILT_GIRSOURCES += MxGtk-@MX_API_VERSION@.gir

girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)

typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)

%.typelib: %.gir $(INTROSPECTION_COMPILER)
	$(AM_V_GEN) \
	LD_LIBRARY_PATH=.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} \
	$(INTROSPECTION_COMPILER) \
		--includedir=$(srcdir) \
		--includedir=. \
		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)

CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)

endif # HAVE_INTROSPECTION

-include $(top_srcdir)/git.mk