source: lib/Makefile.am @ 8b49230

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 8b49230 was 8b49230, checked in by Shane Alcock <salcock@…>, 8 years ago

Fixed problems with decoding RadioTap? headers with libpacketdump on big endian
hosts

  • Moved byteswapX functions to a separate source file so that libpacketdump can also link against them.
  • bswap_* macros have been moved into lt_bswap.h so they can be used without having to include the entire libtrace_int.h header
  • Fixed endianness issues with the "fields" inside the RadioTap? header.
  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[d8960164]1lib_LTLIBRARIES = libtrace.la
[528eb6e]2include_HEADERS = libtrace.h dagformat.h lt_inttypes.h daglegacy.h rt_protocol.h erftypes.h 
[df6ae1f]3
[f1ab057]4AM_CFLAGS=@LIBCFLAGS@
[d48008d]5AM_CXXFLAGS=@LIBCXXFLAGS@
[f1ab057]6
[3b8a5ef]7extra_DIST = format_template.c
[8bf0517]8NATIVEFORMATS=format_linux.c
[755e794]9BPFFORMATS=format_bpf.c
10
[5e85c23]11if HAVE_DAG
12if DAG2_4
13DAGSOURCE=format_dag24.c
14else
15DAGSOURCE=format_dag25.c
16endif
17else
18DAGSOURCE=
19endif
20EXTRA_DIST=format_dag24.c format_dag25.c
21
[d48008d]22if HAVE_LLVM
23BPFJITSOURCE=bpf-jit/bpf-jit.cc
24else
25BPFJITSOURCE=
26endif
27
[c04929c]28if HAVE_DPDK
29NATIVEFORMATS+= format_dpdk.c
30# So we also make libtrace.mk in dpdk otherwise automake tries to expand
31# it to early which I cannot seem to stop unless we use a path that
32# doesn't exist currently
33export RTE_SDK=@RTE_SDK@
34export RTE_TARGET=@RTE_TARGET@
35include $(RTE_SDK)/mk/rte.vars.mk
36# We need to add -Wl before the linker otherwise this breaks our build
37# This is added in with our make script patch to the DPDK library
38include $(RTE_SDK)/mk/libtrace.mk
39endif
[d48008d]40
[c66068d]41libtrace_la_SOURCES = trace.c common.h \
[a5908d2]42                format_erf.c format_pcap.c format_legacy.c \
[8bf0517]43                format_rt.c format_helper.c format_helper.h format_pcapfile.c \
[e01a738]44                format_duck.c format_tsh.c $(NATIVEFORMATS) $(BPFFORMATS) \
[e1fdc05]45                format_atmhdr.c \
[8b49230]46                libtrace_int.h lt_inttypes.h lt_bswap.h \
47                linktypes.c link_wireless.c byteswap.c \
[c909fad]48                checksum.c checksum.h \
[a81d2fc]49                protocols_pktmeta.c protocols_l2.c protocols_l3.c \
[8753bb8]50                protocols_transport.c protocols.h protocols_ospf.c \
[c66068d]51                $(DAGSOURCE) format_erf.h \
[d48008d]52                $(BPFJITSOURCE) \
[528eb6e]53                libtrace_arphrd.h
[8bf0517]54
[df6ae1f]55if DAG2_4
[f6879f3]56nodist_libtrace_la_SOURCES = dagopts.c dagapi.c
[df6ae1f]57endif
58
[60f3c4c]59INCLUDES= @ADD_INCLS@ -I../libwandio
[9589941]60libtrace_la_LIBADD = @LIBTRACE_LIBS@ @LTLIBOBJS@
[e5f1431]61libtrace_la_LDFLAGS=-version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ @ADD_LDFLAGS@
[3937eae]62
[9daf398]63dagapi.c:
64        cp @DAG_TOOLS_DIR@/dagapi.c .
[df6ae1f]65
[9daf398]66dagopts.c:
67        cp @DAG_TOOLS_DIR@/dagopts.c .
[d48008d]68
69if HAVE_LLVM
70# Rules to build the llvm .cc file from a C description of each opcode.
71bpf-jit/bpf-opcodes.llvm.bc: bpf-jit/bpf-opcodes.c
[7b29593]72        $(LLVM_GCC) -std=c99 -c -O0 -emit-llvm $< -o $@
[d48008d]73
74bpf-jit/bpf-opcodes.llvm.cc: bpf-jit/bpf-opcodes.llvm.bc
[270fb67]75        `$(LLVM_CONFIG) --bindir`/llc -march=cpp -cppgen=module $< -o $@
[d48008d]76
77bpf-jit/bpf-jit.cc: bpf-jit/bpf-opcodes.llvm.cc
78
79EXTRA_DIST+=bpf-jit/bpf-opcodes.c
80BUILT_SOURCES=bpf-jit/bpf-opcodes.llvm.cc
81endif
82CLEANFILES=bpf-jit/bpf-opcodes.llvm.cc bpf-jit/bpf-opcodes.llvm.bc
Note: See TracBrowser for help on using the repository browser.