PORTMAPv3: Add NULL and DUMP commands. Also add portmap example client.
[deb_libnfs.git] / examples / Makefile.am
index bbf2c349481284aa3fac4fa48ef5ce834bf1dbbe..d72e757ccfe56ef44b2382027fd11c589964da45 100644 (file)
@@ -1,40 +1,30 @@
-noinst_PROGRAMS = nfsclient-async nfsclient-raw nfsclient-sync nfsclient-bcast nfsclient-listservers
+noinst_PROGRAMS = nfsclient-async nfsclient-raw nfsclient-sync nfsclient-bcast nfsclient-listservers nfs-ls nfs-cp nfs-io portmap-client
 
-nfsclient_async_CPPFLAGS = \
-       -I$(abs_top_srcdir)/include \
-       -I$(abs_top_srcdir)/mount \
-       "-D_U_=__attribute__((unused))"
-nfsclient_async_SOURCES = nfsclient-async.c
-nfsclient_async_LDADD = $(abs_top_srcdir)/lib/.libs/libnfs.la
-
-nfsclient_raw_CPPFLAGS = \
+AM_CPPFLAGS = \
        -I$(abs_top_srcdir)/include \
+       -I$(abs_top_srcdir)/include/nfsc \
        -I$(abs_top_srcdir)/mount \
        -I$(abs_top_srcdir)/nfs \
+       -I$(abs_top_srcdir)/portmap \
        -I$(abs_top_srcdir)/rquota \
        "-D_U_=__attribute__((unused))"
+
+AM_LDFLAGS = ../lib/.libs/libnfs.la -lpopt
+
+nfs_ls_SOURCES = nfs-ls.c
+
+nfs_cp_SOURCES = nfs-cp.c
+
+nfs_io_SOURCES = nfs-io.c
+
+nfsclient_async_SOURCES = nfsclient-async.c
+
 nfsclient_raw_SOURCES = nfsclient-raw.c
-nfsclient_raw_LDADD = $(abs_top_srcdir)/lib/.libs/libnfs.la
 
-nfsclient_sync_CPPFLAGS = \
-       -I$(abs_top_srcdir)/include \
-       -I$(abs_top_srcdir)/mount \
-       "-D_U_=__attribute__((unused))"
 nfsclient_sync_SOURCES = nfsclient-sync.c
-nfsclient_sync_LDADD = $(abs_top_srcdir)/lib/.libs/libnfs.la
 
-nfsclient_bcast_CPPFLAGS = \
-       -I$(abs_top_srcdir)/include \
-       -I$(abs_top_srcdir)/mount \
-       -I$(abs_top_srcdir)/portmap \
-       "-D_U_=__attribute__((unused))"
 nfsclient_bcast_SOURCES = nfsclient-bcast.c
-nfsclient_bcast_LDADD = $(abs_top_srcdir)/lib/.libs/libnfs.la
 
-nfsclient_listservers_CPPFLAGS = \
-       -I$(abs_top_srcdir)/include \
-       -I$(abs_top_srcdir)/mount \
-       "-D_U_=__attribute__((unused))"
 nfsclient_listservers_SOURCES = nfsclient-listservers.c
-nfsclient_listservers_LDADD = $(abs_top_srcdir)/lib/.libs/libnfs.la
 
+portmap_example_SOURCES = portmap-example.c