From 9ab4d56ef98e001a82feb2b6dba2cd4e76813618 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 2 Jul 2011 11:21:44 +1000 Subject: [PATCH] Add the bcast and the listservers examples to the new build system --- examples/Makefile.am | 18 +++++++++++++++++- examples/nfsclient-bcast.c | 1 - examples/nfsclient-listservers.c | 4 ---- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/examples/Makefile.am b/examples/Makefile.am index bbadbea..bbf2c34 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -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 + diff --git a/examples/nfsclient-bcast.c b/examples/nfsclient-bcast.c index 9fb8073..8140f52 100644 --- a/examples/nfsclient-bcast.c +++ b/examples/nfsclient-bcast.c @@ -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; diff --git a/examples/nfsclient-listservers.c b/examples/nfsclient-listservers.c index fbb0e09..d1d24b0 100644 --- a/examples/nfsclient-listservers.c +++ b/examples/nfsclient-listservers.c @@ -30,10 +30,6 @@ #include #include #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_) -- 2.34.1