]> git.proxmox.com Git - mirror_frr.git/blob - lib/Makefile.am
lib, zebra: move "struct vrf" to be a lib module
[mirror_frr.git] / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2
3 INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
4 AM_CFLAGS = $(WERROR)
5 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
6
7 lib_LTLIBRARIES = libzebra.la
8 libzebra_la_LDFLAGS = -version-info 0:0:0
9
10 libzebra_la_SOURCES = \
11 network.c pid_output.c getopt.c getopt1.c daemon.c \
12 checksum.c vector.c linklist.c vty.c command.c \
13 sockunion.c prefix.c thread.c if.c memory.c buffer.c table.c hash.c \
14 filter.c routemap.c distribute.c stream.c str.c log.c plist.c \
15 zclient.c sockopt.c smux.c agentx.c snmp.c md5.c if_rmap.c keychain.c privs.c \
16 sigevent.c pqueue.c jhash.c memtypes.c workqueue.c nexthop.c json.c \
17 ptm_lib.c csv.c bfd.c vrf.c
18
19 BUILT_SOURCES = memtypes.h route_types.h gitversion.h
20
21 libzebra_la_DEPENDENCIES = @LIB_REGEX@
22
23 libzebra_la_LIBADD = @LIB_REGEX@ @LIBCAP@
24
25 pkginclude_HEADERS = \
26 buffer.h checksum.h command.h filter.h getopt.h hash.h \
27 if.h linklist.h log.h \
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 \
30 plist.h zclient.h sockopt.h smux.h md5.h if_rmap.h keychain.h \
31 privs.h sigevent.h pqueue.h jhash.h zassert.h memtypes.h \
32 workqueue.h route_types.h libospf.h nexthop.h json.h \
33 ptm_lib.h csv.h bfd.h vrf.h
34
35 EXTRA_DIST = \
36 regex.c regex-gnu.h \
37 queue.h \
38 memtypes.awk \
39 route_types.pl route_types.txt \
40 gitversion.pl
41
42 memtypes.h: $(srcdir)/memtypes.c $(srcdir)/memtypes.awk
43 ($(GAWK) -f $(srcdir)/memtypes.awk $(srcdir)/memtypes.c > $@)
44
45 route_types.h: $(srcdir)/route_types.txt $(srcdir)/route_types.pl
46 @PERL@ $(srcdir)/route_types.pl < $(srcdir)/route_types.txt > $@
47
48 if GIT_VERSION
49
50 # bit of a trick here to always have up-to-date git stamps without triggering
51 # unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always,
52 # but if we use that on gitversion.h it'll ripple through the .c file deps.
53 # (even if gitversion.h's file timestamp doesn't change, make will think it
54 # did, because of .PHONY...)
55
56 .PHONY: gitversion.h.tmp
57 .SILENT: gitversion.h gitversion.h.tmp
58 GITH=gitversion.h
59 gitversion.h.tmp: $(srcdir)/../.git
60 @PERL@ $(srcdir)/gitversion.pl $(srcdir) > ${GITH}.tmp
61 gitversion.h: gitversion.h.tmp
62 { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp -v ${GITH}.tmp ${GITH}
63
64 else
65 .PHONY: gitversion.h
66 gitversion.h:
67 true
68 endif