source: lib/Makefile.am @ 1935565

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 1935565 was 60f3c4c, checked in by Shane Alcock <salcock@…>, 9 years ago
  • Shifted wandio into a separate library, seeing as we're going to be exporting the API now
  • 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
8if HAVE_NETPACKET_PACKET_H
9NATIVEFORMATS=format_linux.c
10else
11NATIVEFORMATS=
12endif
13
14if HAVE_BPF_CAPTURE
15BPFFORMATS=format_bpf.c
16else
17BPFFORMATS=
18endif
19
20if HAVE_DAG
21if DAG2_4
22DAGSOURCE=format_dag24.c
23else
24DAGSOURCE=format_dag25.c
25endif
26else
27DAGSOURCE=
28endif
29EXTRA_DIST=format_dag24.c format_dag25.c
30
31if HAVE_LLVM
32BPFJITSOURCE=bpf-jit/bpf-jit.cc
33else
34BPFJITSOURCE=
35endif
36
37
38libtrace_la_SOURCES = trace.c common.h \
39                format_erf.c format_pcap.c format_legacy.c \
40                format_rt.c format_helper.c format_helper.h format_pcapfile.c \
41                format_duck.c format_tsh.c $(NATIVEFORMATS) $(BPFFORMATS) \
42                format_atmhdr.c \
43                libtrace_int.h lt_inttypes.h \
44                linktypes.c link_wireless.c \
45                protocols_pktmeta.c protocols_l2.c protocols_l3.c \
46                protocols_transport.c protocols.h protocols_ospf.c \
47                $(DAGSOURCE) format_erf.h \
48                $(BPFJITSOURCE) \
49                arphrd.h
50
51if DAG2_4
52nodist_libtrace_la_SOURCES = dagopts.c dagapi.c
53endif
54
55INCLUDES= @ADD_INCLS@ -I../libwandio
56libtrace_la_LIBADD = @LIBTRACE_LIBS@ @LTLIBOBJS@
57libtrace_la_LDFLAGS=-version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ @ADD_LDFLAGS@
58
59dagapi.c:
60        cp @DAG_TOOLS_DIR@/dagapi.c .
61
62dagopts.c:
63        cp @DAG_TOOLS_DIR@/dagopts.c .
64
65if HAVE_LLVM
66# Rules to build the llvm .cc file from a C description of each opcode.
67bpf-jit/bpf-opcodes.llvm.bc: bpf-jit/bpf-opcodes.c
68        $(LLVM_GCC) -std=c99 -c -O0 -emit-llvm $< -o $@
69
70bpf-jit/bpf-opcodes.llvm.cc: bpf-jit/bpf-opcodes.llvm.bc
71        `$(LLVM_CONFIG) --bindir`/llc -march=cpp -cppgen=module $< -o $@
72
73bpf-jit/bpf-jit.cc: bpf-jit/bpf-opcodes.llvm.cc
74
75EXTRA_DIST+=bpf-jit/bpf-opcodes.c
76BUILT_SOURCES=bpf-jit/bpf-opcodes.llvm.cc
77endif
78CLEANFILES=bpf-jit/bpf-opcodes.llvm.cc bpf-jit/bpf-opcodes.llvm.bc
Note: See TracBrowser for help on using the repository browser.