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