]> git.proxmox.com Git - mirror_frr.git/blame - lib/Makefile.am
zebra: add pseudowire manager
[mirror_frr.git] / lib / Makefile.am
CommitLineData
718e3744 1## Process this file with automake to produce Makefile.in.
2
a50b7ceb 3AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
aa9584c1 4AM_CFLAGS = $(WERROR)
718e3744 5DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
05dbb7df 6AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
718e3744 7
0276dd5d
DL
8command_lex.h: command_lex.c
9 @if test ! -f $@; then rm -f command_lex.c; else :; fi
10 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) command_lex.c; else :; fi
11command_parse.lo: command_lex.h
12
5986b66b 13lib_LTLIBRARIES = libfrr.la
55c72803 14libfrr_la_LDFLAGS = -version-info 0:0:0
718e3744 15
55c72803 16libfrr_la_SOURCES = \
24f5e2fc 17 network.c pid_output.c getopt.c getopt1.c \
bbf5ffa0 18 checksum.c vector.c linklist.c vty.c \
d0bfb22c 19 graph.c command_parse.y command_lex.l command_match.c \
bbf5ffa0 20 command.c \
6ba26ad5 21 sockunion.c prefix.c thread.c if.c buffer.c table.c hash.c \
c5d9d3bb 22 filter.c routemap.c distribute.c stream.c log.c plist.c \
46081234 23 zclient.c sockopt.c md5.c if_rmap.c keychain.c privs.c \
4a1ab8e4 24 sigevent.c pqueue.c jhash.c workqueue.c nexthop.c json.c \
eac6e3f0 25 ptm_lib.c csv.c bfd.c vrf.c systemd.c ns.c memory.c memory_vty.c \
1bf9f027 26 imsg-buffer.c imsg.c skiplist.c \
cbea8737 27 qobj.c wheel.c \
c5d9d3bb 28 event_counter.c \
af2567b6 29 grammar_sandbox.c \
0964ad9c 30 srcdest_table.c \
c1d0d21f 31 spf_backoff.c \
4f04a76b 32 libfrr.c \
c5d9d3bb 33 strlcpy.c \
30771d65
DL
34 strlcat.c \
35 module.c \
a5b38c5b 36 hook.c \
30771d65 37 # end
2fd2fd5d 38
0276dd5d 39BUILT_SOURCES = route_types.h gitversion.h command_parse.h command_lex.h
718e3744 40
55c72803 41libfrr_la_LIBADD = @LIBCAP@
718e3744 42
5986b66b
DL
43if SNMP
44lib_LTLIBRARIES += libfrrsnmp.la
45endif
46
46081234
DL
47libfrrsnmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
48libfrrsnmp_la_LDFLAGS = -version-info 0:0:0
49libfrrsnmp_la_LIBADD = libfrr.la $(SNMP_LIBS)
50libfrrsnmp_la_SOURCES = \
51 agentx.c \
52 smux.c \
53 snmp.c \
54 #end
55
af273652 56pkginclude_HEADERS = \
bbf5ffa0 57 buffer.h checksum.h filter.h getopt.h hash.h \
34204aac 58 if.h linklist.h log.h \
d0bfb22c 59 graph.h command_match.h \
bbf5ffa0 60 command.h \
718e3744 61 memory.h network.h prefix.h routemap.h distribute.h sockunion.h \
c5d9d3bb 62 stream.h table.h thread.h vector.h version.h vty.h zebra.h \
c1a03d47 63 plist.h zclient.h sockopt.h smux.h md5.h if_rmap.h keychain.h \
4a1ab8e4 64 privs.h sigevent.h pqueue.h jhash.h zassert.h \
c43ed2e4 65 workqueue.h route_types.h libospf.h nexthop.h json.h \
ea863ec6 66 ptm_lib.h csv.h bfd.h vrf.h ns.h systemd.h bitfield.h \
520d2512 67 fifo.h memory_vty.h mpls.h imsg.h openbsd-queue.h openbsd-tree.h \
cbea8737 68 skiplist.h qobj.h wheel.h \
7790a2d6 69 event_counter.h \
0964ad9c 70 monotime.h \
c1d0d21f 71 spf_backoff.h \
4f04a76b 72 srcdest_table.h \
30771d65 73 module.h \
a5b38c5b 74 hook.h \
4f04a76b 75 libfrr.h \
6da80de9 76 pw.h \
4f04a76b 77 # end
718e3744 78
a38401b6 79noinst_HEADERS = \
deaa50db
DL
80 plist_int.h \
81 log_int.h
a38401b6 82
fa133e00
DL
83noinst_PROGRAMS = grammar_sandbox
84
af2567b6 85grammar_sandbox_SOURCES = grammar_sandbox_main.c
7df2e1c3 86grammar_sandbox_LDADD = libfrr.la
fa133e00 87
4209a887 88EXTRA_DIST = \
4209a887 89 queue.h \
0276dd5d 90 command_lex.h \
4209a887
DL
91 route_types.pl route_types.txt \
92 gitversion.pl
718e3744 93
e0ca5fde
DL
94route_types.h: $(srcdir)/route_types.txt $(srcdir)/route_types.pl
95 @PERL@ $(srcdir)/route_types.pl < $(srcdir)/route_types.txt > $@
0be793e6
DL
96
97if GIT_VERSION
98
99# bit of a trick here to always have up-to-date git stamps without triggering
100# unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always,
101# but if we use that on gitversion.h it'll ripple through the .c file deps.
102# (even if gitversion.h's file timestamp doesn't change, make will think it
103# did, because of .PHONY...)
104
105.PHONY: gitversion.h.tmp
106.SILENT: gitversion.h gitversion.h.tmp
107GITH=gitversion.h
108gitversion.h.tmp: $(srcdir)/../.git
109 @PERL@ $(srcdir)/gitversion.pl $(srcdir) > ${GITH}.tmp
110gitversion.h: gitversion.h.tmp
111 { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp -v ${GITH}.tmp ${GITH}
112
113else
114.PHONY: gitversion.h
115gitversion.h:
61be0ee8 116 true
0be793e6 117endif