source: lib/Makefile.am @ 528eb6e

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 528eb6e was 528eb6e, checked in by Shane Alcock <salcock@…>, 9 years ago
  • A very cut-down version of int: and ring: is now built on non-Linux systems, enabling them to be able to decode packets captured using those formats and exported via RT
  • Replaced arphrd.h with a new header file (libtrace_arphrd.h) that provides our own #defines for the various ARPHRD types. The inconsistency between what is available on different OS's was becoming problematic.
  • Increased RT buffer size so we can always fit a complete libtrace buffer into it - int: over RT tends to result in very large "packets".
  • Fixed copy-paste error in the failure case when creating a dummy linux trace in format_rt.c
  • Updated various bits of code to use the new LIBTRACE_ARPHRD types where sensible
  • Removed unneeded #include in protocols_pktmeta.c
  • Replaced u32 and u16 types in format_linux with more portable uint32_t and uint16_t types
  • Removed unneeded calls to linuxnative_init_input in the prepare_packet functions in format_linux.c
  • Don't call the fin_input function on a trace if the format does not provide one
  • 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
9
10if HAVE_BPF_CAPTURE
11BPFFORMATS=format_bpf.c
12else
13BPFFORMATS=
14endif
15
16if HAVE_DAG
17if DAG2_4
18DAGSOURCE=format_dag24.c
19else
20DAGSOURCE=format_dag25.c
21endif
22else
23DAGSOURCE=
24endif
25EXTRA_DIST=format_dag24.c format_dag25.c
26
27if HAVE_LLVM
28BPFJITSOURCE=bpf-jit/bpf-jit.cc
29else
30BPFJITSOURCE=
31endif
32
33
34libtrace_la_SOURCES = trace.c common.h \
35                format_erf.c format_pcap.c format_legacy.c \
36                format_rt.c format_helper.c format_helper.h format_pcapfile.c \
37                format_duck.c format_tsh.c $(NATIVEFORMATS) $(BPFFORMATS) \
38                format_atmhdr.c \
39                libtrace_int.h lt_inttypes.h \
40                linktypes.c link_wireless.c \
41                protocols_pktmeta.c protocols_l2.c protocols_l3.c \
42                protocols_transport.c protocols.h protocols_ospf.c \
43                $(DAGSOURCE) format_erf.h \
44                $(BPFJITSOURCE) \
45                libtrace_arphrd.h
46
47if DAG2_4
48nodist_libtrace_la_SOURCES = dagopts.c dagapi.c
49endif
50
51INCLUDES= @ADD_INCLS@ -I../libwandio
52libtrace_la_LIBADD = @LIBTRACE_LIBS@ @LTLIBOBJS@
53libtrace_la_LDFLAGS=-version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ @ADD_LDFLAGS@
54
55dagapi.c:
56        cp @DAG_TOOLS_DIR@/dagapi.c .
57
58dagopts.c:
59        cp @DAG_TOOLS_DIR@/dagopts.c .
60
61if HAVE_LLVM
62# Rules to build the llvm .cc file from a C description of each opcode.
63bpf-jit/bpf-opcodes.llvm.bc: bpf-jit/bpf-opcodes.c
64        $(LLVM_GCC) -std=c99 -c -O0 -emit-llvm $< -o $@
65
66bpf-jit/bpf-opcodes.llvm.cc: bpf-jit/bpf-opcodes.llvm.bc
67        `$(LLVM_CONFIG) --bindir`/llc -march=cpp -cppgen=module $< -o $@
68
69bpf-jit/bpf-jit.cc: bpf-jit/bpf-opcodes.llvm.cc
70
71EXTRA_DIST+=bpf-jit/bpf-opcodes.c
72BUILT_SOURCES=bpf-jit/bpf-opcodes.llvm.cc
73endif
74CLEANFILES=bpf-jit/bpf-opcodes.llvm.cc bpf-jit/bpf-opcodes.llvm.bc
Note: See TracBrowser for help on using the repository browser.