source: libpacketdump/Makefile.am @ 6e90062

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 6e90062 was 6ebfd24, checked in by Perry Lorier <perry@…>, 11 years ago

Add a decoder for ubiquity's dodgy packets

  • Property mode set to 100644
File size: 2.8 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
14
15# Ethernet
16BIN_PROTOCOLS+=link_2.la
17
18# ATM
19TXT_PROTOCOLS+=link_3.protocol
20
21# 802.11
22BIN_PROTOCOLS+=link_4.la
23
24# NONE
25#
26
27# Linux SLL
28#TXT_PROTOCOLS+=link_6.protocol
29BIN_PROTOCOLS+=link_6.la
30
31# PFLog
32#       
33
34# Obsolete legacy
35#               
36
37# Obsolete Legacy ATM
38#                               
39
40# PoS
41
42# Obsolete Legacy Ethernet
43BIN_PROTOCOLS+=link_10.la       
44
45# 802.11 Prism
46BIN_PROTOCOLS+=link_11.la       
47
48# 13: AAL5
49#                       
50# 14: Duck
51#
52
53# 15: Radiotap
54BIN_PROTOCOLS+=link_15.la
55
56# 16: LLC/SNAP
57#
58# 17: PPP
59TXT_PROTOCOLS+=link_17.protocol
60
61# Decoders for various ethertypes (in decimal)
62# IPv4
63BIN_PROTOCOLS+=eth_0.la
64BIN_PROTOCOLS+=eth_2048.la
65# ARP
66BIN_PROTOCOLS+=eth_2054.la     
67# VLAN (802.1Q)
68BIN_PROTOCOLS+=eth_33024.la
69# MPLS
70BIN_PROTOCOLS+=eth_34887.la
71# pppoe
72BIN_PROTOCOLS+=eth_34916.la
73# 802.1x
74BIN_PROTOCOLS+=eth_34958.la
75
76# IP Protocol decoders
77# ICMP
78BIN_PROTOCOLS+=ip_1.la
79# TCP
80BIN_PROTOCOLS+=ip_6.la
81# UDP
82BIN_PROTOCOLS+=ip_17.la
83# DCCP
84BIN_PROTOCOLS+=ip_33.la
85# IPv6
86TXT_PROTOCOLS+=ip_41.protocol
87# GRE
88BIN_PROTOCOLS+=ip_47.la
89# ICMP6
90TXT_PROTOCOLS+=ip_58.protocol
91# SCTP
92BIN_PROTOCOLS+=ip_132.la       
93
94# TCP protocol decoders
95# (tcp_*.la)
96
97# UDP protocol decoders
98# (udp_*.la)
99
100# I shouldn't need to do this
101link_0_la_LDFLAGS=-module
102link_2_la_LDFLAGS=-module
103link_4_la_LDFLAGS=-module
104link_6_la_LDFLAGS=-module
105link_10_la_LDFLAGS=-module
106link_11_la_LDFLAGS=-module
107link_15_la_LDFLAGS=-module
108eth_0_la_LDFLAGS=-module
109eth_2048_la_LDFLAGS=-module
110eth_2054_la_LDFLAGS=-module
111eth_33024_la_LDFLAGS=-module
112eth_34887_la_LDFLAGS=-module
113eth_34916_la_LDFLAGS=-module
114eth_34958_la_LDFLAGS=-module
115
116ip_1_la_LDFLAGS=-module
117ip_6_la_LDFLAGS=-module
118ip_17_la_LDFLAGS=-module
119ip_33_la_LDFLAGS=-module
120ip_47_la_LDFLAGS=-module
121ip_132_la_LDFLAGS=-module
122
123libpacketdump_la_SOURCES = libpacketdump.cc \
124                        lexer.l parser.y bitbuffer.c bitbuffer.h grammar.h
125
126plugin_LTLIBRARIES = $(BIN_PROTOCOLS)
127dist_plugin_DATA = $(TXT_PROTOCOLS)
128
129INCLUDES= @ADD_INCLS@ -I../lib
130
131# NOTE: You CANNOT add @LEXLIBS@ here, as they are statically compiled
132# which on non x86_32 platforms means that they cannot be linked into
133# a shared library.
134libpacketdump_la_LIBADD = @ADD_LIBS@
135libpacketdump_la_LDFLAGS=\
136        -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
137        @ADD_LDFLAGS@
138
139AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(plugindir)\" $(INCLUDES)
140BUILT_SOURCES=parser.h
141AM_YFLAGS=-d
142EXTRA_DIST=lexer.l parser.y
143
144install-exec-hook:
145        $(AM_V_GEN)mkdir -p $(DESTDIR)$(plugindir)
146        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so ppp_33.so
147        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so link_5.so
148        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f ip_41.protocol eth_34525.protocol
Note: See TracBrowser for help on using the repository browser.