]>
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)/\" |
bbf5ffa0 | 6 | AM_YFLAGS = -d |
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 | |
12 | ||
87efd646 | 13 | lib_LTLIBRARIES = libzebra.la |
cec0c4fb | 14 | libzebra_la_LDFLAGS = -version-info 0:0:0 |
718e3744 | 15 | |
87efd646 | 16 | libzebra_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 \ |
d6be5fb9 | 23 | zclient.c sockopt.c smux.c agentx.c snmp.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 \ |
cdeef0bd | 27 | qobj.c \ |
c5d9d3bb DL |
28 | event_counter.c \ |
29 | strlcpy.c \ | |
30 | strlcat.c | |
2fd2fd5d | 31 | |
0276dd5d | 32 | BUILT_SOURCES = route_types.h gitversion.h command_parse.h command_lex.h |
718e3744 | 33 | |
24f5e2fc | 34 | libzebra_la_LIBADD = @LIBCAP@ |
718e3744 | 35 | |
af273652 | 36 | pkginclude_HEADERS = \ |
bbf5ffa0 | 37 | buffer.h checksum.h filter.h getopt.h hash.h \ |
34204aac | 38 | if.h linklist.h log.h \ |
d0bfb22c | 39 | graph.h command_match.h \ |
bbf5ffa0 | 40 | command.h \ |
718e3744 | 41 | memory.h network.h prefix.h routemap.h distribute.h sockunion.h \ |
c5d9d3bb | 42 | stream.h table.h thread.h vector.h version.h vty.h zebra.h \ |
c1a03d47 | 43 | plist.h zclient.h sockopt.h smux.h md5.h if_rmap.h keychain.h \ |
4a1ab8e4 | 44 | privs.h sigevent.h pqueue.h jhash.h zassert.h \ |
c43ed2e4 | 45 | workqueue.h route_types.h libospf.h nexthop.h json.h \ |
ea863ec6 | 46 | ptm_lib.h csv.h bfd.h vrf.h ns.h systemd.h bitfield.h \ |
520d2512 | 47 | fifo.h memory_vty.h mpls.h imsg.h openbsd-queue.h openbsd-tree.h \ |
cdeef0bd CF |
48 | skiplist.h qobj.h \ |
49 | event_counter.h | |
718e3744 | 50 | |
a38401b6 DL |
51 | noinst_HEADERS = \ |
52 | plist_int.h | |
53 | ||
fa133e00 DL |
54 | noinst_PROGRAMS = grammar_sandbox |
55 | ||
56 | grammar_sandbox_SOURCES = grammar_sandbox.c | |
57 | grammar_sandbox_LDADD = libzebra.la | |
58 | ||
4209a887 | 59 | EXTRA_DIST = \ |
4209a887 | 60 | queue.h \ |
0276dd5d | 61 | command_lex.h \ |
4209a887 DL |
62 | route_types.pl route_types.txt \ |
63 | gitversion.pl | |
718e3744 | 64 | |
e0ca5fde DL |
65 | route_types.h: $(srcdir)/route_types.txt $(srcdir)/route_types.pl |
66 | @PERL@ $(srcdir)/route_types.pl < $(srcdir)/route_types.txt > $@ | |
0be793e6 DL |
67 | |
68 | if GIT_VERSION | |
69 | ||
70 | # bit of a trick here to always have up-to-date git stamps without triggering | |
71 | # unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always, | |
72 | # but if we use that on gitversion.h it'll ripple through the .c file deps. | |
73 | # (even if gitversion.h's file timestamp doesn't change, make will think it | |
74 | # did, because of .PHONY...) | |
75 | ||
76 | .PHONY: gitversion.h.tmp | |
77 | .SILENT: gitversion.h gitversion.h.tmp | |
78 | GITH=gitversion.h | |
79 | gitversion.h.tmp: $(srcdir)/../.git | |
80 | @PERL@ $(srcdir)/gitversion.pl $(srcdir) > ${GITH}.tmp | |
81 | gitversion.h: gitversion.h.tmp | |
82 | { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp -v ${GITH}.tmp ${GITH} | |
83 | ||
84 | else | |
85 | .PHONY: gitversion.h | |
86 | gitversion.h: | |
61be0ee8 | 87 | true |
0be793e6 | 88 | endif |