source: lib/Makefile.am @ af27241

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since af27241 was a464de7, checked in by Shane Alcock <salcock@…>, 9 years ago
  • Linux machines will now be able to successfully decode traffic captured using bpf
  • 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                protocols_pktmeta.c protocols_l2.c protocols_l3.c \
37                protocols_transport.c protocols.h protocols_ospf.c \
38                $(DAGSOURCE) format_erf.h \
39                $(BPFJITSOURCE) \
40                libtrace_arphrd.h
41
42if DAG2_4
43nodist_libtrace_la_SOURCES = dagopts.c dagapi.c
44endif
45
46INCLUDES= @ADD_INCLS@ -I../libwandio
47libtrace_la_LIBADD = @LIBTRACE_LIBS@ @LTLIBOBJS@
48libtrace_la_LDFLAGS=-version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ @ADD_LDFLAGS@
49
50dagapi.c:
51        cp @DAG_TOOLS_DIR@/dagapi.c .
52
53dagopts.c:
54        cp @DAG_TOOLS_DIR@/dagopts.c .
55
56if HAVE_LLVM
57# Rules to build the llvm .cc file from a C description of each opcode.
58bpf-jit/bpf-opcodes.llvm.bc: bpf-jit/bpf-opcodes.c
59        $(LLVM_GCC) -std=c99 -c -O0 -emit-llvm $< -o $@
60
61bpf-jit/bpf-opcodes.llvm.cc: bpf-jit/bpf-opcodes.llvm.bc
62        `$(LLVM_CONFIG) --bindir`/llc -march=cpp -cppgen=module $< -o $@
63
64bpf-jit/bpf-jit.cc: bpf-jit/bpf-opcodes.llvm.cc
65
66EXTRA_DIST+=bpf-jit/bpf-opcodes.c
67BUILT_SOURCES=bpf-jit/bpf-opcodes.llvm.cc
68endif
69CLEANFILES=bpf-jit/bpf-opcodes.llvm.cc bpf-jit/bpf-opcodes.llvm.bc
Note: See TracBrowser for help on using the repository browser.