summaryrefslogtreecommitdiffstats
path: root/ospfclient
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-02 10:29:21 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-04 11:09:50 +0200
commitafca06902e13288ad1fec47d73e811c91e92e5d7 (patch)
treed914489774a4137d7fdcae5ec9a9a06996e9a500 /ospfclient
parentbuild: non-recursive ripd & ripngd (diff)
downloadfrr-afca06902e13288ad1fec47d73e811c91e92e5d7.tar.xz
frr-afca06902e13288ad1fec47d73e811c91e92e5d7.zip
build: non-recursive ospf*
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfclient')
-rw-r--r--ospfclient/.gitignore2
-rw-r--r--ospfclient/Makefile10
-rw-r--r--ospfclient/Makefile.am28
-rw-r--r--ospfclient/subdir.am30
4 files changed, 41 insertions, 29 deletions
diff --git a/ospfclient/.gitignore b/ospfclient/.gitignore
index a6000f802..1740b04fb 100644
--- a/ospfclient/.gitignore
+++ b/ospfclient/.gitignore
@@ -1,4 +1,4 @@
-Makefile
+!Makefile
Makefile.in
*.o
ospfclient
diff --git a/ospfclient/Makefile b/ospfclient/Makefile
new file mode 100644
index 000000000..3da2a5b89
--- /dev/null
+++ b/ospfclient/Makefile
@@ -0,0 +1,10 @@
+all: ALWAYS
+ @$(MAKE) -s -C .. ospfclient/ospfclient
+%: ALWAYS
+ @$(MAKE) -s -C .. ospfclient/$@
+
+Makefile:
+ #nothing
+ALWAYS:
+.PHONY: ALWAYS makefiles
+.SUFFIXES:
diff --git a/ospfclient/Makefile.am b/ospfclient/Makefile.am
deleted file mode 100644
index b4e362bbb..000000000
--- a/ospfclient/Makefile.am
+++ /dev/null
@@ -1,28 +0,0 @@
-## Automake.am for OSPF API client
-AUTOMAKE_OPTIONS = subdir-objects
-
-AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
-AM_CFLAGS = $(WERROR)
-
-lib_LTLIBRARIES = libfrrospfapiclient.la
-libfrrospfapiclient_la_LDFLAGS = -version-info 0:0:0
-libfrrospfapiclient_la_LIBADD = ../lib/libfrr.la
-
-sbin_PROGRAMS = ospfclient
-
-libfrrospfapiclient_la_SOURCES = \
- ospf_apiclient.c
-
-ospfapiheaderdir = $(pkgincludedir)/ospfapi
-
-ospfapiheader_HEADERS = \
- ospf_apiclient.h
-
-ospfclient_SOURCES = \
- ospfclient.c
-
-ospfclient_LDADD = libfrrospfapiclient.la \
- ../lib/libfrr.la @LIBCAP@
-
-ospfclient_CFLAGS = $(AM_CFLAGS)
-ospfclient_LDFLAGS = $(AM_LDFLAGS)
diff --git a/ospfclient/subdir.am b/ospfclient/subdir.am
new file mode 100644
index 000000000..834d4aaba
--- /dev/null
+++ b/ospfclient/subdir.am
@@ -0,0 +1,30 @@
+#
+# ospfclient
+#
+
+if OSPFCLIENT
+lib_LTLIBRARIES += ospfclient/libfrrospfapiclient.la
+sbin_PROGRAMS += ospfclient/ospfclient
+endif
+
+ospfclient_libfrrospfapiclient_la_LDFLAGS = -version-info 0:0:0
+ospfclient_libfrrospfapiclient_la_LIBADD = lib/libfrr.la
+ospfclient_libfrrospfapiclient_la_SOURCES = \
+ ospfclient/ospf_apiclient.c \
+ # end
+
+if OSPFCLIENT
+ospfapiheaderdir = $(pkgincludedir)/ospfapi
+ospfapiheader_HEADERS = \
+ ospfclient/ospf_apiclient.h \
+ # end
+endif
+
+ospfclient_ospfclient_LDADD = \
+ ospfclient/libfrrospfapiclient.la \
+ lib/libfrr.la \
+ @LIBCAP@ \
+ # end
+ospfclient_ospfclient_SOURCES = \
+ ospfclient/ospfclient.c \
+ # end