summaryrefslogtreecommitdiff
path: root/src/gudev/Makefile.am
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-11-25 15:37:04 -0500
committerAnthony G. Basile <blueness@gentoo.org>2012-11-25 15:37:04 -0500
commit518c07d5b4b40c8e580897755c400910677d9e21 (patch)
tree26aed2ea1cbc512d45823db70b61d0b68fa6376a /src/gudev/Makefile.am
parente0551bfe664fd7bf97718150b8210406be5a1636 (diff)
Fix compilation of gudev and introspection
This commit the related issues of building gudev with/out introspection. It draws on suggestions from nvinson in https://github.com/gentoo/eudev/pull/20 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/gudev/Makefile.am')
-rw-r--r--src/gudev/Makefile.am36
1 files changed, 20 insertions, 16 deletions
diff --git a/src/gudev/Makefile.am b/src/gudev/Makefile.am
index a59c69d3c4..6ad768cd62 100644
--- a/src/gudev/Makefile.am
+++ b/src/gudev/Makefile.am
@@ -27,23 +27,15 @@ CLEANFILES = \
gudev-1.0.pc
libgudev_1_0_la_SOURCES = \
- gudevenums.h \
- gudevenumtypes.h \
gudevenumtypes.h\
- gudevtypes.h \
- gudevclient.h \
+ gudevenumtypes.c\
gudevclient.c \
- gudevdevice.h \
gudevdevice.c \
- gudevenumerator.h \
- gudevenumerator.c \
- gudevprivate.h
+ gudevenumerator.c
nodist_libgudev_1_0_la_SOURCES = \
gudevmarshal.h \
- gudevmarshal.c \
- gudevenumtypes.h \
- gudevenumtypes.c
+ gudevmarshal.c
BUILT_SOURCES = \
$(nodist_libgudev_1_0_la_SOURCES)
@@ -88,12 +80,20 @@ gudevenumtypes.%: gudevenumtypes.%.template gudevenums.h
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)glib-mkenums --template $^ > $@
+CLEANFILES += \
+ gudevmarshal.h \
+ gudevmarshal.c \
+ gudevenumtypes.h \
+ gudevenumtypes.c
+
if HAVE_INTROSPECTION
-include $(INTROSPECTION_MAKEFILE)
-GUdev-1.0.gir: libgudev-1.0.la
+GUdev-1.0.gir: \
+ libgudev-1.0.la
-GUdev_1_0_gir_INCLUDES = GObject-2.0
+GUdev_1_0_gir_INCLUDES = \
+ GObject-2.0
GUdev_1_0_gir_CFLAGS = \
$(INCLUDES) \
@@ -105,7 +105,8 @@ GUdev_1_0_gir_CFLAGS = \
-I$(top_builddir)/src/gdev
GUdev_1_0_gir_LIBS = \
- libgudev-1.0.la
+ $(top_builddir)/src/gudev/libgudev-1.0.la \
+ $(top_builddir)/src/udev/libudev-core.la
GUdev_1_0_gir_SCANNERFLAGS = \
--pkg-export=gudev-1.0 \
@@ -123,8 +124,11 @@ GUdev_1_0_gir_FILES = \
gudevdevice.c \
gudevenumerator.c
-INTROSPECTION_GIRS = GUdev-1.0.gir
-INTROSPECTION_SCANNER_ARGS = --c-include=gudev.h
+INTROSPECTION_GIRS = \
+ GUdev-1.0.gir
+
+INTROSPECTION_SCANNER_ARGS = \
+ --c-include=gudev.h
girdir = $(datadir)/gir-1.0
gir_DATA = \