source: lib/Makefile.am @ 0989e3e

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 0989e3e was c909fad, checked in by Shane Alcock <salcock@…>, 9 years ago
  • Added checksumming functions for both the IP and transport layer. The functions will calculate the correct checksum for that packet and also return a pointer to the checksum field in the appropriate header so that the caller can either evaluate whether the checksum is correct, replace the existing checksum, or do whatever they want.
  • Also managed to fix a bunch of broken Revision svn tags
  • Property mode set to 100644
File size: 1.8 KB
Line 
1lib_LTLIBRARIES = libtrace.la
2include_HEADERS = libtrace.h dagformat.h lt_inttypes.h daglegacy.h rt_protocol.h erftypes.h 
3
4AM_CFLAGS=@LIBCFLAGS@
5AM_CXXFLAGS=@LIBCXXFLAGS@
6
7extra_DIST = format_template.c
8NATIVEFORMATS=format_linux.c
9BPFFORMATS=format_bpf.c
10
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
22if HAVE_LLVM
23BPFJITSOURCE=bpf-jit/bpf-jit.cc
24else
25BPFJITSOURCE=
26endif
27
28
29libtrace_la_SOURCES = trace.c common.h \
30                format_erf.c format_pcap.c format_legacy.c \
31                format_rt.c format_helper.c format_helper.h format_pcapfile.c \
32                format_duck.c format_tsh.c $(NATIVEFORMATS) $(BPFFORMATS) \
33                format_atmhdr.c \
34                libtrace_int.h lt_inttypes.h \
35                linktypes.c link_wireless.c \
36                checksum.c checksum.h \
37                protocols_pktmeta.c protocols_l2.c protocols_l3.c \
38                protocols_transport.c protocols.h protocols_ospf.c \
39                $(DAGSOURCE) format_erf.h \
40                $(BPFJITSOURCE) \
41                libtrace_arphrd.h
42
43if DAG2_4
44nodist_libtrace_la_SOURCES = dagopts.c dagapi.c
45endif
46
47INCLUDES= @ADD_INCLS@ -I../libwandio
48libtrace_la_LIBADD = @LIBTRACE_LIBS@ @LTLIBOBJS@
49libtrace_la_LDFLAGS=-version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ @ADD_LDFLAGS@
50
51dagapi.c:
52        cp @DAG_TOOLS_DIR@/dagapi.c .
53
54dagopts.c:
55        cp @DAG_TOOLS_DIR@/dagopts.c .
56
57if HAVE_LLVM
58# Rules to build the llvm .cc file from a C description of each opcode.
59bpf-jit/bpf-opcodes.llvm.bc: bpf-jit/bpf-opcodes.c
60        $(LLVM_GCC) -std=c99 -c -O0 -emit-llvm $< -o $@
61
62bpf-jit/bpf-opcodes.llvm.cc: bpf-jit/bpf-opcodes.llvm.bc
63        `$(LLVM_CONFIG) --bindir`/llc -march=cpp -cppgen=module $< -o $@
64
65bpf-jit/bpf-jit.cc: bpf-jit/bpf-opcodes.llvm.cc
66
67EXTRA_DIST+=bpf-jit/bpf-opcodes.c
68BUILT_SOURCES=bpf-jit/bpf-opcodes.llvm.cc
69endif
70CLEANFILES=bpf-jit/bpf-opcodes.llvm.cc bpf-jit/bpf-opcodes.llvm.bc
Note: See TracBrowser for help on using the repository browser.