summaryrefslogtreecommitdiffstats
path: root/ospfclient/subdir.am
blob: 2bf32544fda8c8cea327be2a1dcb4801db4d1dcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# ospfclient
#

if OSPFCLIENT
lib_LTLIBRARIES += ospfclient/libfrrospfapiclient.la
noinst_PROGRAMS += ospfclient/ospfclient
#man8 += $(MANBUILD)/frr-ospfclient.8

if PYTHON_RUNTIME_DEPENDENCY
sbin_SCRIPTS += \
	ospfclient/ospfclient.py \
	# end
endif
endif


ospfclient_libfrrospfapiclient_la_LDFLAGS = $(LIB_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 \
	ospfd/libfrrospfclient.a \
	$(LIBCAP) \
	# end

if STATIC_BIN
# libfrr is linked in through libfrrospfapiclient.  If we list it here too,
# it gets linked twice and we get a ton of symbol collisions.

else # !STATIC_BIN
# For most systems we don't need this, except Debian, who patch their linker
# to disallow transitive references *while* *als* not patching their libtool
# to work appropriately.  RedHat has the same linker behaviour, but things
# work as expected since they also patch libtool.
ospfclient_ospfclient_LDADD += lib/libfrr.la
endif

ospfclient_ospfclient_SOURCES = \
	ospfclient/ospfclient.c \
	# end

EXTRA_DIST += \
	ospfclient/ospfclient.py \
	# end