Add the bcast and the listservers examples to the new build system
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 2 Jul 2011 01:21:44 +0000 (11:21 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 2 Jul 2011 01:21:44 +0000 (11:21 +1000)
examples/Makefile.am
examples/nfsclient-bcast.c
examples/nfsclient-listservers.c

index bbadbea87fdbd00c4048ef4aee3bc26507bb2040..bbf2c349481284aa3fac4fa48ef5ce834bf1dbbe 100644 (file)
@@ -1,4 +1,4 @@
-noinst_PROGRAMS = nfsclient-async nfsclient-raw nfsclient-sync
+noinst_PROGRAMS = nfsclient-async nfsclient-raw nfsclient-sync nfsclient-bcast nfsclient-listservers
 
 nfsclient_async_CPPFLAGS = \
        -I$(abs_top_srcdir)/include \
@@ -22,3 +22,19 @@ nfsclient_sync_CPPFLAGS = \
        "-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
+
index 9fb8073c9dc9037b2c72ff905ddf915f0aa11778..8140f5222862589f221d6a8ad525329cc4465c03 100644 (file)
@@ -33,7 +33,6 @@
 #include "libnfs-raw.h"
 #include "libnfs-raw-mount.h"
 #include "libnfs-raw-portmap.h"
-#include "libnfs-private.h"
 
 struct nfs_list_data {
        int status;
index fbb0e097e2854ad38da572026c0d435e5c48805f..d1d24b016f51c70f690bc454d43c01ec4801a230 100644 (file)
 #include <net/if.h>
 #include <netdb.h>
 #include "libnfs.h"
-#include "libnfs-raw.h"
-#include "libnfs-raw-mount.h"
-#include "libnfs-raw-portmap.h"
-#include "libnfs-private.h"
 
 
 int main(int argc _U_, char *argv[] _U_)