source: lib/Makefile.am @ df87f00

cachetimestampsdevelopetsiliverc-4.0.4ringdecrementfixringperformance
Last change on this file since df87f00 was df87f00, checked in by Shane Alcock <salcock@…>, 3 years ago

First bits of code for an ETSI live format

Will probably remove the dependencies on the ASN.1 stuff
soon, but chucking it all in for now just so everything will
compile nicely.

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