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