]> err.no Git - util-linux/commitdiff
build-sys: fix out-of-source build
authorKarel Zak <kzak@redhat.com>
Fri, 6 Nov 2009 02:05:27 +0000 (03:05 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 6 Nov 2009 02:28:00 +0000 (03:28 +0100)
The blkid.h file is generated and stored in $top_builddir.

Signed-off-by: Karel Zak <kzak@redhat.com>
config/include-Makefile.am
disk-utils/Makefile.am
fsck/Makefile.am
misc-utils/Makefile.am
mount/Makefile.am
shlibs/blkid/docs/Makefile.am
shlibs/blkid/samples/Makefile.am
shlibs/blkid/src/Makefile.am
shlibs/blkid/src/partitions/Makefile.am
shlibs/blkid/src/superblocks/Makefile.am
shlibs/blkid/src/topology/Makefile.am

index f00776958f2f951cb155eeedad8f59a58765d3c0..e13bb8ee375484790eeafce3fe10ed4e6a12e8c7 100644 (file)
@@ -16,6 +16,9 @@ ul_libblkid_srcdir = $(top_srcdir)/shlibs/blkid/src
 ul_libblkid_builddir = $(top_builddir)/shlibs/blkid/src
 ul_libblkid_la = $(top_builddir)/shlibs/blkid/src/libblkid.la
 
+# blkid.h is generated by ./configure script and stored in build directory
+ul_libblkid_incdir = $(ul_libblkid_builddir)
+
 $(ul_libblkid_la):
        $(MAKE) -C $(ul_libblkid_builddir)
 
index 852ae8a0bcb33f943cef215397dabffaf49802a4..08559c96980e5f570927330ff823abb137c9fdac 100644 (file)
@@ -62,7 +62,7 @@ endif
 if BUILD_LIBBLKID
 # only in-tree libblkid has partitions parsing support
 mkswap_LDADD += $(ul_libblkid_la)
-mkswap_CFLAGS += -I$(ul_libblkid_srcdir)
+mkswap_CFLAGS += -I$(ul_libblkid_incdir)
 endif
 
 if HAVE_SELINUX
index 567fee8b4d3e27d7eddc84e2943a928a38b95e73..1c88fde152dd889d33e172b693c0367a741efe05 100644 (file)
@@ -10,7 +10,7 @@ fsck_CFLAGS =
 
 if BUILD_LIBBLKID
 fsck_LDADD += $(ul_libblkid_la)
-fsck_CFLAGS += -I$(ul_libblkid_srcdir)
+fsck_CFLAGS += -I$(ul_libblkid_incdir)
 else
 fsck_LDADD += $(BLKID_LIBS)
 fsck_CFLAGS += $(BLKID_CFLAGS)
index 3ce85c6471060ac660bf0b221f3b71fd033447db..adc6762f2d5f714e00fc6e89c0a675ab342470c5 100644 (file)
@@ -37,17 +37,17 @@ sbin_PROGRAMS += blkid findfs wipefs
 dist_man_MANS += blkid.8 findfs.8 wipefs.8
 blkid_SOURCES = blkid.c $(top_srcdir)/lib/ismounted.c
 blkid_LDADD = $(ul_libblkid_la)
-blkid_CFLAGS = -I$(ul_libblkid_srcdir)
+blkid_CFLAGS = -I$(ul_libblkid_incdir)
 findfs_LDADD = $(ul_libblkid_la)
-findfs_CFLAGS = -I$(ul_libblkid_srcdir)
+findfs_CFLAGS = -I$(ul_libblkid_incdir)
 wipefs_LDADD = $(ul_libblkid_la)
-wipefs_CFLAGS = -I$(ul_libblkid_srcdir)
+wipefs_CFLAGS = -I$(ul_libblkid_incdir)
 if HAVE_STATIC_BLKID
 sbin_PROGRAMS += blkid.static
 blkid_static_SOURCES = $(blkid_SOURCES)
 blkid_static_LDFLAGS = -all-static
 blkid_static_LDADD = $(ul_libblkid_la)
-blkid_static_CFLAGS = -I$(ul_libblkid_srcdir)
+blkid_static_CFLAGS = -I$(ul_libblkid_incdir)
 endif
 endif
 
index 60ea59e058a06aa8cbdc76c0d87d46d14c9256d1..ca44d00721040bd119a144a2072a23027399300c 100644 (file)
@@ -72,7 +72,7 @@ endif
 if BUILD_LIBBLKID
 ldadd_common += $(ul_libblkid_la)
 ldadd_static += $(ul_libblkid_la)
-cflags_common += -I$(ul_libblkid_srcdir)
+cflags_common += -I$(ul_libblkid_incdir)
 else
 ldadd_common += $(BLKID_LIBS)
 ldadd_static += $(BLKID_LIBS_STATIC)
index fa8f2fbab849e869f1eac827a878a4236c66e1f5..6c209a3e724b8a16b220d934e15ceb7eb051cdb8 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/config/include-Makefile.am
+
 ## Process this file with automake to produce Makefile.in
 
 # We require automake 1.10 at least.
@@ -48,7 +50,7 @@ FIXXREF_OPTIONS=
 # Used for dependencies. The docs will be rebuilt if any of these change.
 # e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
 # e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
-HFILE_GLOB=$(top_srcdir)/shlibs/blkid/src/blkid.h
+HFILE_GLOB=$(ul_libblkid_incdir)/blkid.h
 CFILE_GLOB=$(top_srcdir)/shlibs/blkid/src/*.c
 
 # Extra header to include when scanning, which are not under DOC_SOURCE_DIR
index f7458616c1d350c97aa852743eebaf7a03a1ab87..93588d57dab8d14018a62c61ca9c556b12c1e108 100644 (file)
@@ -1,6 +1,6 @@
 include $(top_srcdir)/config/include-Makefile.am
 
-AM_CPPFLAGS += -I$(ul_libblkid_srcdir)
+AM_CPPFLAGS += -I$(ul_libblkid_incdir)
 AM_LDFLAGS += $(ul_libblkid_la)
 
 noinst_PROGRAMS = topology partitions mkfs superblocks
index a9fcfb524718ba8fd8c04cc1314faebcb0597717..90ce9bfc958a8d226b798b67a2cf8c8adbefe444 100644 (file)
@@ -15,7 +15,7 @@ common_cflags += $(UUID_CFLAGS)
 endif
 endif
 
-AM_CPPFLAGS += -I$(ul_libblkid_srcdir) $(common_cflags)
+AM_CPPFLAGS += -I$(ul_libblkid_incdir) -I$(ul_libblkid_srcdir) $(common_cflags)
 
 # includes
 blkidincdir = $(includedir)/blkid
index e18c81e5b77ff00de41d4299cdb5dc0ec1fff209..6af2022ea558900e4a5202b0be8353ba69189949 100644 (file)
@@ -1,6 +1,6 @@
 include $(top_srcdir)/config/include-Makefile.am
 
-AM_CPPFLAGS += -I$(ul_libblkid_srcdir)
+AM_CPPFLAGS += -I$(ul_libblkid_incdir) -I$(ul_libblkid_srcdir)
 libblkid_partitions_la_LIBADD =
 
 noinst_LTLIBRARIES = libblkid_partitions.la
index 3db02540730deafaa7589f97d076d93eb2959aba..8cf3009b9f8aa2519f15a3a7d951bd1605717115 100644 (file)
@@ -1,6 +1,6 @@
 include $(top_srcdir)/config/include-Makefile.am
 
-AM_CPPFLAGS += -I$(ul_libblkid_srcdir)
+AM_CPPFLAGS += -I$(ul_libblkid_incdir) -I$(ul_libblkid_srcdir)
 
 noinst_LTLIBRARIES = libblkid_superblocks.la
 libblkid_superblocks_la_SOURCES = \
index c0c3a9f6235a00a3cae9de5a778fe8de340ba9fc..11c348b6b1685eebc0e5b8b4e6dce52c5c937ec0 100644 (file)
@@ -1,6 +1,6 @@
 include $(top_srcdir)/config/include-Makefile.am
 
-AM_CPPFLAGS += -I$(ul_libblkid_srcdir)
+AM_CPPFLAGS += -I$(ul_libblkid_incdir) -I$(ul_libblkid_srcdir)
 libblkid_topology_la_LIBADD =
 
 noinst_LTLIBRARIES = libblkid_topology.la