source: lib/Makefile.am

develop
Last change on this file was 977e0db, checked in by Jacob Van Walraven <jcv9@…>, 2 years ago

Add meta api for erf and pcapng meta packets

  • Property mode set to 100644
File size: 3.7 KB
RevLine 
[d8960164]1lib_LTLIBRARIES = libtrace.la
[cff1819]2include_HEADERS = libtrace.h libtrace_parallel.h
3pkginclude_HEADERS = dagformat.h lt_inttypes.h daglegacy.h \
[49969f2]4        rt_protocol.h erftypes.h pthread_spinlock.h \
[0f6bc3f]5        data-struct/ring_buffer.h data-struct/object_cache.h \
[c9ce7ab]6        data-struct/vector.h \
[0f6bc3f]7        data-struct/deque.h data-struct/linked_list.h \
[9d29d1e]8        data-struct/buckets.h data-struct/sliding_window.h \
[df87f00]9        data-struct/message_queue.h hash_toeplitz.h \
10        data-struct/simple_circular_buffer.h
[df6ae1f]11
[1668208]12AM_CFLAGS=@LIBCFLAGS@ @CFLAG_VISIBILITY@ -pthread -std=gnu99
13AM_CXXFLAGS=@LIBCXXFLAGS@ @CFLAG_VISIBILITY@ -pthread -std=gnu99
[f1ab057]14
[3b8a5ef]15extra_DIST = format_template.c
[6cf3ca0]16NATIVEFORMATS=format_linux_common.c format_linux_ring.c format_linux_int.c format_linux_common.h
[755e794]17BPFFORMATS=format_bpf.c
18
[5e85c23]19if HAVE_DAG
20if DAG2_4
21DAGSOURCE=format_dag24.c
22else
23DAGSOURCE=format_dag25.c
24endif
25else
26DAGSOURCE=
27endif
[e5dedd5]28EXTRA_DIST=format_dag24.c format_dag25.c dpdk_libtrace.mk
[5e85c23]29
[d48008d]30if HAVE_LLVM
[3fc3267]31BPFJITSOURCE=bpf-jit/bpf-jit.cc
[d48008d]32else
33BPFJITSOURCE=
34endif
35
[c04929c]36if HAVE_DPDK
[dab79f2]37NATIVEFORMATS+= format_dpdk.c format_dpdkndag.c format_dpdk.h
[c04929c]38# So we also make libtrace.mk in dpdk otherwise automake tries to expand
[771ab22]39# it too early which I cannot seem to stop unless we use a path that
[c04929c]40# doesn't exist currently
41export RTE_SDK=@RTE_SDK@
42export RTE_TARGET=@RTE_TARGET@
[354e54a]43export SAVED_CFLAGS:=$(CFLAGS)
44export SAVED_CXXFLAGS:=$(CXXFLAGS)
[5964f52]45export SAVED_CPPFLAGS:=$(CPPFLAGS)
46export SAVED_LDFLAGS:=$(LDFLAGS)
[c04929c]47include $(RTE_SDK)/mk/rte.vars.mk
48# We need to add -Wl before the linker otherwise this breaks our build
[2138553]49# And include any libraries that DPDK might depend upon
50export DPDK_LIBTRACE_MK=dpdk_libtrace.mk
51include $(DPDK_LIBTRACE_MK)
[354e54a]52export CFLAGS += $(SAVED_CFLAGS)
53export CXXFLAGS += $(SAVED_CXXFLAGS)
[5964f52]54export CPPFLAGS:=$(SAVED_CPPFLAGS)
55export LDFLAGS += $(SAVED_LDFLAGS)
[c04929c]56endif
[d48008d]57
[b663d33]58if HAVE_WANDDER
59ETSISOURCES=format_etsilive.c
60else
61ETSISOURCES=
62endif
63
[29bbef0]64libtrace_la_SOURCES = trace.c trace_parallel.c common.h \
[977e0db]65                format_pktmeta.c format_erf.c format_pcap.c format_legacy.c \
[8bf0517]66                format_rt.c format_helper.c format_helper.h format_pcapfile.c \
[e01a738]67                format_duck.c format_tsh.c $(NATIVEFORMATS) $(BPFFORMATS) \
[b663d33]68                format_atmhdr.c format_pcapng.c \
[8b49230]69                libtrace_int.h lt_inttypes.h lt_bswap.h \
70                linktypes.c link_wireless.c byteswap.c \
[c909fad]71                checksum.c checksum.h \
[a81d2fc]72                protocols_pktmeta.c protocols_l2.c protocols_l3.c \
[8753bb8]73                protocols_transport.c protocols.h protocols_ospf.c \
[3fc3267]74                protocols_application.c \
[ea75ec2]75                $(DAGSOURCE) format_erf.h format_ndag.c format_ndag.h \
[b663d33]76                $(BPFJITSOURCE) $(ETSISOURCES) \
[29bbef0]77                libtrace_arphrd.h \
[cb39d35]78                data-struct/ring_buffer.c data-struct/vector.c \
79                data-struct/message_queue.c data-struct/deque.c \
80                data-struct/sliding_window.c data-struct/object_cache.c \
81                data-struct/linked_list.c hash_toeplitz.c combiner_ordered.c \
[df87f00]82                data-struct/buckets.c data-struct/simple_circular_buffer.c \
[c63bcdf]83                combiner_sorted.c combiner_unordered.c \
[823d8e1]84                pthread_spinlock.c pthread_spinlock.h \
85                strndup.c
[8bf0517]86
[df6ae1f]87if DAG2_4
[f6879f3]88nodist_libtrace_la_SOURCES = dagopts.c dagapi.c
[df6ae1f]89endif
90
[3a333e2]91AM_CPPFLAGS= @ADD_INCLS@
[2138553]92libtrace_la_LIBADD = @LIBTRACE_LIBS@ @LTLIBOBJS@ $(DPDKLIBS)
[e5f1431]93libtrace_la_LDFLAGS=-version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ @ADD_LDFLAGS@
[9daf398]94dagapi.c:
95        cp @DAG_TOOLS_DIR@/dagapi.c .
[df6ae1f]96
[9daf398]97dagopts.c:
98        cp @DAG_TOOLS_DIR@/dagopts.c .
[d48008d]99
100if HAVE_LLVM
101# Rules to build the llvm .cc file from a C description of each opcode.
102bpf-jit/bpf-opcodes.llvm.bc: bpf-jit/bpf-opcodes.c
[7b29593]103        $(LLVM_GCC) -std=c99 -c -O0 -emit-llvm $< -o $@
[d48008d]104
105bpf-jit/bpf-opcodes.llvm.cc: bpf-jit/bpf-opcodes.llvm.bc
[270fb67]106        `$(LLVM_CONFIG) --bindir`/llc -march=cpp -cppgen=module $< -o $@
[d48008d]107
108bpf-jit/bpf-jit.cc: bpf-jit/bpf-opcodes.llvm.cc
109
110EXTRA_DIST+=bpf-jit/bpf-opcodes.c
111BUILT_SOURCES=bpf-jit/bpf-opcodes.llvm.cc
112endif
113CLEANFILES=bpf-jit/bpf-opcodes.llvm.cc bpf-jit/bpf-opcodes.llvm.bc
Note: See TracBrowser for help on using the repository browser.