source: libpacketdump/Makefile.am @ 055a2c9

cachetimestampsdeveloprc-4.0.4ringdecrementfixringperformance
Last change on this file since 055a2c9 was 055a2c9, checked in by Richard Sanger <rsanger@…>, 2 years ago

Fix for building without WANDDER

The code was accidentally checking ifdef, but HAVE_WANDDER was
set to 0. I've fixed this by not setting to 0, like we do elsewhere.
I've also updated HAVE_LIBNUMA to use the same style of check.

  • Property mode set to 100644
File size: 4.2 KB
Line 
1lib_LTLIBRARIES = libpacketdump.la
2include_HEADERS = libpacketdump.h
3
4plugindir = $(libdir)/libpacketdump
5
6BIN_PROTOCOLS=
7TXT_PROTOCOLS=
8
9# Link layers supported
10# Legacy
11BIN_PROTOCOLS+=link_0.la
12
13# HDLC_POS
14BIN_PROTOCOLS+=link_1.la
15
16# Ethernet
17BIN_PROTOCOLS+=link_2.la
18
19# ATM
20TXT_PROTOCOLS+=link_3.protocol
21
22# 802.11
23BIN_PROTOCOLS+=link_4.la
24
25# NONE
26#
27
28# Linux SLL
29#TXT_PROTOCOLS+=link_6.protocol
30BIN_PROTOCOLS+=link_6.la
31
32# PFLog
33#       
34
35# Obsolete legacy
36#               
37
38# Obsolete Legacy ATM
39#                               
40
41# PoS
42BIN_PROTOCOLS+=link_9.la
43
44# Obsolete Legacy Ethernet
45BIN_PROTOCOLS+=link_10.la       
46
47# 802.11 Prism
48BIN_PROTOCOLS+=link_11.la       
49
50# 13: AAL5
51#                       
52# 14: Duck
53#
54
55# 15: Radiotap
56BIN_PROTOCOLS+=link_15.la
57
58# 16: LLC/SNAP
59#
60# 17: PPP
61TXT_PROTOCOLS+=link_17.protocol
62
63# 22: ETSI LI
64if HAVE_WANDDER
65BIN_PROTOCOLS+=link_22.la
66endif
67
68# Decoders for various ethertypes (in decimal)
69# IPv4
70BIN_PROTOCOLS+=eth_0.la
71BIN_PROTOCOLS+=eth_2048.la
72# ARP
73BIN_PROTOCOLS+=eth_2054.la     
74# VLAN (802.1Q)
75BIN_PROTOCOLS+=eth_33024.la
76# MPLS
77BIN_PROTOCOLS+=eth_34887.la
78# pppoe
79BIN_PROTOCOLS+=eth_34916.la
80# 802.1x
81BIN_PROTOCOLS+=eth_34958.la
82
83# IPv6
84BIN_PROTOCOLS+=eth_34525.la
85
86# IP Protocol decoders
87# IPv6 Hop by Hop Options Header
88BIN_PROTOCOLS+=ip_0.la
89# ICMP
90BIN_PROTOCOLS+=ip_1.la
91# TCP
92BIN_PROTOCOLS+=ip_6.la
93# UDP
94BIN_PROTOCOLS+=ip_17.la
95# DCCP
96BIN_PROTOCOLS+=ip_33.la
97# IPv6 Routing Header
98BIN_PROTOCOLS+=ip_43.la
99# IPv6 Fragment Header
100BIN_PROTOCOLS+=ip_44.la
101# GRE
102BIN_PROTOCOLS+=ip_47.la
103# ICMP6
104TXT_PROTOCOLS+=ip_58.protocol
105# IPv6 Destination Options Header
106BIN_PROTOCOLS+=ip_60.la
107# OSPF
108BIN_PROTOCOLS+=ip_89.la
109# SCTP
110BIN_PROTOCOLS+=ip_132.la       
111
112# TCP protocol decoders
113# (tcp_*.la)
114
115# UDP protocol decoders
116# (udp_*.la)
117
118# OSPF decoders
119BIN_PROTOCOLS+=ospf2_1.la
120BIN_PROTOCOLS+=ospf2_4.la
121BIN_PROTOCOLS+=ospf2_5.la
122
123# Start numbering OSPF LSA types from 1000
124BIN_PROTOCOLS+=ospf2_1000.la
125BIN_PROTOCOLS+=ospf2_1001.la
126BIN_PROTOCOLS+=ospf2_1002.la
127BIN_PROTOCOLS+=ospf2_1003.la
128BIN_PROTOCOLS+=ospf2_1004.la
129BIN_PROTOCOLS+=ospf2_1005.la
130
131# I shouldn't need to do this
132modflags=-module -avoid-version -shared
133link_0_la_LDFLAGS=$(modflags)
134link_1_la_LDFLAGS=$(modflags)
135link_2_la_LDFLAGS=$(modflags)
136link_4_la_LDFLAGS=$(modflags)
137link_6_la_LDFLAGS=$(modflags)
138link_9_la_LDFLAGS=$(modflags)
139link_10_la_LDFLAGS=$(modflags)
140link_11_la_LDFLAGS=$(modflags)
141link_15_la_LDFLAGS=$(modflags)
142if HAVE_WANDDER
143link_22_la_LDFLAGS=$(modflags)
144endif
145eth_0_la_LDFLAGS=$(modflags)
146eth_2048_la_LDFLAGS=$(modflags)
147eth_2054_la_LDFLAGS=$(modflags)
148eth_33024_la_LDFLAGS=$(modflags)
149eth_34887_la_LDFLAGS=$(modflags)
150eth_34916_la_LDFLAGS=$(modflags)
151eth_34958_la_LDFLAGS=$(modflags)
152eth_34525_la_LDFLAGS=$(modflags)
153
154ip_0_la_LDFLAGS=$(modflags)
155ip_1_la_LDFLAGS=$(modflags)
156ip_6_la_LDFLAGS=$(modflags)
157ip_17_la_LDFLAGS=$(modflags)
158ip_33_la_LDFLAGS=$(modflags)
159ip_43_la_LDFLAGS=$(modflags)
160ip_44_la_LDFLAGS=$(modflags)
161ip_47_la_LDFLAGS=$(modflags)
162ip_60_la_LDFLAGS=$(modflags)
163ip_89_la_LDFLAGS=$(modflags)
164ip_132_la_LDFLAGS=$(modflags)
165
166ospf2_1_la_LDFLAGS=$(modflags)
167ospf2_4_la_LDFLAGS=$(modflags)
168ospf2_5_la_LDFLAGS=$(modflags)
169ospf2_1000_la_LDFLAGS=$(modflags)
170ospf2_1001_la_LDFLAGS=$(modflags)
171ospf2_1002_la_LDFLAGS=$(modflags)
172ospf2_1003_la_LDFLAGS=$(modflags)
173ospf2_1004_la_LDFLAGS=$(modflags)
174ospf2_1005_la_LDFLAGS=$(modflags)
175
176libpacketdump_la_SOURCES = libpacketdump.cc ../lib/byteswap.c \
177                        lexer.l parser.y bitbuffer.c bitbuffer.h grammar.h
178
179plugin_LTLIBRARIES = $(BIN_PROTOCOLS)
180dist_plugin_DATA = $(TXT_PROTOCOLS)
181
182AM_CPPFLAGS= @ADD_INCLS@ -I../lib
183
184# NOTE: You CANNOT add @LEXLIBS@ here, as they are statically compiled
185# which on non x86_32 platforms means that they cannot be linked into
186# a shared library.
187libpacketdump_la_LIBADD = @LIBPKTDUMP_LIBS@
188libpacketdump_la_LDFLAGS=\
189        -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
190        @ADD_LDFLAGS@
191
192AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(plugindir)\" $(AM_CPPFLAGS)
193BUILT_SOURCES=parser.h
194AM_YFLAGS=-d
195EXTRA_DIST=lexer.l parser.y
196
197install-exec-hook:
198        $(AM_V_GEN)mkdir -p $(DESTDIR)$(plugindir)
199        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so ppp_33.so
200        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so link_5.so
201        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_34525.so ip_41.so
202
203install-data-hook:
204        rm -f $(DESTDIR)$(plugindir)/*.la
Note: See TracBrowser for help on using the repository browser.