source: lib/Makefile.am @ 10553bf

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 10553bf was 0f6bc3f, checked in by Shane Alcock <salcock@…>, 6 years ago

Make sure all new header files are distributed

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