source: lib/Makefile.am @ 9589941

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 9589941 was 9589941, checked in by Shane Alcock <salcock@…>, 10 years ago
  • Separated the libraries to link against into 3 separate categories: one for libtrace itself, one for libpacketdump and one for the tools. This means that each component only links against libraries that are actually used by something within it, reducing dependencies and keeping our Debian maintainer happy.
  • Also fixed a similar issue where libpacketdump did not explicitly link against libtrace
  • Property mode set to 100644
File size: 2.2 KB
Line 
1lib_LTLIBRARIES = libtrace.la
2include_HEADERS = libtrace.h dagformat.h lt_inttypes.h daglegacy.h rt_protocol.h erftypes.h wandio.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_ZLIB
21LIBTRACEIO_ZLIB=ior-zlib.c iow-zlib.c
22else
23LIBTRACEIO_ZLIB=
24endif
25
26if HAVE_BZLIB
27LIBTRACEIO_BZLIB=ior-bzip.c iow-bzip.c
28else
29LIBTRACEIO_BZLIB=
30endif
31
32if HAVE_LZO
33LIBTRACEIO_LZO=iow-lzo.c
34else
35LIBTRACEIO_LZO=
36endif
37
38if HAVE_DAG
39if DAG2_4
40DAGSOURCE=format_dag24.c
41else
42DAGSOURCE=format_dag25.c
43endif
44else
45DAGSOURCE=
46endif
47EXTRA_DIST=format_dag24.c format_dag25.c
48
49if HAVE_LLVM
50BPFJITSOURCE=bpf-jit/bpf-jit.cc
51else
52BPFJITSOURCE=
53endif
54
55
56libtrace_la_SOURCES = trace.c common.h \
57                format_erf.c format_pcap.c format_legacy.c \
58                format_rt.c format_helper.c format_helper.h format_pcapfile.c \
59                format_duck.c format_tsh.c $(NATIVEFORMATS) $(BPFFORMATS) \
60                format_atmhdr.c \
61                libtrace_int.h lt_inttypes.h \
62                linktypes.c link_wireless.c \
63                protocols_pktmeta.c protocols_l2.c protocols_l3.c \
64                protocols_transport.c protocols.h \
65                $(DAGSOURCE) format_erf.h \
66                $(BPFJITSOURCE) \
67                $(LIBTRACEIO_ZLIB) $(LIBTRACEIO_BZLIB) $(LIBTRACEIO_LZO) \
68                ior-peek.c ior-stdio.c ior-thread.c \
69                iow-stdio.c iow-thread.c wandio.c \
70                wandio.h arphrd.h
71
72if DAG2_4
73nodist_libtrace_la_SOURCES = dagopts.c dagapi.c
74endif
75
76INCLUDES = @ADD_INCLS@
77libtrace_la_LIBADD = @LIBTRACE_LIBS@ @LTLIBOBJS@
78libtrace_la_LDFLAGS=-version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ @ADD_LDFLAGS@
79
80dagapi.c:
81        cp @DAG_TOOLS_DIR@/dagapi.c .
82
83dagopts.c:
84        cp @DAG_TOOLS_DIR@/dagopts.c .
85
86if HAVE_LLVM
87# Rules to build the llvm .cc file from a C description of each opcode.
88bpf-jit/bpf-opcodes.llvm.bc: bpf-jit/bpf-opcodes.c
89        $(LLVM_GCC) -std=c99 -c -O0 -emit-llvm $< -o $@
90
91bpf-jit/bpf-opcodes.llvm.cc: bpf-jit/bpf-opcodes.llvm.bc
92        `$(LLVM_CONFIG) --bindir`/llc -march=cpp -cppgen=module $< -o $@
93
94bpf-jit/bpf-jit.cc: bpf-jit/bpf-opcodes.llvm.cc
95
96EXTRA_DIST+=bpf-jit/bpf-opcodes.c
97BUILT_SOURCES=bpf-jit/bpf-opcodes.llvm.cc
98endif
99CLEANFILES=bpf-jit/bpf-opcodes.llvm.cc bpf-jit/bpf-opcodes.llvm.bc
Note: See TracBrowser for help on using the repository browser.