paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in. |
| 2 | |
David Lamparter | 237aac5 | 2014-06-28 22:23:10 +0200 | [diff] [blame] | 3 | AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib |
David Lamparter | c0bedeb | 2015-03-03 10:00:43 +0100 | [diff] [blame] | 4 | AM_CFLAGS = $(WERROR) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5 | DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" |
| 6 | |
gdt | 87efd64 | 2004-06-30 17:36:11 +0000 | [diff] [blame] | 7 | lib_LTLIBRARIES = libzebra.la |
Paul Jakma | cec0c4f | 2006-03-30 13:58:05 +0000 | [diff] [blame] | 8 | libzebra_la_LDFLAGS = -version-info 0:0:0 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 9 | |
gdt | 87efd64 | 2004-06-30 17:36:11 +0000 | [diff] [blame] | 10 | libzebra_la_SOURCES = \ |
hasso | 6590f2c | 2004-10-19 20:40:08 +0000 | [diff] [blame] | 11 | network.c pid_output.c getopt.c getopt1.c daemon.c \ |
| 12 | checksum.c vector.c linklist.c vty.c command.c \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 \ |
Vincent Bernat | d6be5fb | 2012-05-24 09:44:43 +0200 | [diff] [blame] | 15 | zclient.c sockopt.c smux.c agentx.c snmp.c md5.c if_rmap.c keychain.c privs.c \ |
Christian Franke | 00667ce | 2016-05-03 19:59:42 +0200 | [diff] [blame] | 16 | sigevent.c pqueue.c jhash.c memtypes.c workqueue.c vrf.c event_counter.c |
paul | 2fd2fd5 | 2005-04-15 11:47:15 +0000 | [diff] [blame] | 17 | |
David Lamparter | 0be793e | 2012-11-27 01:34:56 +0000 | [diff] [blame] | 18 | BUILT_SOURCES = memtypes.h route_types.h gitversion.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 19 | |
gdt | 87efd64 | 2004-06-30 17:36:11 +0000 | [diff] [blame] | 20 | libzebra_la_DEPENDENCIES = @LIB_REGEX@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 21 | |
David Lamparter | 8df5597 | 2013-03-01 12:03:58 +0100 | [diff] [blame] | 22 | libzebra_la_LIBADD = @LIB_REGEX@ @LIBCAP@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 23 | |
gdt | af27365 | 2003-12-08 18:12:34 +0000 | [diff] [blame] | 24 | pkginclude_HEADERS = \ |
paul | 34204aa | 2005-11-03 09:00:23 +0000 | [diff] [blame] | 25 | buffer.h checksum.h command.h filter.h getopt.h hash.h \ |
| 26 | if.h linklist.h log.h \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 27 | memory.h network.h prefix.h routemap.h distribute.h sockunion.h \ |
| 28 | str.h stream.h table.h thread.h vector.h version.h vty.h zebra.h \ |
vincent | c1a03d4 | 2005-09-28 15:47:44 +0000 | [diff] [blame] | 29 | plist.h zclient.h sockopt.h smux.h md5.h if_rmap.h keychain.h \ |
paul | 354d119 | 2005-04-25 16:26:42 +0000 | [diff] [blame] | 30 | privs.h sigevent.h pqueue.h jhash.h zassert.h memtypes.h \ |
Christian Franke | 00667ce | 2016-05-03 19:59:42 +0200 | [diff] [blame] | 31 | workqueue.h route_types.h libospf.h vrf.h fifo.h event_counter.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 32 | |
David Lamparter | e66cbd1 | 2015-04-13 10:21:34 +0200 | [diff] [blame] | 33 | noinst_HEADERS = \ |
| 34 | plist_int.h |
| 35 | |
David Lamparter | 4209a88 | 2012-12-13 10:59:00 +0100 | [diff] [blame] | 36 | EXTRA_DIST = \ |
| 37 | regex.c regex-gnu.h \ |
| 38 | queue.h \ |
| 39 | memtypes.awk \ |
| 40 | route_types.pl route_types.txt \ |
| 41 | gitversion.pl |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 42 | |
paul | ab59ae3 | 2005-04-25 13:52:26 +0000 | [diff] [blame] | 43 | memtypes.h: $(srcdir)/memtypes.c $(srcdir)/memtypes.awk |
Paul Jakma | 9c42a6e | 2006-06-27 07:52:03 +0000 | [diff] [blame] | 44 | ($(GAWK) -f $(srcdir)/memtypes.awk $(srcdir)/memtypes.c > $@) |
| 45 | |
David Lamparter | e0ca5fd | 2009-09-16 01:52:42 +0200 | [diff] [blame] | 46 | route_types.h: $(srcdir)/route_types.txt $(srcdir)/route_types.pl |
| 47 | @PERL@ $(srcdir)/route_types.pl < $(srcdir)/route_types.txt > $@ |
David Lamparter | 0be793e | 2012-11-27 01:34:56 +0000 | [diff] [blame] | 48 | |
| 49 | if GIT_VERSION |
| 50 | |
| 51 | # bit of a trick here to always have up-to-date git stamps without triggering |
| 52 | # unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always, |
| 53 | # but if we use that on gitversion.h it'll ripple through the .c file deps. |
| 54 | # (even if gitversion.h's file timestamp doesn't change, make will think it |
| 55 | # did, because of .PHONY...) |
| 56 | |
| 57 | .PHONY: gitversion.h.tmp |
| 58 | .SILENT: gitversion.h gitversion.h.tmp |
| 59 | GITH=gitversion.h |
| 60 | gitversion.h.tmp: $(srcdir)/../.git |
| 61 | @PERL@ $(srcdir)/gitversion.pl $(srcdir) > ${GITH}.tmp |
| 62 | gitversion.h: gitversion.h.tmp |
| 63 | { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp -v ${GITH}.tmp ${GITH} |
| 64 | |
| 65 | else |
| 66 | .PHONY: gitversion.h |
| 67 | gitversion.h: |
Hasso Tepper | 61be0ee | 2012-12-14 14:58:32 +0200 | [diff] [blame] | 68 | true |
David Lamparter | 0be793e | 2012-11-27 01:34:56 +0000 | [diff] [blame] | 69 | endif |