summaryrefslogtreecommitdiffstats
path: root/ospfclient
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-02-09 12:59:44 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-02-09 17:08:09 +0100
commitbd9db8f46efcf88be586caa99d83bbdabb371b66 (patch)
tree9d36ac90957736e04cc4f807a2c29f206e84641a /ospfclient
parentMerge pull request #190 from opensourcerouting/config-write-sync-stable (diff)
downloadfrr-bd9db8f46efcf88be586caa99d83bbdabb371b66.tar.xz
frr-bd9db8f46efcf88be586caa99d83bbdabb371b66.zip
ospfclient: #include sources
Pulling in source files from another directory breaks automake's distclean target, and there seems to be no good fix for this... (particularly since we need -fPIC build for a DSO here, while ospfd compiles for an executable...) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfclient')
-rw-r--r--ospfclient/Makefile.am2
-rw-r--r--ospfclient/ospf_apiclient.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/ospfclient/Makefile.am b/ospfclient/Makefile.am
index 28dc65d16..b4e362bbb 100644
--- a/ospfclient/Makefile.am
+++ b/ospfclient/Makefile.am
@@ -11,7 +11,7 @@ libfrrospfapiclient_la_LIBADD = ../lib/libfrr.la
sbin_PROGRAMS = ospfclient
libfrrospfapiclient_la_SOURCES = \
- ospf_apiclient.c ../ospfd/ospf_dump_api.c ../ospfd/ospf_api.c
+ ospf_apiclient.c
ospfapiheaderdir = $(pkgincludedir)/ospfapi
diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c
index 1590b6538..fd53ab364 100644
--- a/ospfclient/ospf_apiclient.c
+++ b/ospfclient/ospf_apiclient.c
@@ -49,6 +49,10 @@
#include "ospf_apiclient.h"
+/* *sigh* ... can't find a better way to hammer this into automake */
+#include "ospfd/ospf_dump_api.c"
+#include "ospfd/ospf_api.c"
+
DEFINE_MGROUP(OSPFCLIENT, "libospfapiclient")
DEFINE_MTYPE_STATIC(OSPFCLIENT, OSPF_APICLIENT, "OSPF-API client")