]>
Commit | Line | Data |
---|---|---|
718e3744 | 1 | ## Process this file with automake to produce Makefile.in. |
2 | ||
9e8da292 | 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)/\" |
6 | ||
87efd646 | 7 | lib_LTLIBRARIES = libzebra.la |
cec0c4fb | 8 | libzebra_la_LDFLAGS = -version-info 0:0:0 |
718e3744 | 9 | |
87efd646 | 10 | libzebra_la_SOURCES = \ |
6590f2c3 | 11 | network.c pid_output.c getopt.c getopt1.c daemon.c \ |
12 | checksum.c vector.c linklist.c vty.c command.c \ | |
6ba26ad5 | 13 | sockunion.c prefix.c thread.c if.c buffer.c table.c hash.c \ |
718e3744 | 14 | filter.c routemap.c distribute.c stream.c str.c log.c plist.c \ |
d6be5fb9 | 15 | zclient.c sockopt.c smux.c agentx.c snmp.c md5.c if_rmap.c keychain.c privs.c \ |
c43ed2e4 | 16 | sigevent.c pqueue.c jhash.c memtypes.c workqueue.c nexthop.c json.c \ |
3b4cd783 | 17 | ptm_lib.c csv.c bfd.c vrf.c systemd.c ns.c memory.c memory_vty.c |
2fd2fd5d | 18 | |
0be793e6 | 19 | BUILT_SOURCES = memtypes.h route_types.h gitversion.h |
718e3744 | 20 | |
87efd646 | 21 | libzebra_la_DEPENDENCIES = @LIB_REGEX@ |
718e3744 | 22 | |
8df55970 | 23 | libzebra_la_LIBADD = @LIB_REGEX@ @LIBCAP@ |
718e3744 | 24 | |
af273652 | 25 | pkginclude_HEADERS = \ |
34204aac | 26 | buffer.h checksum.h command.h filter.h getopt.h hash.h \ |
27 | if.h linklist.h log.h \ | |
718e3744 | 28 | memory.h network.h prefix.h routemap.h distribute.h sockunion.h \ |
29 | str.h stream.h table.h thread.h vector.h version.h vty.h zebra.h \ | |
c1a03d47 | 30 | plist.h zclient.h sockopt.h smux.h md5.h if_rmap.h keychain.h \ |
354d119a | 31 | privs.h sigevent.h pqueue.h jhash.h zassert.h memtypes.h \ |
c43ed2e4 | 32 | workqueue.h route_types.h libospf.h nexthop.h json.h \ |
ea863ec6 | 33 | ptm_lib.h csv.h bfd.h vrf.h ns.h systemd.h bitfield.h \ |
6ba26ad5 | 34 | fifo.h memory_vty.h |
718e3744 | 35 | |
a38401b6 DL |
36 | noinst_HEADERS = \ |
37 | plist_int.h | |
38 | ||
4209a887 DL |
39 | EXTRA_DIST = \ |
40 | regex.c regex-gnu.h \ | |
41 | queue.h \ | |
fc7948fa | 42 | memtypes.pl \ |
4209a887 DL |
43 | route_types.pl route_types.txt \ |
44 | gitversion.pl | |
718e3744 | 45 | |
fc7948fa DL |
46 | memtypes.h: $(srcdir)/memtypes.c $(srcdir)/memtypes.pl |
47 | @PERL@ $(srcdir)/memtypes.pl < $(srcdir)/memtypes.c > $@ | |
9c42a6eb | 48 | |
e0ca5fde DL |
49 | route_types.h: $(srcdir)/route_types.txt $(srcdir)/route_types.pl |
50 | @PERL@ $(srcdir)/route_types.pl < $(srcdir)/route_types.txt > $@ | |
0be793e6 DL |
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: | |
61be0ee8 | 71 | true |
0be793e6 | 72 | endif |