Fix out-of-tree (VPATH) builds
authorTrent Nelson <trent.a.b.nelson@gmail.com>
Wed, 6 Jul 2011 20:33:00 +0000 (16:33 -0400)
committerTrent Nelson <trent.a.b.nelson@gmail.com>
Wed, 6 Jul 2011 20:38:38 +0000 (16:38 -0400)
examples/Makefile.am
lib/Makefile.am

index f029a2252a32bc330aacd10b30e51b154feabe82..314807b5cfa2a486cbc5c661adb7a9179843ea8d 100644 (file)
@@ -2,13 +2,13 @@ noinst_PROGRAMS = nfsclient-async nfsclient-raw nfsclient-sync nfsclient-bcast n
 
 AM_CPPFLAGS = \
        -I$(abs_top_srcdir)/include \
-       -I$(abs_top_srcdir)/mount \
-       -I$(abs_top_srcdir)/nfs \
-       -I$(abs_top_srcdir)/rquota \
-       -I$(abs_top_srcdir)/portmap \
+       -I../mount \
+       -I../nfs \
+       -I../rquota \
+       -I../portmap \
        "-D_U_=__attribute__((unused))"
 
-AM_LDFLAGS = $(abs_top_srcdir)/lib/.libs/libnfs.la
+AM_LDFLAGS = ../lib/.libs/libnfs.la
 
 nfsclient_async_SOURCES = nfsclient-async.c
 
index ba0eb433e7dee0fb57ee63c54fcb39885d041cd4..221034ffcd2ca711cbf8a150998d1b0cf549329b 100644 (file)
@@ -1,10 +1,10 @@
 lib_LTLIBRARIES = libnfs.la
 
 libnfs_la_CPPFLAGS = -I$(abs_top_srcdir)/include \
-                    -I$(abs_top_srcdir)/mount \
-                    -I$(abs_top_srcdir)/nfs \
-                    -I$(abs_top_srcdir)/portmap \
-                    -I$(abs_top_srcdir)/rquota \
+                    -I../mount \
+                    -I../nfs \
+                    -I../portmap \
+                    -I../rquota \
                     "-D_U_=__attribute__((unused))"
 
 libnfs_la_SOURCES = \
@@ -16,8 +16,8 @@ libnfs_la_SOURCES = \
 
 libnfs_la_LDFLAGS = -version-info 0:0:0
 libnfs_la_LIBADD = \
-       $(abs_top_srcdir)/mount/libmount.la \
-       $(abs_top_srcdir)/nfs/libnfs.la \
-       $(abs_top_srcdir)/portmap/libportmap.la \
-       $(abs_top_srcdir)/rquota/librquota.la 
+       ../mount/libmount.la \
+       ../nfs/libnfs.la \
+       ../portmap/libportmap.la \
+       ../rquota/librquota.la