source: libpacketdump/Makefile.am @ d0f25d4

develop
Last change on this file since d0f25d4 was d0f25d4, checked in by Jacob Van Walraven <jcv9@…>, 21 months ago

Add ERF and PCAPNG decoders to libpacketdump

  • Property mode set to 100644
File size: 4.4 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: ERF META
64BIN_PROTOCOLS+=link_21.la
65
66# 22: ETSI LI
67if HAVE_WANDDER
68BIN_PROTOCOLS+=link_22.la
69endif
70
71#23: PCAPNG
72BIN_PROTOCOLS+=link_23.la
73
74# Decoders for various ethertypes (in decimal)
75# IPv4
76BIN_PROTOCOLS+=eth_0.la
77BIN_PROTOCOLS+=eth_2048.la
78# ARP
79BIN_PROTOCOLS+=eth_2054.la     
80# VLAN (802.1Q)
81BIN_PROTOCOLS+=eth_33024.la
82# MPLS
83BIN_PROTOCOLS+=eth_34887.la
84# pppoe
85BIN_PROTOCOLS+=eth_34916.la
86# 802.1x
87BIN_PROTOCOLS+=eth_34958.la
88
89# IPv6
90BIN_PROTOCOLS+=eth_34525.la
91
92# IP Protocol decoders
93# IPv6 Hop by Hop Options Header
94BIN_PROTOCOLS+=ip_0.la
95# ICMP
96BIN_PROTOCOLS+=ip_1.la
97# TCP
98BIN_PROTOCOLS+=ip_6.la
99# UDP
100BIN_PROTOCOLS+=ip_17.la
101# DCCP
102BIN_PROTOCOLS+=ip_33.la
103# IPv6 Routing Header
104BIN_PROTOCOLS+=ip_43.la
105# IPv6 Fragment Header
106BIN_PROTOCOLS+=ip_44.la
107# GRE
108BIN_PROTOCOLS+=ip_47.la
109# ICMP6
110TXT_PROTOCOLS+=ip_58.protocol
111# IPv6 Destination Options Header
112BIN_PROTOCOLS+=ip_60.la
113# OSPF
114BIN_PROTOCOLS+=ip_89.la
115# SCTP
116BIN_PROTOCOLS+=ip_132.la       
117
118# TCP protocol decoders
119# (tcp_*.la)
120
121# UDP protocol decoders
122# (udp_*.la)
123
124# OSPF decoders
125BIN_PROTOCOLS+=ospf2_1.la
126BIN_PROTOCOLS+=ospf2_4.la
127BIN_PROTOCOLS+=ospf2_5.la
128
129# Start numbering OSPF LSA types from 1000
130BIN_PROTOCOLS+=ospf2_1000.la
131BIN_PROTOCOLS+=ospf2_1001.la
132BIN_PROTOCOLS+=ospf2_1002.la
133BIN_PROTOCOLS+=ospf2_1003.la
134BIN_PROTOCOLS+=ospf2_1004.la
135BIN_PROTOCOLS+=ospf2_1005.la
136
137# I shouldn't need to do this
138modflags=-module -avoid-version -shared
139link_0_la_LDFLAGS=$(modflags)
140link_1_la_LDFLAGS=$(modflags)
141link_2_la_LDFLAGS=$(modflags)
142link_4_la_LDFLAGS=$(modflags)
143link_6_la_LDFLAGS=$(modflags)
144link_9_la_LDFLAGS=$(modflags)
145link_10_la_LDFLAGS=$(modflags)
146link_11_la_LDFLAGS=$(modflags)
147link_15_la_LDFLAGS=$(modflags)
148link_21_la_LDFLAGS=$(modflags)
149if HAVE_WANDDER
150link_22_la_LDFLAGS=$(modflags)
151endif
152link_23_la_LDFLAGS=$(modflags)
153eth_0_la_LDFLAGS=$(modflags)
154eth_2048_la_LDFLAGS=$(modflags)
155eth_2054_la_LDFLAGS=$(modflags)
156eth_33024_la_LDFLAGS=$(modflags)
157eth_34887_la_LDFLAGS=$(modflags)
158eth_34916_la_LDFLAGS=$(modflags)
159eth_34958_la_LDFLAGS=$(modflags)
160eth_34525_la_LDFLAGS=$(modflags)
161
162ip_0_la_LDFLAGS=$(modflags)
163ip_1_la_LDFLAGS=$(modflags)
164ip_6_la_LDFLAGS=$(modflags)
165ip_17_la_LDFLAGS=$(modflags)
166ip_33_la_LDFLAGS=$(modflags)
167ip_43_la_LDFLAGS=$(modflags)
168ip_44_la_LDFLAGS=$(modflags)
169ip_47_la_LDFLAGS=$(modflags)
170ip_60_la_LDFLAGS=$(modflags)
171ip_89_la_LDFLAGS=$(modflags)
172ip_132_la_LDFLAGS=$(modflags)
173
174ospf2_1_la_LDFLAGS=$(modflags)
175ospf2_4_la_LDFLAGS=$(modflags)
176ospf2_5_la_LDFLAGS=$(modflags)
177ospf2_1000_la_LDFLAGS=$(modflags)
178ospf2_1001_la_LDFLAGS=$(modflags)
179ospf2_1002_la_LDFLAGS=$(modflags)
180ospf2_1003_la_LDFLAGS=$(modflags)
181ospf2_1004_la_LDFLAGS=$(modflags)
182ospf2_1005_la_LDFLAGS=$(modflags)
183
184libpacketdump_la_SOURCES = libpacketdump.cc ../lib/byteswap.c \
185                        lexer.l parser.y bitbuffer.c bitbuffer.h grammar.h
186
187plugin_LTLIBRARIES = $(BIN_PROTOCOLS)
188dist_plugin_DATA = $(TXT_PROTOCOLS)
189
190AM_CPPFLAGS= @ADD_INCLS@ -I../lib
191
192# NOTE: You CANNOT add @LEXLIBS@ here, as they are statically compiled
193# which on non x86_32 platforms means that they cannot be linked into
194# a shared library.
195libpacketdump_la_LIBADD = @LIBPKTDUMP_LIBS@
196libpacketdump_la_LDFLAGS=\
197        -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
198        @ADD_LDFLAGS@
199
200AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(plugindir)\" $(AM_CPPFLAGS)
201BUILT_SOURCES=parser.h
202AM_YFLAGS=-d
203EXTRA_DIST=lexer.l parser.y
204
205install-exec-hook:
206        $(AM_V_GEN)mkdir -p $(DESTDIR)$(plugindir)
207        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so ppp_33.so
208        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so link_5.so
209        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_34525.so ip_41.so
210
211install-data-hook:
212        rm -f $(DESTDIR)$(plugindir)/*.la
Note: See TracBrowser for help on using the repository browser.