]> git.proxmox.com Git - mirror_frr.git/blob - lib/Makefile.am
lib, isisd: enable concurrent configuration editing
[mirror_frr.git] / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2
3 AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib \
4 -DVTY_DEPRECATE_INDEX
5 AM_CFLAGS = $(WERROR)
6 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
7
8 lib_LTLIBRARIES = libzebra.la
9 libzebra_la_LDFLAGS = -version-info 0:0:0
10
11 libzebra_la_SOURCES = \
12 network.c pid_output.c getopt.c getopt1.c daemon.c \
13 checksum.c vector.c linklist.c vty.c command.c \
14 sockunion.c prefix.c thread.c if.c buffer.c table.c hash.c \
15 filter.c routemap.c distribute.c stream.c str.c log.c plist.c \
16 zclient.c sockopt.c smux.c agentx.c snmp.c md5.c if_rmap.c keychain.c privs.c \
17 sigevent.c pqueue.c jhash.c workqueue.c nexthop.c json.c \
18 ptm_lib.c csv.c bfd.c vrf.c systemd.c ns.c memory.c memory_vty.c \
19 imsg-buffer.c imsg.c skiplist.c \
20 qobj.c
21
22 BUILT_SOURCES = route_types.h gitversion.h
23
24 libzebra_la_DEPENDENCIES = @LIB_REGEX@
25
26 libzebra_la_LIBADD = @LIB_REGEX@ @LIBCAP@
27
28 pkginclude_HEADERS = \
29 buffer.h checksum.h command.h filter.h getopt.h hash.h \
30 if.h linklist.h log.h \
31 memory.h network.h prefix.h routemap.h distribute.h sockunion.h \
32 str.h stream.h table.h thread.h vector.h version.h vty.h zebra.h \
33 plist.h zclient.h sockopt.h smux.h md5.h if_rmap.h keychain.h \
34 privs.h sigevent.h pqueue.h jhash.h zassert.h \
35 workqueue.h route_types.h libospf.h nexthop.h json.h \
36 ptm_lib.h csv.h bfd.h vrf.h ns.h systemd.h bitfield.h \
37 fifo.h memory_vty.h mpls.h imsg.h openbsd-queue.h openbsd-tree.h \
38 skiplist.h qobj.h
39
40 noinst_HEADERS = \
41 plist_int.h
42
43 EXTRA_DIST = \
44 regex.c regex-gnu.h \
45 queue.h \
46 route_types.pl route_types.txt \
47 gitversion.pl
48
49 route_types.h: $(srcdir)/route_types.txt $(srcdir)/route_types.pl
50 @PERL@ $(srcdir)/route_types.pl < $(srcdir)/route_types.txt > $@
51
52 if GIT_VERSION
53
54 # bit of a trick here to always have up-to-date git stamps without triggering
55 # unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always,
56 # but if we use that on gitversion.h it'll ripple through the .c file deps.
57 # (even if gitversion.h's file timestamp doesn't change, make will think it
58 # did, because of .PHONY...)
59
60 .PHONY: gitversion.h.tmp
61 .SILENT: gitversion.h gitversion.h.tmp
62 GITH=gitversion.h
63 gitversion.h.tmp: $(srcdir)/../.git
64 @PERL@ $(srcdir)/gitversion.pl $(srcdir) > ${GITH}.tmp
65 gitversion.h: gitversion.h.tmp
66 { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp -v ${GITH}.tmp ${GITH}
67
68 else
69 .PHONY: gitversion.h
70 gitversion.h:
71 true
72 endif